FileDocCategorySizeDatePackage
ApplicationDeployEvent.javaAPI DocGlassfish v2 API5804Fri May 04 22:33:34 BST 2007com.sun.enterprise.admin.event

ApplicationDeployEvent

public class ApplicationDeployEvent extends com.sun.enterprise.admin.event.BaseDeployEvent
Application deployment event. This event is generated whenever a J2EE application is deployed, undeployed or redeployed.

Fields Summary
static final String
eventType
Event type
private boolean
forceDeploy
Indicates whether this ApplicationDeployEvent is forced
private int
loadUnloadAction
Indicates whether what load action this ApplicationDeployEvent is for
Constructors Summary
public ApplicationDeployEvent(String instance, String appName, String actionCode)
Create a new ApplicationDeployEvent for the specified instance, application and action code.

param
instance name of the server instance to which application has been deployed, undeployed, redployed, enabled or disabled.
param
appName name of the application that has been deployed, undeployed or redeployed
param
actionCode what happened to the application, the valid values are BaseDeployEvent.DEPLOY, BaseDeployEvent.REDEPLOY, BaseDeployEvent.UNDEPLOY, BaseDeployEvent.ENABLE or BaseDeployEvent.DISABLE


                                                                                                        
        
              
        super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 
             actionCode);
    
public ApplicationDeployEvent(String instance, String appName, String actionCode, boolean cascade)
Creates a new ApplicationDeployEvent for the specified instance, application, action code and cascade values

        super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 
             actionCode, cascade);
    
public ApplicationDeployEvent(String instance, String appName, String actionCode, boolean cascade, boolean forceDeploy)
Creates a new ApplicationDeployEvent for the specified instance, application, cascade and forceDeploy values

        super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 
             actionCode, cascade);
        //set ForceDeploy locally
        setForceDeploy(forceDeploy);
    
public ApplicationDeployEvent(String instance, String appName, String actionCode, boolean cascade, boolean forceDeploy, int loadUnloadAction)
Creates a new ApplicationDeployEvent for the specified instance, application, cascade and forceDeploy, loadUnloadAction values

 
        super(eventType, instance, BaseDeployEvent.APPLICATION, appName, 
             actionCode, cascade);
        //set loadUnloadAction locally
        setForceDeploy(forceDeploy);
        setLoadUnloadAction(loadUnloadAction);
    
Methods Summary
public java.lang.StringgetApplicationName()
Get name of the application that was affected by deployment action.

        return getJ2EEComponentName();
    
public booleangetForceDeploy()

        return this.forceDeploy;
    
public intgetLoadUnloadAction()

        return this.loadUnloadAction;
    
public voidsetForceDeploy(boolean forceDeploy)

        this.forceDeploy = forceDeploy;
    
public voidsetLoadUnloadAction(int loadUnloadAction)

        this.loadUnloadAction = loadUnloadAction;
    
public java.lang.StringtoString()

        return "ApplicationDeployEvent -- " + this.getAction() + " " + this.getApplicationName();