1 19 20 package org.netbeans.modules.j2ee.oc4j.ide; 21 22 import javax.enterprise.deploy.shared.ActionType ; 23 import javax.enterprise.deploy.shared.CommandType ; 24 import javax.enterprise.deploy.shared.StateType ; 25 import javax.enterprise.deploy.spi.status.DeploymentStatus ; 26 27 33 public class OC4JDeploymentStatus implements DeploymentStatus { 34 35 private ActionType action; 36 private CommandType command; 37 private StateType state; 38 39 private String message; 40 41 42 public OC4JDeploymentStatus(ActionType action, CommandType command, StateType state, String message) { 43 44 this.action = action; 45 this.command = command; 46 this.state = state; 47 48 this.message = message; 49 } 50 51 public String getMessage() { 52 return message; 53 } 54 55 public StateType getState() { 56 return state; 57 } 58 59 public CommandType getCommand() { 60 return command; 61 } 62 63 public ActionType getAction() { 64 return action; 65 } 66 67 public boolean isRunning() { 68 return StateType.RUNNING.equals(state); 69 } 70 71 public boolean isFailed() { 72 return StateType.FAILED.equals(state); 73 } 74 75 public boolean isCompleted() { 76 return StateType.COMPLETED.equals(state); 77 } 78 } | Popular Tags |