public abstract class TargetPhase extends Object
Connection
for a description of the relationship
between stages, phases, connections, and sessions).
To start a phase, one of the execute methods must be called, which one is sub-class-specific.
Modifier and Type | Field and Description |
---|---|
protected Connection |
connection
The connection this phase is a part of.
|
Constructor and Description |
---|
TargetPhase(Connection connection)
The abstract constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute()
Throws an
OperationNotSupportedException unless overwritten. |
boolean |
execute(org.jscsi.parser.ProtocolDataUnit pdu)
Throws an
OperationNotSupportedException unless overwritten. |
Connection |
getTargetConnection()
Getting the related connection
|
protected Connection connection
public TargetPhase(Connection connection)
connection
- the connection is phase is a part ofpublic boolean execute(org.jscsi.parser.ProtocolDataUnit pdu) throws OperationNotSupportedException, IOException, InterruptedException, org.jscsi.exception.InternetSCSIException, DigestException, SettingsException
OperationNotSupportedException
unless overwritten.pdu
- the first PDU to be processes as part of the phasetrue
if and only if the phase was completed successfullyOperationNotSupportedException
- if the method is not overwrittenIOException
- if an I/O error occursInterruptedException
- if the current Thread is interruptedorg.jscsi.exception.InternetSCSIException
- if a iSCSI protocol violation is detectedDigestException
- if a PDU digest error is detectedSettingsException
- if the target tries to access a parameter that has not been declared or negotiated and
that has no default valuepublic boolean execute() throws OperationNotSupportedException, org.jscsi.exception.InternetSCSIException, DigestException, IOException, InterruptedException, SettingsException
OperationNotSupportedException
unless overwritten.true
if and only if the phase was completed successfullyOperationNotSupportedException
- if the method is not overwrittenIOException
- if an I/O error occursInterruptedException
- if the current Thread is interruptedorg.jscsi.exception.InternetSCSIException
- if a iSCSI protocol violation is detectedDigestException
- if a PDU digest error is detectedSettingsException
- if the target tries to access a parameter that has not been declared or negotiated and
that has no default valueInitiatorLoginRequestException
public Connection getTargetConnection()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.