public class ObjectPoolMBean extends Object implements DynamicMBean
ManagedGenericKeyedObjectPool.| Constructor and Description |
|---|
ObjectPoolMBean(ManagedGenericKeyedObjectPool pool)
Creates a new ObjectPoolMBean for the specified pool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clear(String name,
String password,
String system,
Integer type) |
void |
clearOldest() |
void |
evict() |
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
int |
getMaxActive() |
int |
getMaxIdle() |
int |
getMaxTotal() |
long |
getMaxWait() |
MBeanInfo |
getMBeanInfo() |
long |
getMinEvictableIdleTime() |
int |
getMinIdle() |
int |
getNumActive() |
int |
getNumIdle() |
String |
getSessionsForUser(String name,
String password,
String system,
Integer type)
Gets idle and active session counts for specific user.
|
long |
getTimeBetweenEvictionRuns() |
String |
getWhenExhaustedAction() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
public ObjectPoolMBean(ManagedGenericKeyedObjectPool pool)
pool - the pool to managepublic int getNumActive()
public int getNumIdle()
public int getMaxActive()
public int getMaxIdle()
public int getMinIdle()
public int getMaxTotal()
public long getMaxWait()
public long getMinEvictableIdleTime()
public long getTimeBetweenEvictionRuns()
public void evict()
throws Exception
Exception - when there is a problem evicting idle objects.GenericKeyedObjectPool.evict()public void clear()
GenericKeyedObjectPool.clear()public void clear(String name, String password, String system, Integer type)
name - usernamepassword - passwordsystem - systemtype - typeGenericKeyedObjectPool.clear(Object)public void clearOldest()
GenericKeyedObjectPool.clearOldest()public String getSessionsForUser(String name, String password, String system, Integer type)
name - usernamepassword - passwordsystem - systemtype - typepublic String getWhenExhaustedAction()
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.