public enum SCSIStatus extends Enum<SCSIStatus>
This enumerations defines all valid stati, which are defined in the iSCSI Standard (RFC 3720) and the SCSI Architecture Model 2 [SAM2].
| Status Code | Status | Task Ended | Service Response |
|---|---|---|---|
| 00h | GOOD | Yes | TASK COMPLETE |
| 02h | CHECK CONDITION | Yes | TASK COMPLETE |
| 04h | CONDITION MET | Yes | TASK COMPLETE |
| 08h | BUSY | Yes | TASK COMPLETE |
| 10h | INTERMEDIATE | No | LINKED COMMAND COMPLETE |
| 14h | INTERMEDIATE-CONDITION MET | No | LINKED COMMAND COMPLETE |
| 18h | RESERVATION CONFLICT | Yes | TASK COMPLETE |
| 22h | Obsolete | ||
| 28h | TASK SET FULL | Yes | TASK COMPLETE |
| 30h | ACA ACTIVE | Yes | TASK COMPLETE |
| 40h | TASK ABORTED | Yes | TASK COMPLETE |
All other codes are reserved.
| Enum Constant and Description |
|---|
ACA_ACTIVE
This status shall be returned when an ACA exists within a task set and a
SCSI initiator port issues a command for that task set when at least one
of the following is true:
|
BUSY
This status indicates that the logical unit is busy.
|
CHECK_CONDITION
This status indicates that an CA or ACA condition has occurred (see
5.9.1).
|
CONDITION_MET
This status shall be returned whenever the requested operation specified
by an unlinked command is satisfied (see the PRE-FETCH commands in the
SBC standard).
|
GOOD
This status indicates that the device server has successfully completed
the task.
|
INTERMEDIATE
This status or INTERMEDIATE-CONDITION MET shall be returned for each
successfully completed command in a series of linked commands (except the
last command), unless the command is termi- nated with CHECK CONDITION,
RESERVATION CONFLICT, TASK SET FULL, or BUSY status.
|
INTERMEDIATE_CONDITION_MET
This status is returned whenever the requested operation specified by a
linked command is satisfied (see the PRE-FETCH commands in the SBC
standard), unless the command is termi- nated with CHECK CONDITION,
RESERVATION CONFLICT, TASK SET FULL, or BUSY status.
|
RESERVATION_CONFLICT
This status shall be returned whenever a SCSI initiator port attempts to
access a logical unit or an element of a logical unit in a way that
conflicts with an existing reservation.
|
TASK_ABORTED
This status shall be returned when a task is aborted by another SCSI
initiator port and the Control mode page TAS bit is set to one (see
5.7.3)[SAM2].
|
TASK_SET_FULL
This status shall be implemented if the logical unit supports the
creation of tagged tasks (see 4.10)[SAM2].
|
| Modifier and Type | Method and Description |
|---|---|
byte |
value()
Returns the value of this enumeration.
|
static SCSIStatus |
valueOf(byte value)
Returns the constant defined for the given
value. |
static SCSIStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SCSIStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SCSIStatus GOOD
public static final SCSIStatus CHECK_CONDITION
public static final SCSIStatus CONDITION_MET
public static final SCSIStatus BUSY
public static final SCSIStatus INTERMEDIATE
public static final SCSIStatus INTERMEDIATE_CONDITION_MET
public static final SCSIStatus RESERVATION_CONFLICT
If the UA_INTLCK_CTRL field in the Control mode page contains 11b (see SPC-3), termination of a command with RESERVATION CONFLICT status shall cause an unit attention condition to be established for the SCSI initiator port that sent the command with an additional sense code of PREVIOUS RESERVATION CONFLICT STATUS unless a PREVIOUS RESERVATION CONFLICT STATUS unit attention condition already exists.
public static final SCSIStatus TASK_SET_FULL
When the logical unit has at least one task in the task set for a SCSI initiator port and a lack of task set resources prevents accepting a received tagged task from that SCSI initiator port into the task set, TASK SET FULL shall be returned. When the logical unit has no task in the task set for a SCSI initiator port and a lack of task set resources prevents accepting a received tagged task from that SCSI initiator port into the task set, BUSY should be returned.
When the logical unit has at least one task in the task set and a lack of task set resources prevents accepting a received untagged task into the task set, BUSY should be returned.
The logical unit should allow at least one command in the task set for each supported SCSI initiator port that has identified itself to the SCSI target port by a SCSI transport protocol specific procedure or by the successful trans- mission of a command.
If the UA_INTLCK_CTRL field in the Control mode page contains 11b (see SPC-3), termination of a command with TASK SET FULL status shall cause an unit attention condition to be established for the SCSI initiator port that sent the command with an additional sense code of PREVIOUS TASK SET FULL STATUS unless a PREVIOUS TASK SET FULL STATUS unit attention condition already exists.
public static final SCSIStatus ACA_ACTIVE
public static final SCSIStatus TASK_ABORTED
public static SCSIStatus[] values()
for (SCSIStatus c : SCSIStatus.values()) System.out.println(c);
public static SCSIStatus 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 final byte value()
public static final SCSIStatus valueOf(byte value)
value.value - The value to search for.value. Or null, if this value is
not defined by this
enumeration.Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.