public abstract class SenseData extends Object implements ISerializable
Sense data returned in the same I_T_L_Q nexus transaction as a CHECK CONDITION status shall be either fixed or descriptor format sense data format based on the value of the D_SENSE bit in the Control mode page.
The REQUEST SENSE command may be used to request either the fixed format sense data or the descriptor format sense data.
| Modifier and Type | Field and Description |
|---|---|
protected AdditionalSenseCodeAndQualifier |
additionalSenseCodeAndQualifier
The
senseKey and additionalSenseCodeAndQualifier fields provide a hierarchy of information. |
protected ErrorType |
errorType
The error type of the sense data as determined by the
responseCode variable. |
protected int |
responseCode
The first byte of all sense data contains the RESPONSE CODE field that indicates the error type and format of the
sense data.
|
protected SenseDataFormat |
senseDataFormat
The format of the sense data as determined by the
responseCode variable. |
protected SenseKey |
senseKey
The
senseKey and additionalSenseCodeAndQualifier fields provide a hierarchy of information. |
| Constructor and Description |
|---|
SenseData(ErrorType errorType,
SenseDataFormat senseDataFormat,
SenseKey senseKey,
AdditionalSenseCodeAndQualifier additionalSenseCodeAndQualifier)
The sense data constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getReponseCodeFor(ErrorType errorType,
SenseDataFormat senseDataFormat)
Returns the proper response code for the given error type and sense data format.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserialize, sizeprotected final int responseCode
errorType,
senseDataFormatprotected final ErrorType errorType
responseCode variable.protected final SenseDataFormat senseDataFormat
responseCode variable.protected final SenseKey senseKey
senseKey and additionalSenseCodeAndQualifier fields provide a hierarchy of information. The
hierarchy provides a top-down approach for an application client to determine information relating to the error
and exception conditions.protected final AdditionalSenseCodeAndQualifier additionalSenseCodeAndQualifier
senseKey and additionalSenseCodeAndQualifier fields provide a hierarchy of information. The
hierarchy provides a top-down approach for an application client to determine information relating to the error
and exception conditions.public SenseData(ErrorType errorType, SenseDataFormat senseDataFormat, SenseKey senseKey, AdditionalSenseCodeAndQualifier additionalSenseCodeAndQualifier)
errorType - the error type of the sense datasenseDataFormat - the format of the sense datasenseKey - describes the general category of the error requiring the sending of sense dataadditionalSenseCodeAndQualifier - a more specific description of the errorpublic static final int getReponseCodeFor(ErrorType errorType, SenseDataFormat senseDataFormat)
errorType - a sense data error typesenseDataFormat - a sense data formatCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.