Methods Summary |
---|
private com.sun.enterprise.management.support.oldconfig.OldClusterMBean | getOldClusterMBean()
return( getOldConfigProxies().getOldClusterMBean( getSelfName() ) );
|
private com.sun.enterprise.admin.servermgmt.RuntimeStatusList | getRuntimeStatus()
/**
Should have called OldClusterMBean.getRuntimeStatus() instead.
But was getting back AttributeNotFoundException. Maybe bacause
RuntimeStatus is not exposed as an attribute of the ClusterConfigMBean.
*/
final OldClustersMBean oldMBean =
getOldConfigProxies().getOldClustersMBean();
return( ( RuntimeStatusList )oldMBean.getRuntimeStatus( getSelfName() ) );
|
public java.lang.String[] | getServerNames()
/*
J2EEServer is not a subtype of J2EECluster in the containment hierarchy.
So the following doesnot work.
return getContaineeNamesOfType( J2EETypes.J2EE_SERVER );
*/
return getOldClusterMBean().listServerInstancesAsString( false );
|
public java.util.Map | getServerObjectNameMap()
/*
J2EEServer is not a subtype of J2EECluster in the containment hierarchy.
So the following does not work.
return getContaineeObjectNameMap( J2EETypes.J2EE_SERVER );
*/
final Set<String> serverNamesInCluster = GSetUtil.newStringSet( getServerNames() );
if ( serverNamesInCluster.size() == 0 )
{
return Collections.emptyMap();
}
final Set<ObjectName> allJ2EEServerObjectNames =
getQueryMgr().queryJ2EETypeObjectNameSet( J2EETypes.J2EE_SERVER );
final Map<String,ObjectName> objectNameMap = Util.createObjectNameMap( allJ2EEServerObjectNames );
final Map<String,ObjectName> serverObjectNameMap =
new HashMap<String,ObjectName>( serverNamesInCluster.size() );
for( final String nameKey : serverNamesInCluster )
{
serverObjectNameMap.put( nameKey, objectNameMap.get( nameKey ) );
}
return serverObjectNameMap;
|
public int | getstate()
final RuntimeStatusList rsl = getRuntimeStatus();
int state = rsl.anyRunning() ?
StateManageable.STATE_RUNNING : StateManageable.STATE_STOPPED;
return state;
|
public boolean | isstateManageable()
return true;
|
public void | start()
trace( "J2EEClusterImpl.start" );
getOldClusterMBean().start();
setstartTime( System.currentTimeMillis() );
|
public void | startRecursive()
start();
|
public void | stop()
trace( "J2EEClusterImpl.start" );
getOldClusterMBean().stop();
setstartTime( 0 );
|