public final class TargetLoginPhase extends TargetPhase
TargetPhase
connection
Constructor and Description |
---|
TargetLoginPhase(Connection connection)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.jscsi.parser.ProtocolDataUnit pdu)
Starts the login phase.
|
boolean |
getAuthenticated() |
boolean |
getFirstPduAndSetToFalse()
This method will return
true if currently processed PDU is the first PDU sent by the initiator over
this phase's connection. |
execute, getTargetConnection
public TargetLoginPhase(Connection connection)
connection
- public boolean execute(org.jscsi.parser.ProtocolDataUnit pdu) throws IOException, InterruptedException, org.jscsi.exception.InternetSCSIException, DigestException, SettingsException
execute
in class TargetPhase
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 getFirstPduAndSetToFalse()
true
if currently processed PDU is the first PDU sent by the initiator over
this phase's connection. Subsequent calls will always return false
.true
if and only if this method is called for the first timepublic final boolean getAuthenticated()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.