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

org.btrplace.model.VMState Maven / Gradle / Ivy

The newest version!
/*
 * Copyright  2020 The BtrPlace Authors. All rights reserved.
 * Use of this source code is governed by a LGPL-style
 * license that can be found in the LICENSE.txt file.
 */

package org.btrplace.model;

/**
 * The possible state for a VM.
 */
public enum VMState {
    INIT(1), READY(2), RUNNING(4), SLEEPING(8), KILLED(16);

  private final int v;

    /**
     * Unique identifier for the state.
     *
     * @param val the state value
     */
    VMState(int val) {
        this.v = val;
    }

    /**
     * Get the enum identifier.
     *
     * @return the identifier
     */
    public int value() {
        return v;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy