FileDocCategorySizeDatePackage
J2EELogicalServerImplBase.javaAPI DocGlassfish v2 API4900Fri May 04 22:23:30 BST 2007com.sun.enterprise.management.j2ee

J2EELogicalServerImplBase

public class J2EELogicalServerImplBase extends J2EEManagedObjectImplBase
Base interface only (for cluster and standalone server)

Fields Summary
Constructors Summary
public J2EELogicalServerImplBase(com.sun.enterprise.management.support.Delegate delegate)

		super( delegate );
	
protected J2EELogicalServerImplBase(String j2eeType, com.sun.enterprise.management.support.Delegate delegate)

		super( j2eeType, delegate );
	
Methods Summary
private voidcheckDeploymentStatusForExceptions(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 intgetstate()

 		throw new RuntimeException( new AttributeNotFoundException( "state" ) );
	
public voidstart()

 		throw new RuntimeException( "can't start" );
 	
public voidstartApp(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 voidstartRecursive()

 		throw new RuntimeException( "can't startRecursive" );
 	
public voidstop()

 		throw new RuntimeException( "can't stop" );
 	
public voidstopApp(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 );