public enum CdbType extends Enum<CdbType>
CdbType
determines the length of a serialized CommandDescriptorBlock
(CDB) object.
The first 3 bytes (the group code) of the CDB's ScsiOperationCode
field specify the CdbType
.
Enum Constant and Description |
---|
SIX_BYTE_COMMANDS
The CDB is 6 bytes long.
|
SIXTEEN_BYTE_COMMANDS
The CDB is 16 bytes long.
|
TEN_BYTE_COMMANDS
The CDB is 10 bytes long.
|
TWELVE_BYTE_COMMANDS
The CDB is 12 bytes long.
|
VARIABLE_LENGTH_COMMANDS
The CDB length is not determined by the CDB's
ScsiOperationCode field. |
VENDOR_SPECIFIC
The CDB length is vendor-specific.
|
Modifier and Type | Method and Description |
---|---|
static CdbType |
getCdbType(ScsiOperationCode scsiOpCode)
Returns the
CdbType for the passed ScsiOperationCode . |
static CdbType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CdbType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CdbType SIX_BYTE_COMMANDS
public static final CdbType TEN_BYTE_COMMANDS
public static final CdbType TWELVE_BYTE_COMMANDS
public static final CdbType SIXTEEN_BYTE_COMMANDS
public static final CdbType VARIABLE_LENGTH_COMMANDS
ScsiOperationCode
field.public static final CdbType VENDOR_SPECIFIC
public static CdbType[] values()
for (CdbType c : CdbType.values()) System.out.println(c);
public static CdbType 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 CdbType getCdbType(ScsiOperationCode scsiOpCode)
CdbType
for the passed ScsiOperationCode
.scsiOpCode
- determines CDB lengthCdbType
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.