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

com.jelastic.api.system.service.utils.NodeStatus Maven / Gradle / Ivy

The newest version!
/*Server class MD5: 3dc2377b4b06a032d05951999049d7e6*/
package com.jelastic.api.system.service.utils;

/**
 * @name Jelastic API Client
 * @version 8.11.2
 * @copyright Jelastic, Inc.
 */
public enum NodeStatus {

    RUNNING(1),
    DOWN(2),
    LAUNCHING(3),
    SLEEP(4),
    UNKNOWN(5),
    CREATING(6),
    CLONING(7),
    NOT_EXISTS(8),
    EXPORTING(9),
    MIGRATING(10),
    BROKEN(11),
    UPDATING(12),
    STOPPING(13),
    GOING_TO_SLEEP(14),
    RESTORING(15),
    SHELVED(16);

    private int value;

    NodeStatus(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static NodeStatus parse(int value) {
        for (NodeStatus item : NodeStatus.values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        throw new IllegalArgumentException("status code " + value + " is unknown");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy