// Path: common/src/main/java/org/apache/hms/common/entity/RestSource.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD) 
// @XmlType(name="", propOrder = {})
// public abstract class RestSource {
// 
// }
// 
// Path: common/src/main/java/org/apache/hms/common/entity/Status.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "", propOrder = {})
// public enum Status {
//   UNQUEUED, QUEUED, STARTED, SUCCEEDED, FAILED, INSTALLED, STOPPED;
// 
//   public static class StatusAdapter extends XmlAdapter<String, Status> {
// 
//     @Override
//     public String marshal(Status obj) throws Exception {
//       return obj.toString();
//     }
// 
//     @Override
//     public Status unmarshal(String str) throws Exception {
//       for (Status j : Status.class.getEnumConstants()) {
//         if (j.toString().equals(str)) {
//           return j;
//         }
//       }
//       throw new Exception("Can't convert " + str + " to "
//           + Status.class.getName());
//     }
// 
//   }
// }
// 
// Path: common/src/main/java/org/apache/hms/common/entity/action/Action.java
// @JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="@action")
// @XmlSeeAlso({ ScriptAction.class, DaemonAction.class, PackageAction.class })
// @XmlRootElement
// public abstract class Action extends RestSource {
//   @XmlElement
//   protected int actionId;
//   
//   /**
//    * Reference to original command which generated this action.
//    */
//   @XmlElement
//   protected String cmdPath;
//   
//   /**
//    * Unique identifier of the action type.
//    */
//   @XmlElement
//   protected String actionType;
//   
//   /**
//    * A list of states, this action depends on.
//    */
//   @XmlElement
//   protected List<ActionDependency> dependencies;
//   
//   /**
//    * When the action is successfully executed, expectedResults stores the state
//    * entry for the action.
//    */
//   @XmlElement
//   protected List<StateEntry> expectedResults;
//   
//   /**
//    * Role is a reference to a list of nodes that should execute this action.
//    */
//   @XmlElement
//   protected String role;
//   
//   public int getActionId() {
//     return actionId;
//   }
//   
//   public String getCmdPath() {
//     return cmdPath;
//   }
//   
//   public String getActionType() {
//     return actionType;
//   }
//   
//   public List<ActionDependency> getDependencies() {
//     return dependencies;
//   }
//   
//   public List<StateEntry> getExpectedResults() {
//     return expectedResults;
//   }
//   
//   public String getRole() {
//     return role;
//   }
//   
//   public void setActionId(int actionId) {
//     this.actionId = actionId;
//   }
//   
//   public void setCmdPath(String cmdPath) {
//     this.cmdPath = cmdPath;
//   }
//   
//   public void setActionType(String actionType) {
//     this.actionType = actionType;
//   }
//   
//   public void setDependencies(List<ActionDependency> dependencies) {
//     this.dependencies = dependencies;
//   }
//   
//   public void setExpectedResults(List<StateEntry> expectedResults) {
//     this.expectedResults = expectedResults;
//   }
//   
//   public void setRole(String role) {
//     this.role = role;
//   }
//   
//   public String toString() {
//     StringBuilder sb = new StringBuilder();
//     sb.append("actionId=");
//     sb.append(actionId);
//     sb.append(", cmdPath=");
//     sb.append(cmdPath);
//     sb.append(", actionType=");
//     sb.append(actionType);
//     if (role != null) {
//       sb.append(", role=");
//       sb.append(role);
//     }
//     sb.append(", dependencies=[");
//     if (dependencies != null) {
//       for(ActionDependency a : dependencies) {
//         sb.append(a);
//         sb.append(", ");
//       }
//     }
//     sb.append("]");
//     sb.append(", expectedResults=[");
//     if (expectedResults != null) {
//       for(StateEntry a : expectedResults) {
//         sb.append(a);
//         sb.append(", ");
//       }
//     }
//     sb.append("]");
//     return sb.toString();
//   }
// }


import org.apache.hms.common.entity.action.Action;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.hms.common.entity.RestSource;
import org.apache.hms.common.entity.Status;
import org.apache.hms.common.entity.Status.StatusAdapter;
  public void setEndTime(String endTime) {
    this.endTime = endTime;
  }
  
  public void setClusterName(String clusterName) {
    this.clusterName = clusterName;
  }
  
  public void setTotalActions(int totalActions) {
    this.totalActions = totalActions;
  }
  
  public void setCompletedActions(int completedActions) {
    this.completedActions = completedActions;
  }
  
  public void setActionEntries(List<ActionEntry> actionEntries) {
    this.actionEntries = actionEntries;
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("cmdStatus=");
    sb.append(status);
    sb.append(", startTime=");
    sb.append(startTime);
    sb.append(", endTime=");
    sb.append(endTime);
    sb.append(", clusterName=");
    sb.append(clusterName);
// Path: common/src/main/java/org/apache/hms/common/entity/RestSource.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD) 
// @XmlType(name="", propOrder = {})
// public abstract class RestSource {
// 
// }
// 
// Path: common/src/main/java/org/apache/hms/common/entity/Status.java
// @XmlRootElement
// @XmlAccessorType(XmlAccessType.FIELD)
// @XmlType(name = "", propOrder = {})
// public enum Status {
//   UNQUEUED, QUEUED, STARTED, SUCCEEDED, FAILED, INSTALLED, STOPPED;
// 
//   public static class StatusAdapter extends XmlAdapter<String, Status> {
// 
//     @Override
//     public String marshal(Status obj) throws Exception {
//       return obj.toString();
//     }
// 
//     @Override
//     public Status unmarshal(String str) throws Exception {
//       for (Status j : Status.class.getEnumConstants()) {
//         if (j.toString().equals(str)) {
//           return j;
//         }
//       }
//       throw new Exception("Can't convert " + str + " to "
//           + Status.class.getName());
//     }
// 
//   }
// }
// 
// Path: common/src/main/java/org/apache/hms/common/entity/action/Action.java
// @JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="@action")
// @XmlSeeAlso({ ScriptAction.class, DaemonAction.class, PackageAction.class })
// @XmlRootElement
// public abstract class Action extends RestSource {
//   @XmlElement
//   protected int actionId;
//   
//   /**
//    * Reference to original command which generated this action.
//    */
//   @XmlElement
//   protected String cmdPath;
//   
//   /**
//    * Unique identifier of the action type.
//    */
//   @XmlElement
//   protected String actionType;
//   
//   /**
//    * A list of states, this action depends on.
//    */
//   @XmlElement
//   protected List<ActionDependency> dependencies;
//   
//   /**
//    * When the action is successfully executed, expectedResults stores the state
//    * entry for the action.
//    */
//   @XmlElement
//   protected List<StateEntry> expectedResults;
//   
//   /**
//    * Role is a reference to a list of nodes that should execute this action.
//    */
//   @XmlElement
//   protected String role;
//   
//   public int getActionId() {
//     return actionId;
//   }
//   
//   public String getCmdPath() {
//     return cmdPath;
//   }
//   
//   public String getActionType() {
//     return actionType;
//   }
//   
//   public List<ActionDependency> getDependencies() {
//     return dependencies;
//   }
//   
//   public List<StateEntry> getExpectedResults() {
//     return expectedResults;
//   }
//   
//   public String getRole() {
//     return role;
//   }
//   
//   public void setActionId(int actionId) {
//     this.actionId = actionId;
//   }
//   
//   public void setCmdPath(String cmdPath) {
//     this.cmdPath = cmdPath;
//   }
//   
//   public void setActionType(String actionType) {
//     this.actionType = actionType;
//   }
//   
//   public void setDependencies(List<ActionDependency> dependencies) {
//     this.dependencies = dependencies;
//   }
//   
//   public void setExpectedResults(List<StateEntry> expectedResults) {
//     this.expectedResults = expectedResults;
//   }
//   
//   public void setRole(String role) {
//     this.role = role;
//   }
//   
//   public String toString() {
//     StringBuilder sb = new StringBuilder();
//     sb.append("actionId=");
//     sb.append(actionId);
//     sb.append(", cmdPath=");
//     sb.append(cmdPath);
//     sb.append(", actionType=");
//     sb.append(actionType);
//     if (role != null) {
//       sb.append(", role=");
//       sb.append(role);
//     }
//     sb.append(", dependencies=[");
//     if (dependencies != null) {
//       for(ActionDependency a : dependencies) {
//         sb.append(a);
//         sb.append(", ");
//       }
//     }
//     sb.append("]");
//     sb.append(", expectedResults=[");
//     if (expectedResults != null) {
//       for(StateEntry a : expectedResults) {
//         sb.append(a);
//         sb.append(", ");
//       }
//     }
//     sb.append("]");
//     return sb.toString();
//   }
// }


// Path: common/src/main/java/org/apache/hms/common/entity/command/CommandStatus.java
import org.apache.hms.common.entity.action.Action;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.hms.common.entity.RestSource;
import org.apache.hms.common.entity.Status;
import org.apache.hms.common.entity.Status.StatusAdapter;

  public void setEndTime(String endTime) {
    this.endTime = endTime;
  }
  
  public void setClusterName(String clusterName) {
    this.clusterName = clusterName;
  }
  
  public void setTotalActions(int totalActions) {
    this.totalActions = totalActions;
  }
  
  public void setCompletedActions(int completedActions) {
    this.completedActions = completedActions;
  }
  
  public void setActionEntries(List<ActionEntry> actionEntries) {
    this.actionEntries = actionEntries;
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("cmdStatus=");
    sb.append(status);
    sb.append(", startTime=");
    sb.append(startTime);
    sb.append(", endTime=");
    sb.append(endTime);
    sb.append(", clusterName=");
    sb.append(clusterName);
    sb.append(", totalActions=");