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

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

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

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

    ENV_STATUS_TYPE_RUNNING(1),
    ENV_STATUS_TYPE_DOWN(2),
    ENV_STATUS_TYPE_LAUNCHING(3),
    ENV_STATUS_TYPE_SLEEP(4),
    ENV_STATUS_TYPE_UNKNOWN(5),
    ENV_STATUS_TYPE_CREATING(6),
    ENV_STATUS_TYPE_CLONING(7),
    ENV_STATUS_TYPE_NOT_EXISTS(8),
    ENV_STATUS_TYPE_EXPORTING(9),
    ENV_STATUS_TYPE_MIGRATING(10),
    ENV_STATUS_TYPE_BROKEN(11),
    ENV_STATUS_TYPE_UPDATING(12),
    ENV_STATUS_TYPE_STOPPING(13),
    ENV_STATUS_TYPE_GOING_TO_SLEEP(14),
    ENV_STATUS_TYPE_RESTORING(15),
    ENV_STATUS_TYPE_SHELVED(16);

    private int value;

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

    public int getValue() {
        return value;
    }

    public static EnvironmentStatus getById(int id) {
        for (EnvironmentStatus status : values()) {
            if (status.value == id) {
                return status;
            }
        }
        return ENV_STATUS_TYPE_UNKNOWN;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy