public class PoolingProxyManager extends ProxyManager implements Serializable
ProxyManager
is a singleton factory class that provides clients with
Proxy instances. Proxies represent connections to AR System servers and
provide access to their server via AR System API. Proxies are
pooled by server.
Each server's ProxyPool is limited to
maxProxyPerServer
, which specifies the maximum number of
proxy connections per server that the program can interact with.
idleConnectionsPerServer
specifies the number of
idle connections per server that are not subject to the
connectionTimeout
limit. These connections can be idle
indefinitely.
-- If this variable is set to 0, then the connection pool will be closed when all connections are closed.
connectionTimeout
and timeUnit
specify the amount of
time in ARTimeUnits that:
-- connections that exceed idleConnectionsPerServer
can be idle before being terminated. This time limit ensures that active pools regularly
clean up their excess idle connections.
ProxyManager.PoolInfo
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ApiProxyI |
getProxy(ApiUserContextI context)
Internal use only
|
int |
hashCode() |
void |
releaseProxy(ApiProxyI proxy,
ApiUserContextI context)
Internal use only
|
String |
toString() |
adjustConnectionPoolVariables, createProxy, getARServerContext, getConnectionLifespan, getPoolInformation, getProxyManager, getServerContextMap, isUseConnectionPooling, setConnectionLifespan, setConnectionLimits, setUseConnectionPooling, setWebSocket
addCMTProxyInCMTPool, adjustProxyPoolVariables, checkCleanUpTimer, clear, deRecodeProxy, deRecodeProxy, deRegisterARServerUser, getConnectionLifespanMilliSec, getConnectionTimeoutMilliSec, getIdleConnectionsPerServer, getKeyForServer, getMaxConnectedServerCMTAllowed, getMaxProxiesPerServer, getProxy, getProxy, getServerCmtTimeout, registerARServerUserCheck, releaseProxy, releaseProxy, removeCMTProxyFromCMTPool, setGenericUserSessionInfo, setMaxConnectedServerCMTAllowed, setServerCmtTimeout
public ApiProxyI getProxy(ApiUserContextI context) throws ARException
getProxy
in interface ApiProxyManagerI
getProxy
in class ApiProxyManager
ARException
public void releaseProxy(ApiProxyI proxy, ApiUserContextI context)
releaseProxy
in interface ApiProxyManagerI
releaseProxy
in class ApiProxyManager
? Copyright 2013 BMC Software, Inc.