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 DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
Copyright © 2016 SAPERION AG. All rights reserved.