|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.pooling.api.ResourcePoolPropertyNames
public final class ResourcePoolPropertyNames
Field Summary | |
---|---|
static java.lang.String |
ALLOW_SHRINKING
The environment property name that indicates if shrinking of the resource pool is allowed. |
static java.lang.String |
EXTEND_MAXIMUM_POOL_SIZE_MODE
The environment property name for enabling the resource pool size to grow beyond the MAXIMUM_RESOURCE_POOL_SIZE . |
static java.lang.String |
EXTEND_MAXIMUM_POOL_SIZE_PERCENT
The environment property name for the percentage of growth the resource pool should be allowed to grow above the MAXIMUM_RESOURCE_POOL_SIZE . |
static java.lang.String |
LIVE_AND_UNUSED_TIME
The environment property name for the amount of time that will have to pass where a resource has not been used and therefore should be considered for removal from the pool. |
static java.lang.String |
MAXIMUM_RESOURCE_POOL_SIZE
The environment property name for the maximum number of resource instances (i.e., number of objects) that will be active at one time in the pool. |
static java.lang.String |
MINIMUM_RESOURCE_POOL_SIZE
The environment property name for the minimum number of resource instances (i.e., number of objects) that will always be active in the pool. |
static java.lang.String |
NUM_OF_CONCURRENT_USERS
The environment property name for the number of users that can share the same resource at the same time (i.e., concurrent users). |
static java.lang.String |
RESOURCE_ADAPTER_CLASS_NAME
The environment property name that defines the ResourceAdapter
class that will be instantiated to create resource object instances |
static java.lang.String |
RESOURCE_POOL_CLASS_NAME
The environment property name that defines the ResourcePool
class that will be instantiated to manage a specific resource pool. |
static java.lang.String |
SHRINK_INCREMENT
The environment property name that indicates the maximum number of resources in the pool that will be removed at one time. |
static java.lang.String |
SHRINK_PERIOD
The environment property name for the intervals between when the clean-up thread tries to shrink the pool. |
static java.lang.String |
WAIT_TIME_FOR_RESOURCE
The environment property name for how long a request for a resource will wait for one to become available. |
Constructor Summary | |
---|---|
ResourcePoolPropertyNames()
|
Method Summary | |
---|---|
static java.util.Collection |
getNames()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESOURCE_ADAPTER_CLASS_NAME
ResourceAdapter
class that will be instantiated to create resource object instances
public static final java.lang.String RESOURCE_POOL_CLASS_NAME
ResourcePool
class that will be instantiated to manage a specific resource pool.
public static final java.lang.String MINIMUM_RESOURCE_POOL_SIZE
This is an optional property and the value must be the string form of an integer. The default value is "1" .
public static final java.lang.String MAXIMUM_RESOURCE_POOL_SIZE
This is an optional property and the value must be the string form of an integer. The default value is "5" .
public static final java.lang.String NUM_OF_CONCURRENT_USERS
This is an optional property and the value must be the string form of an integer. The default value is "1" .
public static final java.lang.String SHRINK_PERIOD
This is an optional property and it corresponds to the number of milliseconds between checks. The value must be the string form of an integer and the default value is "300000" or 5 minutes.
public static final java.lang.String ALLOW_SHRINKING
SHRINK_PERIOD
This is an optional property and it corresponds to either true
or false
.
The value must be the string form and the default value is "true".
public static final java.lang.String SHRINK_INCREMENT
ALLOW_SHRINKING
SHRINK_PERIOD
This is an optional property and and the value must be the string form of an integer.
The default value is "0", which indicates no limit to the number of resources
that can be removed in order to return to the minimum
pool size.
public static final java.lang.String LIVE_AND_UNUSED_TIME
To assist in determining what the setting should be, try a multiple of
SHRINK_PERIOD
. If the resource pool is being
checked for shrinkage every 5 minutes, then every other time (i.e., 10 minutes)
the resource will be checked for being alive and unused.
This is an optional property and it corresponds to the number of milliseconds between checks. The value must be the string form of an integer and the default value is "600000" or 10 minutes.
public static final java.lang.String WAIT_TIME_FOR_RESOURCE
If the NUM_OF_CONCURRENT_USERS
cannot be increased,
nor can the MAXIMUM_RESOURCE_POOL_SIZE
be increased,
then there would be a possible need for increasing the wait time. But try
tuning the other properties first, otherwise the wait time for the user
will be increased.
This is an optional property and it corresponds to the number of milliseconds between checks. The value must be the string form of an integer and the default value is "30000" or 30 seconds.
public static final java.lang.String EXTEND_MAXIMUM_POOL_SIZE_MODE
MAXIMUM_RESOURCE_POOL_SIZE
. If the property
is set to true>
, this will allow the resource pool to grow
upto the EXTEND_MAXIMUM_POOL_SIZE
. This feature is beneficial
for server side pools so that they can continue operating without crashing during
abnormal peak times.
This is an optional property and it corresponds to either true
or false
.
The value must be the string form and the default value is "false".
public static final java.lang.String EXTEND_MAXIMUM_POOL_SIZE_PERCENT
MAXIMUM_RESOURCE_POOL_SIZE
.
This is an optional property and the value must be the string form of an double. There default value for this property is "1.000" such that the pool will grow %100 percent in size above the maximum pool size.
Constructor Detail |
---|
public ResourcePoolPropertyNames()
Method Detail |
---|
public static java.util.Collection getNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |