javax.enterprise.deploy.shared

Class CommandType


public class CommandType
extends Object

Enumeration for status values.

Field Summary

static CommandType
DISTRIBUTE
static CommandType
REDEPLOY
static CommandType
START
static CommandType
STOP
static CommandType
UNDEPLOY

Constructor Summary

CommandType(int value)
Creates the command type.

Method Summary

static CommandType
getCommandType(int value)
Returns an command of the type.
protected CommandType[]
getEnumValueTable()
Returns the string table for command type.
protected int
getOffset()
Returns the lowest integer value.
protected String[]
getStringTable()
Returns the string table for command type.
int
getValue()
Returns the type.
String
toString()
Returns the string name.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

DISTRIBUTE

public static final CommandType DISTRIBUTE
Usages and Demos :

View More Examples of DISTRIBUTE
   1: import javax.enterprise.deploy.shared.ActionType;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.shared.StateType;
   4:         ...
   5: 
   6:   public CommandType getCommand()
   7:   {
   8:         ...
   9:     return CommandType.DISTRIBUTE;
  10:   }

View Full Code Here
   1: import javax.enterprise.deploy.shared.StateType;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.shared.ActionType;
   4:         ...
   5: 
   6:   public CommandType getCommand()
   7:   {
   8:         ...
   9:     return CommandType.DISTRIBUTE;
  10:   }

View Full Code Here
   1: import javax.enterprise.deploy.shared.ActionType;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.shared.StateType;
   4:         ...
   5: 
   6:   public CommandType getCommand()
   7:   {
   8:         ...
   9:     return CommandType.DISTRIBUTE;
  10:   }

View Full Code Here
   1: import java.util.Set;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.Target;
   4:         ...
   5:     public DistributeCommand(KernelMBean kernel, Target[] targetList, File moduleArchive, File deploymentPlan) {
   6:         super(CommandType.DISTRIBUTE);
   7:         this.kernel = kernel;
   8:         ...
   9:     public DistributeCommand(KernelMBean kernel, Target[] targetList, InputStream moduleStream, InputStream deploymentStream) {
  10:         super(CommandType.DISTRIBUTE);
  11:         this.kernel = kernel;

View Full Code Here
   1: 
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.shared.ModuleType;
   4:         ...
   5:         } catch (Exception e) {
   6:             return new FailedProgressObject(CommandType.DISTRIBUTE,
   7:                 e.getMessage());
   8:         ...
   9:                     try {
  10:                         return aServer.distribute(aTargets, null,
  11:                             new FileInputStream(configFile), null);

View Full Code Here

REDEPLOY

public static final CommandType REDEPLOY
Usages and Demos :

View More Examples of REDEPLOY
   1: import javax.enterprise.deploy.model.DeployableObject;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.shared.DConfigBeanVersionType;
   4:         ...
   5:     {
   6:         return executeCommandUsingFacility(CommandType.START, moduleIDList);
   7:     }
   8:         ...
   9:     {
  10:         return executeCommandUsingFacility(CommandType.STOP, moduleIDList);
  11:     }
  12:         ...
  13:         } catch (Throwable e) {
  14:             return prepareErrorProgressObject(CommandType.REDEPLOY, e);

View Full Code Here

START

public static final CommandType START
Usages and Demos :

View More Examples of START
   1: import java.net.URI;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5:     public StopCommand(KernelMBean kernel, TargetModuleID modules[]) {
   6:         super(CommandType.START);
   7:         this.kernel = kernel;
   8:         this.modules = modules;
   9:     }

View Full Code Here
   1: import java.net.URI;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5:     public StartCommand(KernelMBean kernel, TargetModuleID modules[]) {
   6:         super(CommandType.START);
   7:         this.kernel = kernel;
   8:         this.modules = modules;
   9:     }

View Full Code Here
   1: import java.net.URI;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5:     public UndeployCommand(KernelMBean kernel, TargetModuleID modules[]) {
   6:         super(CommandType.START);
   7:         this.kernel = kernel;
   8:         this.modules = modules;
   9:     }

View Full Code Here
   1: import java.util.Set;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.TargetModuleID;
   4:         ...
   5:     public RedeployCommand(KernelMBean kernel, TargetModuleID modules[], File moduleArchive, File deploymentPlan) {
   6:         super(CommandType.START);
   7:         this.kernel = kernel;
   8:         this.modules = modules;
   9:         this.moduleArchive = moduleArchive;

View Full Code Here
   1: 
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.Target;
   4:         ...
   5:         args[7] = serverId;
   6:         progressObject.setCommand(CommandType.DISTRIBUTE, args);
   7:         Thread newThread =  new Thread(progressObject);
   8:         ...
   9:         newThread.start();
  10:         return progressObject;
  11:         ...
  12:         args[5] = localConnection;
  13:         progressObject.setCommand(CommandType.UNDEPLOY, args);

View Full Code Here

STOP

public static final CommandType STOP
Usages and Demos :

View More Examples of STOP
   1: 
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.Target;
   4:         ...
   5:         args[7] = serverId;
   6:         progressObject.setCommand(CommandType.DISTRIBUTE, args);
   7:         Thread newThread =  new Thread(progressObject);
   8:         ...
   9:         args[5] = localConnection;
  10:         progressObject.setCommand(CommandType.UNDEPLOY, args);
  11:         Thread newThread =  new Thread(progressObject);
  12:         ...
  13:     public JESProgressObject disable(Target[] targets, String moduleID) {
  14:         return(changeState(targets, moduleID, CommandType.STOP));

View Full Code Here

UNDEPLOY

public static final CommandType UNDEPLOY
Usages and Demos :

View More Examples of UNDEPLOY
   1: 
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.spi.Target;
   4:         ...
   5:         args[7] = serverId;
   6:         progressObject.setCommand(CommandType.DISTRIBUTE, args);
   7:         Thread newThread =  new Thread(progressObject);
   8:         ...
   9:         args[5] = localConnection;
  10:         progressObject.setCommand(CommandType.UNDEPLOY, args);
  11:         Thread newThread =  new Thread(progressObject);
  12:         ...
  13:     public JESProgressObject enable(Target[] targets, String moduleID) {
  14:         return(changeState(targets, moduleID, CommandType.START));

View Full Code Here

Constructor Details

CommandType

protected CommandType(int value)
Creates the command type.

Method Details

getCommandType

public static CommandType getCommandType(int value)
Returns an command of the type.
Usages and Demos :

View More Examples of getCommandType(int value)
   1: import javax.enterprise.deploy.shared.ActionType;
   2: import javax.enterprise.deploy.shared.CommandType;
   3: import javax.enterprise.deploy.shared.StateType;
   4:         ...
   5: 
   6:     private final int commandType;
   7:     private final int actionType;
   8:         ...
   9:     
  10:     public DeploymentStatusImpl(CommandType aCommand, ActionType anAction,
  11:         StateType aState, String aMessage) {
  12:         ...
  13:     public CommandType getCommand() {
  14:         return CommandType.getCommandType(commandType);

View Full Code Here

getEnumValueTable

protected CommandType[] getEnumValueTable()
Returns the string table for command type.

getOffset

protected int getOffset()
Returns the lowest integer value.

getStringTable

protected String[] getStringTable()
Returns the string table for command type.

getValue

public int getValue()
Returns the type.

toString

public String toString()
Returns the string name.
Overrides:
toString in interface Object