Methods Summary |
---|
public synchronized void | add(java.lang.String dottedName, javax.management.ObjectName objectName)
new DottedName( dottedName );
/*
Don't allow more than one dotted name mapping for an ObjectName.
The check here must be via the ObjectName; checking the dottedName
will do no good as this could be a new dottedName for the same
ObjectName.
*/
if ( objectNameToDottedName( objectName ) != null )
{
remove( objectName );
}
mDottedNameStringsToObjectNames.put( dottedName, objectName );
mObjectNamesToDottedNameStrings.put( objectName, dottedName );
|
public synchronized java.util.Set | allDottedNameStrings()
return( copySet( mDottedNameStringsToObjectNames.keySet() ) );
|
public synchronized java.util.Set | allObjectNames()
return( copySet( mObjectNamesToDottedNameStrings.keySet() ) );
|
private java.util.Set | copySet(java.util.Set input)
final HashSet newSet = new HashSet();
newSet.addAll( input );
return( newSet );
|
public synchronized javax.management.ObjectName | dottedNameToObjectName(java.lang.String dottedName)
return( (ObjectName)mDottedNameStringsToObjectNames.get( dottedName ) );
|
public synchronized java.lang.String | objectNameToDottedName(javax.management.ObjectName objectName)
return( (String)mObjectNamesToDottedNameStrings.get( objectName ) );
|
public void | remove(javax.management.ObjectName objectName)
remove( objectNameToDottedName( objectName ), objectName );
|
synchronized void | remove(java.lang.String dottedName, javax.management.ObjectName objectName)
if ( dottedName != null && objectName != null )
{
mDottedNameStringsToObjectNames.remove( dottedName );
mObjectNamesToDottedNameStrings.remove( objectName );
}
|
public void | remove(java.lang.String dottedName)
remove( dottedName, dottedNameToObjectName( dottedName ) );
|