public enum SessionState extends java.lang.Enum<SessionState>
IMachine.getSessionState()
andISession.getState()
attributes.
Interface ID: {CF2700C0-EA4B-47AE-9725-7810114B94D8}
Enum Constant and Description |
---|
Locked
In
IMachine.getSessionState() , this means that the machine
is currently locked for a session, whose process identifier can
then be found in theIMachine.getSessionPID() attribute. |
Null
Null value (never used by the API).
|
Spawning
A new process is being spawned for the machine as a result of
IMachine.launchVMProcess(org.virtualbox_7_0.ISession,String,List) call. |
Unlocked
In
IMachine.getSessionState() , this means that the machine
is not locked for any sessions. |
Unlocking
The session is being unlocked.
|
Modifier and Type | Method and Description |
---|---|
static SessionState |
fromValue(long v) |
static SessionState |
fromValue(java.lang.String v) |
int |
value() |
static SessionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SessionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionState Null
public static final SessionState Unlocked
IMachine.getSessionState()
, this means that the machine
is not locked for any sessions.
InISession.getState()
, this means that no machine is
currently locked for this session.public static final SessionState Locked
IMachine.getSessionState()
, this means that the machine
is currently locked for a session, whose process identifier can
then be found in theIMachine.getSessionPID()
attribute.
InISession.getState()
, this means that a machine is
currently locked for this session, and the mutable machine object
can be found in theISession.getMachine()
attribute
(seeIMachine.lockMachine(org.virtualbox_7_0.ISession,org.virtualbox_7_0.LockType)
for details).public static final SessionState Spawning
IMachine.launchVMProcess(org.virtualbox_7_0.ISession,String,List)
call. This state also occurs
as a short transient state during anIMachine.lockMachine(org.virtualbox_7_0.ISession,org.virtualbox_7_0.LockType)
call.public static final SessionState Unlocking
public static SessionState[] values()
for (SessionState c : SessionState.values()) System.out.println(c);
public static SessionState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static SessionState fromValue(long v)
public static SessionState fromValue(java.lang.String v)