public final class BasicHeaderSegment extends Object
This class encapsulate a Basic Header Segment (BHS), which is defined in the iSCSI Protocol (RFC3720). It provides methods for serializing or deserializing such an object. The contained data can be accessed seperately by the getter methods.
The BHS has a fixed size, which is stored in the variable BHS_FIXED_SIZE. And these must the
first bytes in a valid iSCSI Protocol Data Unit (PDU). org.jscsi.utils
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getDataSegmentLength()
The Length of the Data Segment.
|
int |
getInitiatorTaskTag()
The initiator assigns a Task Tag to each iSCSI task it issues.
|
OperationCode |
getOpCode()
Returns the operation code, which is used in this BHS.
|
AbstractMessageParser |
getParser()
Returns a object of the used parser of this BHS.
|
byte |
getTotalAHSLength()
The length of the Additional Header Segment.
|
boolean |
isFinalFlag()
When this flag is set it indicates the final (or only) PDU of a sequence.
|
boolean |
isImmediateFlag()
For request PDUs, the immediate flag can be set as an immediate delivery
marker.
|
void |
setInitiatorTaskTag(int initInitiatorTaskTag)
Changes the value of the initiator task tag.
|
String |
toString()
Creates a string object with all values for easy debugging.
|
public final int getDataSegmentLength()
public final boolean isFinalFlag()
TransitFlag.public final boolean isImmediateFlag()
public final int getInitiatorTaskTag()
public final byte getTotalAHSLength()
public final OperationCode getOpCode()
public final AbstractMessageParser getParser()
public final void setInitiatorTaskTag(int initInitiatorTaskTag)
initInitiatorTaskTag - The new value of the initiator task tag.public final String toString()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.