All Downloads are FREE. Search and download functionalities are using the official Maven repository.

one.microproject.rpi.powercontroller.dto.ExecutionStatus Maven / Gradle / Ivy

The newest version!
package one.microproject.rpi.powercontroller.dto;

public enum ExecutionStatus {

    WAITING,
    IN_PROGRESS,
    FINISHED,
    ABORTED,
    FAILED,
    CANCELLED;

    public static boolean isTerminalExecutionState(ExecutionStatus status) {
        return ExecutionStatus.ABORTED.equals(status) || ExecutionStatus.CANCELLED.equals(status) ||
                ExecutionStatus.FAILED.equals(status) ||  ExecutionStatus.FINISHED.equals(status);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy