Package | Description |
---|---|
org.jscsi.initiator |
This package contains all the core classes to provide an easy and usable iSCSI (RFC 3720) initiator.
|
org.jscsi.initiator.connection |
This package contains all the states of a connection and all phases of the iSCSI (RFC 3720) implementation.
|
org.jscsi.initiator.connection.state |
This package contains all states in which an iscsi process can come related to the RFC 3720.
|
org.jscsi.initiator.taskbalancer |
This package contains all the load balancing algorithms to distribute tasks over all opened connections in a session
of the iSCSI (RFC 3720) implementation.
|
Modifier and Type | Method and Description |
---|---|
Connection |
LinkFactory.getConnection(Session session,
Configuration initConfiguration,
InetSocketAddress inetAddress,
short initConnectionID)
Method to create and return a new, empty
Connection object with the configured layer of threading. |
Modifier and Type | Field and Description |
---|---|
protected LinkedBlockingQueue<Connection> |
Session.connections
A List object with all open connections.
|
Modifier and Type | Method and Description |
---|---|
Connection |
Session.getNextFreeConnection()
Returns the next free
Connection object of this Session object. |
Modifier and Type | Method and Description |
---|---|
void |
Session.addOutstandingTask(Connection connection,
ITask task)
Adds a Task to the outstandingTasks Hashmap.
|
void |
Session.releaseUsedConnection(Connection connection)
Adds a Task to the outstandingTasks Hashmap.
|
Constructor and Description |
---|
SenderWorker(Connection initConnection,
InetSocketAddress inetAddress)
Creates a new, empty
SenderWorker instance. |
Constructor and Description |
---|
CapacityRequestState(Connection initConnection,
TargetCapacityInformations initCapacityInformation,
org.jscsi.parser.scsi.SCSICommandParser.TaskAttributes initTaskAttributes)
Constructor to create a new, empty
CapacityRequestState instance. |
CapacityResponseState(Connection initConnection,
TargetCapacityInformations initCapacityInformation)
Constructor to create a new, empty
CapacityResponseState instance. |
GetConnectionsRequestState(Connection initConnection)
Constructor to create a
GetConnectionsRequestState instance, which uses the given connection for
transmission. |
LoginRequestState(Connection initConnection,
org.jscsi.parser.login.LoginStage initNextStage)
Constructor to create a
LoginRequestState instance, which uses the given connection for
transmission. |
LoginResponseState(Connection initConnection,
org.jscsi.parser.login.LoginStage initNextStage)
Constructor to create a
LoginResponseState instance, which uses the given connection for
transmission. |
LogoutRequestState(Connection initConnection,
org.jscsi.parser.logout.LogoutRequestParser.LogoutReasonCode initReasonCode)
Constructor to create a
LogoutRequestState instance, which uses the given connection for
transmission. |
LogoutResponseState(Connection initConnection)
Constructor to create a
LogoutResponseState instance, which uses the given connection for
transmission. |
ReadRequestState(Connection initConnection,
ByteBuffer initBuffer,
org.jscsi.parser.scsi.SCSICommandParser.TaskAttributes initTaskAttributes,
int initExpectedDataTransferLength,
int initLogicalBlockAddress,
short initTransferLength)
Constructor to create a
ReadRequestState instance, which creates a request to the iSCSI Target. |
ReadResponseState(Connection initConnection,
ByteBuffer initBuffer,
int initBufferOffset,
int initExpectedDataSequenceNumber)
Constructor to create a new, empty
ReadResponseState . |
SNACKRequestState(Connection initConnection,
IState initPrevState,
int initTargetTransferTag)
Constructor to create a new, empty
SNACKRequestState . |
WriteFirstBurstState(Connection initConnection,
org.jscsi.parser.datasegment.IDataSegmentIterator initIterator,
int initTargetTransferTag,
int initDataSequenceNumber,
int initBufferOffset)
Constructor to create a
WriteFirstBurstState instance, which sends the first data sequence. |
WriteRequestState(Connection initConnection,
ByteBuffer initBuffer,
int initBufferPosition,
org.jscsi.parser.scsi.SCSICommandParser.TaskAttributes initTaskAttributes,
int initExpectedDataTransferLength,
int initLogicalBlockAddress,
short initTransferLength)
Constructor to create a
WriteRequestState instance, which creates a request to the iSCSI Target. |
WriteSecondBurstState(Connection initConnection,
org.jscsi.parser.datasegment.IDataSegmentIterator initIterator,
int initTargetTransferTag,
int initDesiredDataTransferLength,
int initDataSequenceNumber,
int initBufferOffset)
Constructor to create a
WriteSecondBurstState instance, which sends the second and all following
data sequences. |
WriteSecondResponseState(Connection initConnection,
org.jscsi.parser.datasegment.IDataSegmentIterator initIterator,
int initDataSequenceNumber,
int initBufferOffset)
Constructor to create a
WriteSecondResponseState instance, which handles the response of the iSCSI
Target. |
Modifier and Type | Field and Description |
---|---|
protected LinkedBlockingQueue<Connection> |
AbstractTaskBalancer.freeConnections
This list contains all free connections of a iSCSI Session.
|
Modifier and Type | Method and Description |
---|---|
Connection |
SimpleTaskBalancer.getConnection() |
Connection |
ITaskBalancer.getConnection()
Deprecated.
Returns the next connection, which should used for the next task.
|
abstract Connection |
AbstractTaskBalancer.getConnection() |
Modifier and Type | Method and Description |
---|---|
void |
ITaskBalancer.releaseConnection(Connection connection)
Deprecated.
Releases a used connection, so that it can be used by another task.
|
void |
AbstractTaskBalancer.releaseConnection(Connection connection) |
Constructor and Description |
---|
AbstractTaskBalancer(LinkedBlockingQueue<Connection> initConnections)
Constructor to create a new
AbstractLoadBalancer instance, which distribute the work to these
connections. |
SimpleTaskBalancer(LinkedBlockingQueue<Connection> initConnections)
Constructor to create a
SimpleLoadBalancer instance. |
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.