org.btrplace.model.VMState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scheduler-api Show documentation
Show all versions of scheduler-api Show documentation
Core components for a scheduler
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