|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectasjava.uniobjects.UniBase
asjava.uniobjects.UniPool
UniPool
is a Class Connection Pooling. It is used for
preallocating, recycling and managing U2 connections. Each UniPool is identified
as hashtable key "userid+password+servername+accountname".
Field Summary |
---|
Fields inherited from class asjava.uniobjects.UniBase |
---|
inPacket, outPacket, uniConnection, uniEncryptionType, uniParentSession, uniStatus |
Constructor Summary | |
---|---|
protected |
UniPool(java.lang.String phostname,
int phostport,
java.lang.String puserid,
java.lang.String ppassword,
java.lang.String paccount,
java.lang.String pservice,
int psslmode,
int pmin_poolsize,
int pmax_poolsize)
Constructor for this Class. |
Method Summary | |
---|---|
protected void |
adjustMinPoolSizeConnections(int sslmode)
This function maintains Min Pool size. |
protected void |
closeAllConnections()
This function is called by UniJava Class. |
protected void |
closeIdleConnections()
This function is called by timer object. |
protected void |
closeServerConnection(UniSession us)
This function is called by UniJava Class. |
protected UniSession |
findSession(long sessionTimeout,
int sslmode)
This is a recursive function. |
protected void |
free(UniSession us)
Given UniSession Object is removed from the busy list and gets added to the available list. |
protected java.lang.String |
getAccount()
returns the account path being used for the connection |
protected int |
getMaxPoolSize()
returns the Max Pool Size for the Pool |
protected int |
getMinPoolSize()
returns the Min Pool Size for the Pool |
protected java.lang.String |
getPassword()
returns the password used to establish the connection to the host system |
protected java.lang.String |
getServer()
returns the name of the host we are connecting to. |
protected java.lang.String |
getUserid()
returns the current user name used for this connection |
Methods inherited from class asjava.uniobjects.UniBase |
---|
getEncryptionType, isCommandActive, setEncryptionType, status |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected UniPool(java.lang.String phostname, int phostport, java.lang.String puserid, java.lang.String ppassword, java.lang.String paccount, java.lang.String pservice, int psslmode, int pmin_poolsize, int pmax_poolsize) throws UniSessionException
phostname
- String representing the name of the host to connect topuserid
- String representing the server-side username used for connection purposes.ppassword
- String representing the password to be used for the connectionpaccount
- String representing which account to connect topservice
- String representing the datasource type.pmin_poolsize
- Integer representing Min Pool Size.pmax_poolsize
- Integer representing Max Pool Size.
UniSessionException
- is thrown if an error occursMethod Detail |
protected UniSession findSession(long sessionTimeout, int sslmode) throws UniSessionException
sessionTimeout
- Integer representing Session Timeout.sslmode
- Integer representing ssl mode.
UniSessionException
- is thrown if an error occursprotected void free(UniSession us) throws UniSessionException
us
- UniSession Object
UniSessionException
- is thrown if an error occursprotected void closeIdleConnections() throws UniSessionException
UniSessionException
- is thrown if an error occursprotected void closeServerConnection(UniSession us) throws UniSessionException
us
- UniSession Object
UniSessionException
- is thrown if an error occursprotected void closeAllConnections() throws UniSessionException, asjava.unirpc.UniRPCConnectionException
UniSessionException
- is thrown if an error occurs
asjava.unirpc.UniRPCConnectionException
- is thrown if an error occursprotected void adjustMinPoolSizeConnections(int sslmode) throws UniSessionException
sslmode
- Integer representing ssl mode.
UniSessionException
- is thrown if an error occursprotected java.lang.String getAccount()
protected int getMaxPoolSize()
protected int getMinPoolSize()
protected java.lang.String getPassword()
protected java.lang.String getServer()
protected java.lang.String getUserid()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |