public abstract class AbstractTaskBalancer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected LinkedBlockingQueue<Connection> |
freeConnections
This list contains all free connections of a iSCSI Session.
|
protected Session |
session
The Session.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTaskBalancer(LinkedBlockingQueue<Connection> initConnections)
Constructor to create a new
AbstractLoadBalancer instance, which distribute the work to these
connections. |
| Modifier and Type | Method and Description |
|---|---|
abstract Connection |
getConnection() |
void |
releaseConnection(Connection connection) |
protected LinkedBlockingQueue<Connection> freeConnections
protected Session session
protected AbstractTaskBalancer(LinkedBlockingQueue<Connection> initConnections)
AbstractLoadBalancer instance, which distribute the work to these
connections.initConnections - The list with all opened connections.public abstract Connection getConnection() throws org.jscsi.exception.NoSuchConnectionException
org.jscsi.exception.NoSuchConnectionExceptionpublic void releaseConnection(Connection connection) throws org.jscsi.exception.NoSuchConnectionException
org.jscsi.exception.NoSuchConnectionExceptionCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.