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

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

View File

@@ -138,4 +138,39 @@ public final class YarnApplication {
", 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";
}
} }