mantis-common/src/main/java/io/mantisrx/runtime/MantisJobState.java [72:108]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static boolean isTerminalState(MantisJobState state) {
        switch (state) {
            case Failed:
            case Completed:
                return true;
            default:
                return false;
        }
    }

    public static boolean isErrorState(MantisJobState started) {
        switch (started) {
            case Failed:
                return true;
            default:
                return false;
        }
    }

    public static boolean isRunningState(MantisJobState state) {
        switch (state) {
            case Launched:
            case StartInitiated:
            case Started:
                return true;
            default:
                return false;
        }
    }

    public static boolean isOnSlaveState(MantisJobState state) {
        switch (state) {
            case StartInitiated:
            case Started:
                return true;
            default:
                return false;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



mantis-publish/mantis-publish-core/src/main/java/io/mantisrx/publish/internal/discovery/proto/MantisJobState.java [60:96]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static boolean isTerminalState(MantisJobState state) {
        switch (state) {
        case Failed:
        case Completed:
            return true;
        default:
            return false;
        }
    }

    public static boolean isErrorState(MantisJobState started) {
        switch (started) {
        case Failed:
            return true;
        default:
            return false;
        }
    }

    public static boolean isRunningState(MantisJobState state) {
        switch (state) {
        case Launched:
        case StartInitiated:
        case Started:
            return true;
        default:
            return false;
        }
    }

    public static boolean isOnSlaveState(MantisJobState state) {
        switch (state) {
        case StartInitiated:
        case Started:
            return true;
        default:
            return false;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



