beautypg.com

Done, Createsessionpool – HP NonStop G-Series User Manual

Page 294

background image

stopSessionPool

removeSessionPool

getSessionPool

done

done()

Usage Done with this session manager. Stops all session pools and terminates all active
connections immediately.

createSessionPool

int createSessionPool(String addrs[], String saddrs[],
int minCons, int maxCons, UserInfo usr, String id)

addrs

A list of primary server addresses.

saddrs

A list of secondary server addresses for failover.

minCons

The minimum number of connections to start with.

maxCons

The maximum number of connections in this pool.

usr

The TUXEDO authentication information, or null.

id

Reserved for future use. Must be null.

Returns The number of successful connections.

Usage Create a session pool with multiple restartable connections. The caller provides a unique
ID to identify the session pool. If a connection in the session pool is terminated unexpectedly, a
new connection will be established to keep the session pool alive. A session pool provides
load-balancing among connections and failover capability by letting the user specify a primary
server address list and a secondary server address list. The id must be null for this release.