Package org.jppf.management
Class ObjectNameCache
java.lang.Object
org.jppf.management.ObjectNameCache
A soft references cache of
ObjectName instances looked up with a single string name.
The rationale for this cache is that, based on profiling data, the construction of an
ObjectName is computationally costly and will gain from caching.
- Since:
- 6.0
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectNamegetObjectName(String name) Get an object name for the specified name string, creating it if necessary.
-
Constructor Details
-
ObjectNameCache
public ObjectNameCache()
-
-
Method Details
-
getObjectName
Get an object name for the specified name string, creating it if necessary.- Parameters:
name- the name to lookup.- Returns:
- an
ObjectNameinitialized with the specified string. - Throws:
MalformedObjectNameException- if the provided name is malformed.
-