feat(configuration): 增加yarn状态静态字段

This commit is contained in:
2023-12-20 18:09:46 +08:00
parent b82fc24f07
commit 5fc451f98f

View File

@@ -116,26 +116,61 @@ public final class YarnApplication {
@Override @Override
public String toString() { public String toString() {
return "YarnApplication{" + return "YarnApplication{" +
"cluster='" + cluster + '\'' + "cluster='" + cluster + '\'' +
", id='" + id + '\'' + ", id='" + id + '\'' +
", user='" + user + '\'' + ", user='" + user + '\'' +
", queue='" + queue + '\'' + ", queue='" + queue + '\'' +
", name='" + name + '\'' + ", name='" + name + '\'' +
", state='" + state + '\'' + ", state='" + state + '\'' +
", finalStatus='" + finalStatus + '\'' + ", finalStatus='" + finalStatus + '\'' +
", progress=" + progress + ", progress=" + progress +
", diagnostics='" + diagnostics + '\'' + ", diagnostics='" + diagnostics + '\'' +
", applicationType='" + applicationType + '\'' + ", applicationType='" + applicationType + '\'' +
", startedTime=" + startedTime + ", startedTime=" + startedTime +
", launchTime=" + launchTime + ", launchTime=" + launchTime +
", finishedTime=" + finishedTime + ", finishedTime=" + finishedTime +
", elapsedTime=" + elapsedTime + ", elapsedTime=" + elapsedTime +
", trackingUrl='" + trackingUrl + '\'' + ", trackingUrl='" + trackingUrl + '\'' +
", allocatedMB=" + allocatedMB + ", allocatedMB=" + allocatedMB +
", allocatedVCores=" + allocatedVCores + ", allocatedVCores=" + allocatedVCores +
", runningContainers=" + runningContainers + ", runningContainers=" + runningContainers +
", queueUsagePercentage=" + queueUsagePercentage + ", queueUsagePercentage=" + queueUsagePercentage +
", clusterUsagePercentage=" + clusterUsagePercentage + ", 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";
} }
} }