public class PoolType extends Object implements DynamicMBean
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MINIMUM_SIZE |
static String |
MINIMUM_POOL_SIZE |
static String |
SET_MINIMUM_POOL_SIZE |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
MBeanInfo |
getMBeanInfo()
Provides lazy instantiation of the PoolType's MBeanInfo, yet allows for
reuse.
|
int |
getMinPoolSize()
Returns the minimum pool size for this PoolType.
|
String |
getName()
Returns the name of this PoolType.
|
static PoolType |
instance(String name)
Returns a PoolType associated with the supplied name - sharing if already
existent, or creating if necessary.
|
static PoolType |
instance(String name,
int minPoolSize)
Returns a PoolType associated with the supplied name - sharing if already
existent, or creating if necessary.
|
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
String |
setMinimumPoolSize(int size)
Provides the implementation for setting the pool type minimum pool size
via JMX.
|
public static final String MINIMUM_POOL_SIZE
public static final String SET_MINIMUM_POOL_SIZE
public static final int DEFAULT_MINIMUM_SIZE
public static PoolType instance(String name)
name - The name of the PoolType to associate with.public static PoolType instance(String name, int minPoolSize) throws Exception
name - The name of the PoolType to associate with.minPoolSize - The minimum size of the pool associated with this PoolType.Exception - Conflicting minpoolsizepublic int getMinPoolSize()
public String getName()
public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic String setMinimumPoolSize(int size)
size - The new minimum pool size.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.