public final class Ready2TransferParser extends TargetMessageParser
expectedCommandSequenceNumber, maximumCommandSequenceNumber, statusSequenceNumberlogicalUnitNumber, protocolDataUnit| Constructor and Description |
|---|
Ready2TransferParser(ProtocolDataUnit initProtocolDataUnit)
Default constructor, creates a new, empty
Ready2TransferParser 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 |
deserializeBytes1to3(int line)
Parse the bytes
1 till 3 in the Basic Header
Segment. |
protected void |
deserializeBytes20to23(int line)
Parse the bytes
20 till 23 in the Basic Header
Segment. |
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. |
protected void |
deserializeBytes44to47(int line)
Parse the bytes
44 till 47 in the Basic Header
Segment. |
int |
getBufferOffset()
The target specifies how many bytes it wants the initiator to send
because of this R2T PDU.
|
DataSegmentFactory.DataSegmentFormat |
getDataSegmentFormat()
If this method returns
true, hen it indicates that the data
segment data is interpreted as binary data. |
int |
getDesiredDataTransferLength()
The Desired Data Transfer Length MUST NOT be
0 and MUST not
exceed MaxBurstLength. |
int |
getReady2TransferSequenceNumber()
R2TSN is the R2T PDU input PDU number within the command identified by
the Initiator Task Tag.
|
int |
getTargetTransferTag()
The target assigns its own tag to each R2T request that it sends to the
initiator.
|
boolean |
incrementSequenceNumber()
This
AbstractMessageParser instance affects the
incrementation of the Expected Status Sequence Number. |
protected int |
serializeBytes20to23()
Serializes the bytes
20 till 23 in the Basic
Header Segment. |
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. |
protected int |
serializeBytes44to47()
Serializes the bytes
44 till 47 in the Basic
Header Segment. |
void |
setBufferOffset(int bufferOffset) |
void |
setDesiredDataTransferLength(int desiredDataTransferLength) |
void |
setReady2TransferSequenceNumber(int ready2TransferSequenceNumber) |
void |
setTargetTransferTag(int targetTransferTag) |
String |
toString()
This method concatenate all the fields of a derived parser to allow an
easy generation of debug informations.
|
deserializeBytes24to27, deserializeBytes28to31, deserializeBytes32to35, getExpectedCommandSequenceNumber, getMaximumCommandSequenceNumber, getShortInfo, getStatusSequenceNumber, serializeBytes1to3, serializeBytes24to27, serializeBytes28to31, serializeBytes32to35, setExpectedCommandSequenceNumber, setMaximumCommandSequenceNumber, setStatusSequenceNumbercanContainAdditionalHeaderSegments, canHaveDigests, deserializeBytes12to15, deserializeBytes8to11, getLogicalUnitNumber, serializeBytes12to15, serializeBytes8to11, setLogicalUnitNumberpublic Ready2TransferParser(ProtocolDataUnit initProtocolDataUnit)
Ready2TransferParser object.initProtocolDataUnit - The reference ProtocolDataUnit instance, which
contains this Ready2TransferParser 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 boolean incrementSequenceNumber()
AbstractMessageParser instance affects the
incrementation of the Expected Status Sequence Number.incrementSequenceNumber in class TargetMessageParsertrue, if the counter has to be incremented. Else false.public final int getBufferOffset()
public final int getDesiredDataTransferLength()
0 and MUST not
exceed MaxBurstLength.getBufferOffset()public final int getReady2TransferSequenceNumber()
public final int getTargetTransferTag()
0xffffffff is reserved and MUST NOT be
sent by a target in
an R2T.public final void setTargetTransferTag(int targetTransferTag)
public final void setReady2TransferSequenceNumber(int ready2TransferSequenceNumber)
public final void setBufferOffset(int bufferOffset)
public final void setDesiredDataTransferLength(int desiredDataTransferLength)
protected final void deserializeBytes1to3(int line)
throws InternetSCSIException
1 till 3 in the Basic Header
Segment.deserializeBytes1to3 in class TargetMessageParserline - The actual lineInternetSCSIException - If any violation of the iSCSI-Standard emerge.protected final void deserializeBytes20to23(int line)
throws InternetSCSIException
20 till 23 in the Basic Header
Segment.deserializeBytes20to23 in class TargetMessageParserline - The actual lineInternetSCSIException - If any violation of the iSCSI-Standard emerge.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 deserializeBytes44to47(int line)
throws InternetSCSIException
44 till 47 in the Basic Header
Segment.deserializeBytes44to47 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 serializeBytes20to23()
20 till 23 in the Basic
Header Segment.serializeBytes20to23 in class TargetMessageParserprotected 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 TargetMessageParserprotected final int serializeBytes44to47()
44 till 47 in the Basic
Header Segment.serializeBytes44to47 in class TargetMessageParserCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.