Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER
The Logger interface.
|
Constructor and Description |
---|
FullFeaturePhase() |
Modifier and Type | Method and Description |
---|---|
boolean |
getCapacity(Session session,
TargetCapacityInformations capacityInformation)
This method handles the
TargetCapacityInformations within this session (if possible in the current
phase). |
org.jscsi.parser.login.LoginStage |
getStage()
Returns the current stage.
|
boolean |
login(Session session)
This method handles the login of a connection (if possible).
|
boolean |
logoutConnection(Session session,
short connectionID)
This method handles the logout of a connection (if possible) (if possible in the current phase).
|
boolean |
logoutSession(ITask task,
Session session)
This method handles the logout of the whole session (with all its connections) (if possible in the current
phase).
|
boolean |
read(ITask task,
Session session,
ByteBuffer dst,
int logicalBlockAddress,
long length)
This method handles a read operation within this session (if possible in the current phase).
|
boolean |
write(ITask task,
Session session,
ByteBuffer src,
int logicalBlockAddress,
long length)
This method handles a write operation within this session (if possible in the current phase).
|
public final boolean login(Session session) throws Exception
public final boolean logoutSession(ITask task, Session session) throws Exception
logoutSession
in interface IPhase
task
- The calling Tasksession
- The context object of the current session.Exception
- if any error occurs.public final boolean read(ITask task, Session session, ByteBuffer dst, int logicalBlockAddress, long length) throws Exception
read
in interface IPhase
task
- The calling Tasksession
- The context object of the current session.dst
- The buffer to store the read data.logicalBlockAddress
- The logical block address to start the read operation.length
- The number of bytes to read.Exception
- if any error occurs.public final boolean write(ITask task, Session session, ByteBuffer src, int logicalBlockAddress, long length) throws Exception
write
in interface IPhase
task
- The calling Tasksession
- The context object of the current session.src
- Write the remaining bytes to the iSCSI Target.logicalBlockAddress
- The logical block address to start the write operation.length
- The number of bytes to write.Exception
- if any error occurs.public final boolean getCapacity(Session session, TargetCapacityInformations capacityInformation) throws Exception
TargetCapacityInformations
within this session (if possible in the current
phase).getCapacity
in interface IPhase
session
- The context object of the current session.capacityInformation
- A TargetCapacityInformations
instance to store these informations.Exception
- if any error occurs.public final org.jscsi.parser.login.LoginStage getStage()
public boolean logoutConnection(Session session, short connectionID) throws Exception
logoutConnection
in interface IPhase
session
- The context object of the current session.connectionID
- The ID of the connection to close.Exception
- if any error occurs.Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.