public final class DescriptorFormatSenseData extends SenseData
SenseDataFormat.DESCRIPTOR
additionalSenseCodeAndQualifier, errorType, responseCode, senseDataFormat, senseKey
Constructor and Description |
---|
DescriptorFormatSenseData(ErrorType errorType,
SenseKey senseKey,
AdditionalSenseCodeAndQualifier additionalSenseCodeAndQualifier,
SenseDataDescriptor... senseDataDescriptors)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
serialize(ByteBuffer byteBuffer,
int index)
Inserts a serialized representation of the object into the specified
ByteBuffer . |
int |
size()
Returns the size in bytes of the object's serialized representation.
|
getReponseCodeFor
public DescriptorFormatSenseData(ErrorType errorType, SenseKey senseKey, AdditionalSenseCodeAndQualifier additionalSenseCodeAndQualifier, SenseDataDescriptor... senseDataDescriptors)
errorType
- the error typesenseKey
- a general description of what caused the erroradditionalSenseCodeAndQualifier
- a more specific description of the errorsenseDataDescriptors
- more specific error informationpublic void serialize(ByteBuffer byteBuffer, int index)
ISerializable
ByteBuffer
. The serialized object
will occupy the byte positions from index to index + ISerializable.size()
- 1.byteBuffer
- where to insert the serialized object representationindex
- the position of the first byte of the serialized object in the ByteBuffer
public int size()
ISerializable
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.