|
24 | 24 |
|
25 | 25 | public final class BatchUtils {
|
26 | 26 | /** The batch has not been submitted to resource manager yet. */
|
27 |
| - public static String PENDING_STATE = "PENDING"; |
| 27 | + public static final String PENDING_STATE = "PENDING"; |
28 | 28 |
|
29 | 29 | /** The batch has been submitted to resource manager and is running. */
|
30 |
| - public static String RUNNING_STATE = "RUNNING"; |
| 30 | + public static final String RUNNING_STATE = "RUNNING"; |
31 | 31 |
|
32 | 32 | /** The batch has been finished successfully. */
|
33 |
| - public static String FINISHED_STATE = "FINISHED"; |
| 33 | + public static final String FINISHED_STATE = "FINISHED"; |
34 | 34 |
|
35 | 35 | /** The batch met some issue and failed. */
|
36 |
| - public static String ERROR_STATE = "ERROR"; |
| 36 | + public static final String ERROR_STATE = "ERROR"; |
37 | 37 |
|
38 | 38 | /** The batch was closed by `DELETE /batches/${batchId}` api. */
|
39 |
| - public static String CANCELED_STATE = "CANCELED"; |
| 39 | + public static final String CANCELED_STATE = "CANCELED"; |
40 | 40 |
|
41 |
| - public static List<String> terminalBatchStates = |
| 41 | + public static final List<String> terminalBatchStates = |
42 | 42 | Arrays.asList(FINISHED_STATE, ERROR_STATE, CANCELED_STATE);
|
43 | 43 |
|
44 |
| - public static String KYUUBI_BATCH_ID_KEY = "kyuubi.batch.id"; |
| 44 | + public static final String KYUUBI_BATCH_ID_KEY = "kyuubi.batch.id"; |
45 | 45 |
|
46 |
| - public static String KYUUBI_BATCH_DUPLICATED_KEY = "kyuubi.batch.duplicated"; |
| 46 | + public static final String KYUUBI_BATCH_DUPLICATED_KEY = "kyuubi.batch.duplicated"; |
47 | 47 |
|
48 | 48 | public static boolean isPendingState(String state) {
|
49 | 49 | return PENDING_STATE.equalsIgnoreCase(state);
|
|
0 commit comments