public static enum RejectParser.ReasonCode extends Enum<RejectParser.ReasonCode>
| Code (hex) | Explanation | Can the original PDU be re-sent? |
|---|---|---|
| 0x01 | Reserved | no |
| 0x02 | Data (payload) Digest Error | yes (Note 1) |
| 0x03 | SNACK Reject | yes |
| 0x04 | Protocol Error (e.g., SNACK request for a status that was already acknowledged) | no |
| 0x05 | Command not supported | no |
| 0x06 | Immediate Command Reject - too many immediate commands | yes |
| 0x07 | Task in progress | no |
| 0x08 | Invalid Data ACK | no |
| 0x09 | Invalid PDU field | no (Note 2) |
| 0x0a | Long Operation Reject - Can't generate Target Transfer Tag - out of resources | yes |
| 0x0b | Negotiation Reset | no |
| 0x0c | Waiting for Logout | no |
Note 1: For iSCSI, Data-Out PDU retransmission is only done if the target requests retransmission with a recovery R2T. However, if this is the data digest error on immediate data, the initiator may choose to retransmit the whole PDU including the immediate data.
Note 2: A target should use this reasonCode code for all invalid values of PDU fields that are meant to describe a task, a response, or a data transfer. Some examples are invalid TTT/ITT, buffer offset, LUN qualifying a TTT, and an invalid sequence number in a SNACK.
All other values for Reason are reserved.
| Enum Constant and Description |
|---|
COMMAND_NOT_SUPPORTED
Command not supported.
|
DATA_DIGEST_ERROR
Data (payload) Digest Error.
|
IMMEDIATE_COMMAND_REJECT
Immediate Command Reject - too many immediate commands.
|
INVALID_DATA_ACK
Invalid Data ACK.
|
INVALID_PDU_FIELD
Invalid PDU field.
|
LONG_OPERATION_REJECT
Long Operation Reject - Can't generate Target Transfer Tag - out of
resources.
|
NEGOTIATION_RESET
Negotiation Reset.
|
PROTOCOL_ERROR
Protocol Error (e.g., SNACK request for a status that was already
acknowledged).
|
RESERVED
Reserved.
|
SNACK_REJECT
SNACK Reject.
|
TASK_IN_PROGRESS
Task in progress.
|
WAITING_FOR_LOGOUT
Waiting for Logout.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
value()
Returns the value of this enumeration.
|
static RejectParser.ReasonCode |
valueOf(byte value)
Returns the constant defined for the given
value. |
static RejectParser.ReasonCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RejectParser.ReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RejectParser.ReasonCode RESERVED
public static final RejectParser.ReasonCode DATA_DIGEST_ERROR
public static final RejectParser.ReasonCode SNACK_REJECT
public static final RejectParser.ReasonCode PROTOCOL_ERROR
public static final RejectParser.ReasonCode COMMAND_NOT_SUPPORTED
public static final RejectParser.ReasonCode IMMEDIATE_COMMAND_REJECT
public static final RejectParser.ReasonCode TASK_IN_PROGRESS
public static final RejectParser.ReasonCode INVALID_DATA_ACK
public static final RejectParser.ReasonCode INVALID_PDU_FIELD
public static final RejectParser.ReasonCode LONG_OPERATION_REJECT
public static final RejectParser.ReasonCode NEGOTIATION_RESET
public static final RejectParser.ReasonCode WAITING_FOR_LOGOUT
public static RejectParser.ReasonCode[] values()
for (RejectParser.ReasonCode c : RejectParser.ReasonCode.values()) System.out.println(c);
public static RejectParser.ReasonCode 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 RejectParser.ReasonCode 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.