public enum MediumState extends java.lang.Enum<MediumState>
Enum Constant and Description |
---|
Created
Associated storage exists and accessible; this gets set if the
accessibility check performed by
IMedium.refreshState() was successful. |
Creating
Associated medium storage is being created.
|
Deleting
Associated medium storage is being deleted.
|
Inaccessible
Medium accessibility check (see
IMedium.refreshState() ) has
not yet been performed, or else, associated medium storage is not
accessible. |
LockedRead
Medium is locked for reading (see
IMedium.lockRead() ),
no data modification is possible. |
LockedWrite
Medium is locked for writing (see
IMedium.lockWrite() ),
no concurrent data reading or modification is possible. |
NotCreated
Associated medium storage does not exist (either was not created yet or
was deleted).
|
Modifier and Type | Method and Description |
---|---|
static MediumState |
fromValue(long v) |
static MediumState |
fromValue(java.lang.String v) |
int |
value() |
static MediumState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediumState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediumState NotCreated
public static final MediumState Created
IMedium.refreshState()
was successful.public static final MediumState LockedRead
IMedium.lockRead()
),
no data modification is possible.public static final MediumState LockedWrite
IMedium.lockWrite()
),
no concurrent data reading or modification is possible.public static final MediumState Inaccessible
IMedium.refreshState()
) has
not yet been performed, or else, associated medium storage is not
accessible. In the first case,IMedium.getLastAccessError()
is empty, in the second case, it describes the error that occurred.public static final MediumState Creating
public static final MediumState Deleting
public static MediumState[] values()
for (MediumState c : MediumState.values()) System.out.println(c);
public static MediumState 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 MediumState fromValue(long v)
public static MediumState fromValue(java.lang.String v)