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