diff --git a/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/yarn/YarnApplication.java b/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/yarn/YarnApplication.java index f6166cc..ad47ba0 100644 --- a/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/yarn/YarnApplication.java +++ b/service-configuration/src/main/java/com/lanyuanxiaoyao/service/configuration/entity/yarn/YarnApplication.java @@ -116,26 +116,61 @@ public final class YarnApplication { @Override public String toString() { return "YarnApplication{" + - "cluster='" + cluster + '\'' + - ", id='" + id + '\'' + - ", user='" + user + '\'' + - ", queue='" + queue + '\'' + - ", name='" + name + '\'' + - ", state='" + state + '\'' + - ", finalStatus='" + finalStatus + '\'' + - ", progress=" + progress + - ", diagnostics='" + diagnostics + '\'' + - ", applicationType='" + applicationType + '\'' + - ", startedTime=" + startedTime + - ", launchTime=" + launchTime + - ", finishedTime=" + finishedTime + - ", elapsedTime=" + elapsedTime + - ", trackingUrl='" + trackingUrl + '\'' + - ", allocatedMB=" + allocatedMB + - ", allocatedVCores=" + allocatedVCores + - ", runningContainers=" + runningContainers + - ", queueUsagePercentage=" + queueUsagePercentage + - ", clusterUsagePercentage=" + clusterUsagePercentage + - '}'; + "cluster='" + cluster + '\'' + + ", id='" + id + '\'' + + ", user='" + user + '\'' + + ", queue='" + queue + '\'' + + ", name='" + name + '\'' + + ", state='" + state + '\'' + + ", finalStatus='" + finalStatus + '\'' + + ", progress=" + progress + + ", diagnostics='" + diagnostics + '\'' + + ", applicationType='" + applicationType + '\'' + + ", startedTime=" + startedTime + + ", launchTime=" + launchTime + + ", finishedTime=" + finishedTime + + ", elapsedTime=" + elapsedTime + + ", trackingUrl='" + trackingUrl + '\'' + + ", allocatedMB=" + allocatedMB + + ", allocatedVCores=" + allocatedVCores + + ", runningContainers=" + runningContainers + + ", queueUsagePercentage=" + queueUsagePercentage + + ", clusterUsagePercentage=" + clusterUsagePercentage + + '}'; + } + + public static final class State { + /** + * Application which was just created. + */ + public static final String NEW = "NEW"; + /** + * Application which has been submitted. + */ + public static final String NEW_SAVING = "NEW_SAVING"; + /** + * Application which has been submitted. + */ + public static final String SUBMITTED = "SUBMITTED"; + /** + * Application has been accepted by the scheduler + */ + public static final String ACCEPTED = "ACCEPTED"; + /** + * Application which is currently running. + */ + public static final String RUNNING = "RUNNING"; + /** + * Application which finished successfully. + */ + public static final String FINISHED = "FINISHED"; + /** + * Application which failed. + */ + public static final String FAILED = "FAILED"; + /** + * Application which was terminated by a user or admin. + */ + public static final String KILLED = "KILLED"; } }