Modifier and Type | Field and Description |
---|---|
protected Connection |
connection
The context connection used by all message kinds.
|
protected static org.slf4j.Logger |
LOGGER
The Logger interface.
|
protected org.jscsi.parser.ProtocolDataUnitFactory |
protocolDataUnitFactory
Factory to create the
ProtocolDataUnit instances. |
protected boolean |
stateFollowing
boolean to mark following states.
|
Constructor and Description |
---|
WriteSecondBurstState(Connection initConnection,
org.jscsi.parser.datasegment.IDataSegmentIterator initIterator,
int initTargetTransferTag,
int initDesiredDataTransferLength,
int initDataSequenceNumber,
int initBufferOffset)
Constructor to create a
WriteSecondBurstState instance, which sends the second and all following
data sequences. |
Modifier and Type | Method and Description |
---|---|
void |
execute()
This method is always invoked, when a request message must be send or response message must be received and then
parsed.
|
Exception |
isCorrect(org.jscsi.parser.ProtocolDataUnit protocolDataUnit)
This method checks the correctness of the given
ProtocolDataUnit instance within the current state
of a connection. |
boolean |
nextStateFollowing()
This method shows if another state is following this one.
|
protected static final org.slf4j.Logger LOGGER
protected final Connection connection
protected final org.jscsi.parser.ProtocolDataUnitFactory protocolDataUnitFactory
ProtocolDataUnit
instances.protected boolean stateFollowing
public WriteSecondBurstState(Connection initConnection, org.jscsi.parser.datasegment.IDataSegmentIterator initIterator, int initTargetTransferTag, int initDesiredDataTransferLength, int initDataSequenceNumber, int initBufferOffset)
WriteSecondBurstState
instance, which sends the second and all following
data sequences.initConnection
- This is the connection, which is used for the network transmission.initIterator
- The next chunk of the data to send.initTargetTransferTag
- The Target Transfer Tag to use.initDesiredDataTransferLength
- The desired data transfer length, which the iSCSI Target specified in the
last Ready2Transfer message.initDataSequenceNumber
- The Data Sequence Number to use as next.initBufferOffset
- The start offset of the data to send.public final void execute() throws org.jscsi.exception.InternetSCSIException
org.jscsi.exception.InternetSCSIException
- if any violation of the iSCSI Standard (RfC3720) has emerged.public boolean nextStateFollowing()
nextStateFollowing
in interface IState
true
, if another state must follow this state. Else an final state is reached.public Exception isCorrect(org.jscsi.parser.ProtocolDataUnit protocolDataUnit)
ProtocolDataUnit
instance within the current state
of a connection.Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.