Methods Summary |
---|
protected void | addAllNamesForConfig(DottedName configDN, java.util.Set outSet)
final String [] serverNames = mServerInfo.getServerNamesForConfig( configDN.getScope() );
// there may be none if no servers refer to the config--that's OK
for( int i = 0; i < serverNames.length; ++i )
{
final String newName =
DottedName.toString( configDN.getDomain(), serverNames[ i ], configDN.getParts() );
outSet.add( newName );
}
|
protected void | addAllNamesForDomain(DottedName domainDN, java.util.Set outSet)
final Iterator iter = mServerInfo.getServerNames().iterator();
// there may be none if no servers refer to the config--that's OK
while ( iter.hasNext() )
{
final String serverName = (String)iter.next();
final String dottedNameString =
DottedName.toString( domainDN.getDomain(), serverName, domainDN.getParts() );
final DottedName newName = DottedNameFactory.getInstance().get( dottedNameString );
outSet.add( newName.toString() );
}
|
public java.util.Set | allDottedNameStrings()
Set result = Collections.EMPTY_SET;
try
{
result = allDottedNameStringsThrow();
}
catch( DottedNameServerInfo.UnavailableException e )
{
DottedNameLogger.logException( e );
}
return( result );
|
protected java.util.Set | allDottedNameStringsThrow()
final Set srcSet = mSrcQuery.allDottedNameStrings();
final Iterator iter = srcSet.iterator();
final HashSet destSet = new HashSet();
final Set configNames = mServerInfo.getConfigNames();
while ( iter.hasNext() )
{
final String dottedName = (String)iter.next();
final DottedName dn = DottedNameFactory.getInstance().get( dottedName );
final String scope = dn.getScope();
if ( DottedNameAliasSupport.scopeIsDomain( scope ) )
{
if ( DottedNameAliasSupport.isAliasedDomain( dn ) )
{
destSet.add (dottedName);
addAllNamesForDomain( dn, destSet );
}
}
else
{
if ( configNames.contains( scope ) )
{
addAllNamesForConfig( dn, destSet );
}
else
{
// not a config name.
destSet.add( dottedName );
}
}
}
return( destSet );
|
public javax.management.ObjectName | dottedNameToObjectName(java.lang.String dottedName)
return( mAliasResolver.resolveDottedName( dottedName ) );
|