org.mitre.cybox.objects.unix.UnixProcessStateEnum Maven / Gradle / Ivy
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.11.01 at 11:48:17 AM PST
//
package org.mitre.cybox.objects.unix;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for UnixProcessStateEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="UnixProcessStateEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Running"/>
* <enumeration value="UninterruptibleSleep"/>
* <enumeration value="InterruptibleSleep"/>
* <enumeration value="Stopped"/>
* <enumeration value="Paging"/>
* <enumeration value="Dead"/>
* <enumeration value="Zombie"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "UnixProcessStateEnum")
@XmlEnum
public enum UnixProcessStateEnum {
/**
* Specifies a running process or runnable [on run queue] (R).
*
*/
@XmlEnumValue("Running")
RUNNING("Running"),
/**
* Specifies a process in uninterruptable sleep [usually IO] (D).
*
*/
@XmlEnumValue("UninterruptibleSleep")
UNINTERRUPTIBLE_SLEEP("UninterruptibleSleep"),
/**
* Specifies a process in interruptable sleep [waiting for an event to complete] (S).
*
*/
@XmlEnumValue("InterruptibleSleep")
INTERRUPTIBLE_SLEEP("InterruptibleSleep"),
/**
* Specifies a stopped process, either by a job control signal or because it is being traced (T).
*
*/
@XmlEnumValue("Stopped")
STOPPED("Stopped"),
/**
* Specifies a paging process [not valid since the 2.6.xx kernel] (W).
*
*/
@XmlEnumValue("Paging")
PAGING("Paging"),
/**
* Specifies a dead process [should never be seen] (X).
*
*/
@XmlEnumValue("Dead")
DEAD("Dead"),
/**
* Specifies a defunct, zombie process [terminated but not reaped by its parent] (Z).
*
*/
@XmlEnumValue("Zombie")
ZOMBIE("Zombie");
private final String value;
UnixProcessStateEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static UnixProcessStateEnum fromValue(String v) {
for (UnixProcessStateEnum c: UnixProcessStateEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}