|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.ProxyManager.PoolInfo
public static class ProxyManager.PoolInfo
Constructor Summary | |
---|---|
ProxyManager.PoolInfo(int maxProxyPerServer,
int idleConnectionsPerServer,
long connectionTimeout,
ARTimeUnit unit)
public construction to be used as parameter in adjustConnectionPoolVariables . |
Method Summary | |
---|---|
int |
getIdleConnectionsPerServer()
|
long |
getPoolConnectionLifespan()
get connectionLifespan for current PoolInfo's unit |
String |
getPoolConnectionLifespanElapsedTimeFormated()
|
long |
getPoolConnectionTimeout()
get connectionTimeout time in in current PoolInfo's unit |
String |
getPoolConnectionTimeoutElapsedTimeFormated()
|
long |
getPoolEstablish()
get the system time this pool is established |
String |
getPoolEstablishTimeFormated()
get establish time in format of "MMM dd yyyy HH:mm:ss" |
int |
getPoolFree()
|
int |
getPoolInUse()
|
int |
getPoolLargestReachedPoolSize()
|
long |
getPoolLastUsed()
|
String |
getPoolLastUsedTimeFormated()
get last used time in format of "MMM dd yyyy HH:mm:ss" |
int |
getPoolMaxProxyPerServer()
|
int |
getPoolNotCreated()
|
String |
getPoolServerName()
|
ARTimeUnit |
getPoolUnit()
|
void |
setIdleConnectionsPerServer(int idleConnectionsPerServer)
|
void |
setPoolConnectionLifespan(long newConnectionLifespan)
set the connectionLifespan in current PoolInfo's unit |
void |
setPoolConnectionTimeout(long newConnectionTimeout)
set the connectionTimeout in current PoolInfo's unit |
void |
setPoolMaxProxyPerServer(int mMaxProxyPerServer)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProxyManager.PoolInfo(int maxProxyPerServer, int idleConnectionsPerServer, long connectionTimeout, ARTimeUnit unit)
adjustConnectionPoolVariables
.
maxProxyPerServer
specifies the maximum number of
proxy connections per server that the program can interact with.
idleConnectionsPerServer
specifies the maximum number of
idle connections per server that are not subject to the
connectionTimeout
limit. These connections can be idle
indefinitely.
-- connections that exceed idleConnectionsPerServer
can be idle before being terminated. This timeout triggers active pools
to clean up their excess idle connections.
-- If the value of idleConnectionsPerServer
is set to 0, then the connection pool will be closed
when all connections are closed.
-- Whether the connectionLifespan or connectionTimeout setting is met first determines the number of current idle connections.
connectionTimeout
and unit
specify the amount of
time in ARTimeUnits.
This object can be used in adjustConnectionPoolVariables
to overwrite the existing values of the variables. It can be called
before or after a connection pool is established.
The size of an existing connection pool is adjusted according to the new settings.
maxProxyPerServer
- Maximum number of proxy connections that a connection pool can
contain for each server.idleConnectionsPerServer
- Number of idle connections per server that are not subject to the
connectionTimeout
limit. These connections can be
idle indefinitely.connectionTimeout
- Number of unit
. Connections that exceed idleConnectionsPerServer
can be idle before being terminated. This time limit ensures that active pools
regularly clean up their excess idle connections.unit
- ARTimeUnit
for connectionTimeout
.
If the unit is null, connectionTimeout is considered in MILLISECONDS.Method Detail |
---|
public void setPoolMaxProxyPerServer(int mMaxProxyPerServer)
public void setIdleConnectionsPerServer(int idleConnectionsPerServer)
public long getPoolConnectionTimeout()
public void setPoolConnectionTimeout(long newConnectionTimeout)
newConnectionTimeout
- public long getPoolConnectionLifespan()
public void setPoolConnectionLifespan(long newConnectionLifespan)
newConnectionLifespan
- public String getPoolServerName()
public int getPoolInUse()
public int getPoolFree()
public int getPoolNotCreated()
public long getPoolLastUsed()
public String getPoolLastUsedTimeFormated()
public String getPoolConnectionTimeoutElapsedTimeFormated()
public String getPoolEstablishTimeFormated()
public String getPoolConnectionLifespanElapsedTimeFormated()
public int getPoolMaxProxyPerServer()
public int getIdleConnectionsPerServer()
public long getPoolEstablish()
public int getPoolLargestReachedPoolSize()
public ARTimeUnit getPoolUnit()
public String toString()
toString
in class Object
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |