public enum SenseKey extends Enum<SenseKey>
| Enum Constant and Description |
|---|
ABORTED_COMMAND
Indicates that the device server aborted the command.
|
BLANK_CHECK
Indicates that a write-once device or a sequential-access device
encountered blank medium or format-defined end-of-data indication while
reading or that a write-once device encountered a non-blank medium while
writing.
|
COPY_ABORTED
Indicates an EXTENDED COPY command was aborted due to an error condition
on the source device, the destination device, or both (see "errors
detected during processing of segment descriptors").
|
DATA_PROTECT
Indicates that a command that reads or writes the medium was attempted on
a block that is protected.
|
HARDWARE_ERROR
Indicates that the device server detected a non-recoverable hardware
failure (e.g., controller failure, device failure, or parity error) while
performing the command or during a self test.
|
ILLEGAL_REQUEST
Indicates that:
a) The command was addressed to an incorrect logical unit number (see
SAM-3); b) The command had an invalid task attribute (see SAM-3); c) The
command was addressed to a logical unit whose current configuration
prohibits processing the command; d) There was an illegal parameter in
the CDB; or e) There was an illegal parameter in the additional
parameters supplied as data for some commands (e.g., PERSISTENT RESERVE
OUT).
|
MEDIUM_ERROR
Indicates that the command terminated with a non-recovered error
condition that may have been caused by a flaw in the medium or an error
in the recorded data.
|
MISCOMPARE
Indicates that the source data did not match the data read from the
medium.
|
NO_SENSE
Indicates that there is no specific sense key information to be reported.
|
NOT_READY
Indicates that the logical unit is not accessible.
|
RECOVERED_ERROR
Indicates that the command completed successfully, with some recovery
action performed by the device server.
|
UNIT_ATTENTION
Indicates that a unit attention condition has been established (e.g., the
removable medium may have been changed, a logical unit reset occurred).
|
VENDOR_SPECIFIC
This sense key is available for reporting vendor specific conditions.
|
VOLUME_OVERFLOW
Indicates that a buffered SCSI device has reached the end-of-partition
and data may remain in the buffer that has not been written to the
medium.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
The serialized value of the instance.
|
static SenseKey |
valueOf(int value)
Returns the
SenseKey instance representing the passed
value. |
static SenseKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SenseKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SenseKey NO_SENSE
public static final SenseKey RECOVERED_ERROR
public static final SenseKey NOT_READY
public static final SenseKey MEDIUM_ERROR
HARDWARE_ERROR).public static final SenseKey HARDWARE_ERROR
public static final SenseKey ILLEGAL_REQUEST
public static final SenseKey UNIT_ATTENTION
public static final SenseKey DATA_PROTECT
public static final SenseKey BLANK_CHECK
public static final SenseKey VENDOR_SPECIFIC
public static final SenseKey COPY_ABORTED
public static final SenseKey ABORTED_COMMAND
public static final SenseKey VOLUME_OVERFLOW
public static final SenseKey MISCOMPARE
public static SenseKey[] values()
for (SenseKey c : SenseKey.values()) System.out.println(c);
public static SenseKey valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static SenseKey valueOf(int value)
SenseKey instance representing the passed
value.value - a sense key valueSenseKey instance representing the passed
valuepublic int getValue()
Copyright © 2012 University of Konstanz, Distributed Systems Group. All Rights Reserved.