RemotePool class
This class allows the retrieval of a parked sessions existing within the remote HostFront Connection Pool Manager. The Pool Manager may reside on a local or remote machine.
Methods
The following methods are associated with the RemotePool class.
DumbScreens (String)
Dumps the screen output (obtained from the available sessions between the host and HostFront) to a text file.
Prototype
public void DumpScreens ( System.String sFilePath )
Member of HostFront.Pool.RemotePool
Parameters
sFilePath: File to log to (located on the server machine). If null or empty, the screens will be dumped to the file DumpScreens.log in the HostFront.EAI installation folder.
GetConnection
Allows the retrieval of a session from the Pool Manager. Ensure that the session is released after usage.
Prototype
public virtual new HostFront.EAI.TcpLink GetConnection ( )
Member of HostFront.Pool.RemotePool
Return
Returns the TcpLink object which can be implemented accordingly.
ReleaseConnection
Releases a session back to the Pool Manager. Ensure that the session is released after usage.
Prototype
public System.Public System.Booleanean ReleaseConnection ( )
Member of HostFront.Pool.RemotePool
Return
True if successful, false otherwise.
RemotePool (System.String PoolName,System.String RemotePoolUri)
Creates an object that will communicate with the HostFront Connection Pool Manager.
Prototype
public RemotePool ( System.String poolName , System.String remotePoolUri )
Member of HostFront.Pool.RemotePool
Parameters
poolName: The Pool Manager can be configured to establish several pools. Each pool is identified by a name. The poolName parameter identifies from which pool we wish to retrieve a session.
remotePoolUri: The IP address and the listening port of the Pool Manager. It must have the following syntax - "tcp://123.456.7.89:2000".
Properties
The following properties are associated with the RemotePool class.
AvailableConnections
Retrieves the number of available or free sessions.
Prototype
public int AvailableConnections [ get]
Member of HostFront.Pool.RemotePool
Return
The number of available or free sessions.
PoolName
Retrieves the pool name for which the object is pointing to.
Prototype
public string PoolName [ get]
Member of HostFront.Pool.RemotePool
RemotePoolUri
Retrieves the Uri of the Pool Manager. The following format "tcp://123.456.7.89:2000" specifies the IP address and the listening port of the Pool Manager.
Prototype
public string RemotePoolUri [ get]
Member of HostFront.Pool.RemotePool