public final class AsynchronousMessageParser extends TargetMessageParser
Parser for the Asynchronous Message of the iSCSI Protocol (RFC3720).
| Modifier and Type | Class and Description |
|---|---|
static class |
AsynchronousMessageParser.AsyncEventCodes
Enumeration of all valid asynchronous message event codes.
|
expectedCommandSequenceNumber, maximumCommandSequenceNumber, statusSequenceNumberlogicalUnitNumber, protocolDataUnit| Constructor and Description |
|---|
AsynchronousMessageParser(ProtocolDataUnit initProtocolDataUnit)
Default constructor, creates a new, empty
AsynchronousMessageParser object. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIntegrity()
This method checks, if all parsed fields are valid.
|
void |
clear()
This method sets all settings to their initial values.
|
protected void |
deserializeBytes36to39(int line)
Parse the bytes
36 till 39 in the Basic Header
Segment. |
protected void |
deserializeBytes40to43(int line)
Parse the bytes
40 till 43 in the Basic Header
Segment. |
AsynchronousMessageParser.AsyncEventCodes |
getAsyncEvent()
Returns the asynchronous event code of this
AsynchronousMessageParser object. |
byte |
getAsyncVCode()
Returns the code of the iSCSI Asynchronous message.
|
DataSegmentFactory.DataSegmentFormat |
getDataSegmentFormat()
If this method returns
true, hen it indicates that the data
segment data is interpreted as binary data. |
short |
getParameter1()
Returns the first parameter of this asynchronous message.
|
short |
getParameter2()
Returns the second parameter of this asynchronous message.
|
short |
getParameter3()
Returns the third parameter of this asynchronous message.
|
protected int |
serializeBytes36to39()
Serializes the bytes
36 till 39 in the Basic
Header Segment. |
protected int |
serializeBytes40to43()
Serializes the bytes
40 till 43 in the Basic
Header Segment. |
String |
toString()
This method concatenate all the fields of a derived parser to allow an
easy generation of debug informations.
|
deserializeBytes1to3, deserializeBytes20to23, deserializeBytes24to27, deserializeBytes28to31, deserializeBytes32to35, deserializeBytes44to47, getExpectedCommandSequenceNumber, getMaximumCommandSequenceNumber, getShortInfo, getStatusSequenceNumber, incrementSequenceNumber, serializeBytes1to3, serializeBytes20to23, serializeBytes24to27, serializeBytes28to31, serializeBytes32to35, serializeBytes44to47, setExpectedCommandSequenceNumber, setMaximumCommandSequenceNumber, setStatusSequenceNumbercanContainAdditionalHeaderSegments, canHaveDigests, deserializeBytes12to15, deserializeBytes8to11, getLogicalUnitNumber, serializeBytes12to15, serializeBytes8to11, setLogicalUnitNumberpublic AsynchronousMessageParser(ProtocolDataUnit initProtocolDataUnit)
AsynchronousMessageParser object.initProtocolDataUnit - The reference ProtocolDataUnit instance, which
contains this AsynchronousMessageParser subclass
object.public final String toString()
toString in class TargetMessageParserpublic final DataSegmentFactory.DataSegmentFormat getDataSegmentFormat()
true, hen it indicates that the data
segment data is interpreted as binary data. Else the data segment data
must be interpreted as Text Format.getDataSegmentFormat in class AbstractMessageParserDataSegmentFactory.DataSegmentFormatpublic final void clear()
clear in class TargetMessageParserpublic final byte getAsyncVCode()
AsyncVCode is a vendor specific detail code that is only valid if the
AsyncEvent field indicates a vendor specific event. Otherwise, it is reserved.
AsynchronousMessageParser.AsyncEventCodespublic final AsynchronousMessageParser.AsyncEventCodes getAsyncEvent()
AsynchronousMessageParser object.public final short getParameter1()
public final short getParameter2()
public final short getParameter3()
protected final void deserializeBytes36to39(int line)
throws InternetSCSIException
36 till 39 in the Basic Header
Segment.deserializeBytes36to39 in class TargetMessageParserline - The actual lineInternetSCSIException - If any violation of the iSCSI-Standard emerge.protected final void deserializeBytes40to43(int line)
throws InternetSCSIException
40 till 43 in the Basic Header
Segment.deserializeBytes40to43 in class TargetMessageParserline - The actual lineInternetSCSIException - If any violation of the iSCSI-Standard emerge.protected final void checkIntegrity()
throws InternetSCSIException
checkIntegrity in class AbstractMessageParserInternetSCSIException - If the integrity is violated.protected final int serializeBytes36to39()
36 till 39 in the Basic
Header Segment.serializeBytes36to39 in class TargetMessageParserprotected final int serializeBytes40to43()
40 till 43 in the Basic
Header Segment.serializeBytes40to43 in class TargetMessageParserCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.