public final class TargetLoginPhase extends TargetPhase
TargetPhaseconnection| Constructor and Description |
|---|
TargetLoginPhase(Connection connection)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(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, getTargetConnectionpublic TargetLoginPhase(Connection connection)
connection - public boolean execute(ProtocolDataUnit pdu) throws IOException, InterruptedException, InternetSCSIException, DigestException, SettingsException
execute in class TargetPhasepdu - 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 interruptedInternetSCSIException - 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 © 2012 University of Konstanz, Distributed Systems Group. All Rights Reserved.