public final class LinkFactory extends Object
Implements a Factory which enables the Initiator to switch between multithreaded and singlethreaded modes.
| Constructor and Description |
|---|
LinkFactory(Initiator initiat)
Default Constructor to create a Linkfactory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closedSession(Session session)
Adds a dying
Session instance to the Queue. |
Connection |
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. |
Session |
getSession(Configuration initConfiguration,
String initTargetName,
InetSocketAddress inetAddress)
Method to create and return a new, empty
Session object with the configured layer of threading. |
public LinkFactory(Initiator initiat)
initiat - The calling Initiatorpublic final Session getSession(Configuration initConfiguration, String initTargetName, InetSocketAddress inetAddress)
Session object with the configured layer of threading.initConfiguration - The configuration to use within this session.initTargetName - The name of the iSCSI Target.inetAddress - The InetAddress of the leading connection of this session.public final Connection getConnection(Session session, Configuration initConfiguration, InetSocketAddress inetAddress, short initConnectionID)
Connection object with the configured layer of threading.session - Reference to the AbsSession object, which contains this connection.initConfiguration - The configuration to use within this connection.inetAddress - The InetSocketAddress to which this connection should established.initConnectionID - The ID of this connection.public final void closedSession(Session session)
Session instance to the Queue.session - The name of the session, which instance you want.Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.