Methods Summary |
---|
private void | checkDeploymentStatusForExceptions(java.util.Map m)Checks the DeploymentStatus and all substages.
Can't depend on SUCCESS or FAILURE as the backend.DeploymentStatus sets
the stageStatus to its own codes. Cannot import backend.DeploymentStatus
to translate the codes.
DeploymentStatus status = DeploymentSupport.mapToDeploymentStatus( m );
Throwable t = status.getStageThrowable();
final Iterator<DeploymentStatus> it = status.getSubStagesList().iterator();
while ( ( t == null ) && ( it.hasNext() ) )
{
final DeploymentStatus m1 = it.next();
t = status.getThrowable();
}
if ( null != t )
{
throw new RuntimeException( status.getStageStatusMessage() );
}
|
public int | getstate()
throw new RuntimeException( new AttributeNotFoundException( "state" ) );
|
public void | start()
throw new RuntimeException( "can't start" );
|
public void | startApp(java.lang.String appID, java.util.Map optional)starts the app
final OldApplicationsConfigMBean oldApplicationsMBean =
getOldConfigProxies().getOldApplicationsConfigMBean();
final Map<String,Serializable> m = TypeCast.asMap(
oldApplicationsMBean.startAndReturnStatusAsMap( appID, getSelfName(), optional ) );
checkDeploymentStatusForExceptions( m );
|
public void | startRecursive()
throw new RuntimeException( "can't startRecursive" );
|
public void | stop()
throw new RuntimeException( "can't stop" );
|
public void | stopApp(java.lang.String appID, java.util.Map optional)stops the app
final OldApplicationsConfigMBean oldApplicationsMBean =
getOldConfigProxies().getOldApplicationsConfigMBean();
final Map<String,Serializable> m = TypeCast.asMap(
oldApplicationsMBean.stopAndReturnStatusAsMap( appID, getSelfName(), optional ) );
checkDeploymentStatusForExceptions( m );
|