Methods Summary |
---|
static void | dm(java.lang.Object o)
if (sLogger == null )
{
sLogger = java.util.logging.Logger.getLogger( "DottedNameGetSetMBeanImplLogger" );
sLogger.setLevel( java.util.logging.Level.INFO );
}
sLogger.info( o.toString() );
|
public static boolean | isAliasedDomain(DottedName dn)
boolean isAliased = false;
final java.util.List parts = dn.getParts();
if ( parts.size() >= 1 )
{
isAliased = DOMAIN_PARTS.contains( parts.get( 0 ) );
}
return( isAliased );
|
protected static boolean | isNonAliasedServer(DottedName dn)
boolean isNonAliased = false;
final java.util.List parts = dn.getParts();
if ( parts.size() >= 1 )
{
isNonAliased = NON_ALIASED_PARTS_SET.contains( parts.get( 0 ) );
}
return( isNonAliased );
|
public static java.lang.String | resolveScope(DottedNameServerInfo serverInfo, DottedName dn)
final String scopeNameIn = dn.getScope();
String actualScopeName = scopeNameIn;
if ( scopeIsDomain( scopeNameIn ) )
{
// no change required
}
else
{
final boolean scopeIsServerName = serverInfo.getServerNames().contains( actualScopeName );
if ( scopeIsServerName )
{
if ( isAliasedDomain( dn ) )
{
actualScopeName = DottedNameAliasSupport.DOMAIN_SCOPE;
}
else if ( isNonAliasedServer( dn ) )
{
// no change
}
else
{
// it's a server name, and it *is* aliased, but wasn't alised into domain
// so it must be aliased into a config
actualScopeName = serverInfo.getConfigNameForServer( scopeNameIn );
}
}
}
return( actualScopeName );
|
public static boolean | scopeIsDomain(java.lang.String scope)
return( scope.equals( DOMAIN_SCOPE ) || scope.startsWith( DOMAIN_SCOPE_DOT ) );
|