public abstract class TargetStage extends Object
Connection
for a description of the relationship
between sessions, connections, phases, and sessions).
The stage is started by calling the execute(ProtocolDataUnit)
method with the first ProtocolDataUnit
to be processed as part of the stage.
Modifier and Type | Field and Description |
---|---|
protected Connection |
connection
The connection the
TargetFullFeaturePhase is a part of |
protected TargetSession |
session
The session the
connection is a part of. |
protected Settings |
settings
The current
Settings of connection . |
protected TargetPhase |
targetPhase
The phase this stage is a part of.
|
Constructor and Description |
---|
TargetStage(TargetPhase targetPhase)
The abstract constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(org.jscsi.parser.ProtocolDataUnit pdu)
Starts the stage.
|
Connection |
getConnection()
Getting connection of this stage.
|
protected final TargetPhase targetPhase
protected final Connection connection
TargetFullFeaturePhase
is a part ofprotected final TargetSession session
connection
is a part of.protected final Settings settings
Settings
of connection
.public TargetStage(TargetPhase targetPhase)
targetPhase
- the phase this stage is a part ofpublic abstract void execute(org.jscsi.parser.ProtocolDataUnit pdu) throws IOException, InterruptedException, org.jscsi.exception.InternetSCSIException, DigestException, SettingsException
pdu
- the first ProtocolDataUnit
to be processed in the stageIOException
- if the connection was closed unexpectedlyInterruptedException
org.jscsi.exception.InternetSCSIException
- if a PDU has violated the iSCSI standardDigestException
- if a digest error was detectedSettingsException
- if the program has attempted to access a value from settings which has not been
negotiated and which does not have a default valuepublic Connection getConnection()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.