Methods Summary |
---|
void | _refresh()
mConfigNames = mSrc.getConfigNames();
mServerNames = mSrc.getServerNames();
// create mapping from server to config
Iterator iter = mServerNames.iterator();
while ( iter.hasNext() )
{
final String serverName = (String)iter.next();
final String configName = mSrc.getConfigNameForServer( serverName );
if ( configName != null )
{
mServerToConfig.put( serverName, configName );
}
}
// create mapping from config to servers
iter = mConfigNames.iterator();
while ( iter.hasNext() )
{
final String configName = (String)iter.next();
final String [] serverNames = mSrc.getServerNamesForConfig( configName );
if ( serverNames != null )
{
mConfigToServers.put( configName, serverNames );
}
}
|
public synchronized java.lang.String | getConfigNameForServer(java.lang.String serverName)
return( (String)mServerToConfig.get( serverName ) );
|
public synchronized java.util.Set | getConfigNames()
return( mConfigNames );
|
public synchronized java.util.Set | getServerNames()
return( mServerNames );
|
public synchronized java.lang.String[] | getServerNamesForConfig(java.lang.String configName)
return( (String [])mConfigToServers.get( configName ) );
|
public synchronized void | refresh()
try
{
_refresh();
}
catch( DottedNameServerInfo.UnavailableException e )
{
DottedNameLogger.logException( e );
}
|