public enum ScsiOperationCode extends Enum<ScsiOperationCode>
The OPERATION CODE of the CommandDescriptorBlock
has a GROUP CODE field and a COMMAND CODE field. The
three-bit GROUP CODE field provides for eight groups of command codes. The five-bit COMMAND CODE field provides for
thirty-two command codes in each group. A total of 256 possible operation codes exist.
The value of the GROUP CODE field specifies the CommandDescriptorBlock
's length.
CdbType
Enum Constant and Description |
---|
FORMAT_UNIT |
INQUIRY |
MODE_SELECT_6 |
MODE_SENSE_6 |
READ_10 |
READ_6 |
READ_CAPACITY_10 |
READ_CAPACITY_16 |
REPORT_LUNS |
REQUEST_SENSE |
SEND_DIAGNOSTIC |
TEST_UNIT_READY |
WRITE_10 |
WRITE_6 |
Modifier and Type | Method and Description |
---|---|
CdbType |
getCdbType()
Returns the
CdbType for this operation code. |
int |
getCommandCode()
Returns the five-bit COMMAND CODE field.
|
int |
getGroupCode()
The three-bit GROUP CODE field provides for eight groups of command codes.
|
byte |
value()
Returns the serialized value of the operation code.
|
static ScsiOperationCode |
valueOf(byte value)
Returns the
ScsiOperationCode corresponding to the passed byte value. |
static ScsiOperationCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScsiOperationCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScsiOperationCode TEST_UNIT_READY
public static final ScsiOperationCode REQUEST_SENSE
public static final ScsiOperationCode FORMAT_UNIT
public static final ScsiOperationCode READ_6
public static final ScsiOperationCode WRITE_6
public static final ScsiOperationCode INQUIRY
public static final ScsiOperationCode MODE_SELECT_6
public static final ScsiOperationCode MODE_SENSE_6
public static final ScsiOperationCode SEND_DIAGNOSTIC
public static final ScsiOperationCode READ_CAPACITY_10
public static final ScsiOperationCode READ_10
public static final ScsiOperationCode WRITE_10
public static final ScsiOperationCode READ_CAPACITY_16
public static final ScsiOperationCode REPORT_LUNS
public static ScsiOperationCode[] values()
for (ScsiOperationCode c : ScsiOperationCode.values()) System.out.println(c);
public static ScsiOperationCode 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 final ScsiOperationCode valueOf(byte value)
ScsiOperationCode
corresponding to the passed byte value.value
- the serialized value of a SCSI operation codeScsiOperationCode
or null
if the passed value is not known by the
jSCSI Targetpublic final byte value()
public int getGroupCode()
public int getCommandCode()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.