|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.resource.connectionmanager.JBossManagedConnectionPool
public class JBossManagedConnectionPool
The JBossManagedConnectionPool mbean configures and supplies pooling of JBossConnectionEventListeners to the BaseConnectionManager2 mbean.
It may be replaced by any mbean with a readable ManagedConnectionPool attribute of type ManagedConnectionPool. Normal pooling parameters are supplied, and the criteria to distinguish ManagedConnections is set in the Criteria attribute.
| Nested Class Summary | |
|---|---|
static class |
JBossManagedConnectionPool.BasePool
The base pool implementation |
static class |
JBossManagedConnectionPool.OnePool
One pool |
static class |
JBossManagedConnectionPool.PoolByCri
Pool by connection request information |
static class |
JBossManagedConnectionPool.PoolBySubject
Pool by subject |
static class |
JBossManagedConnectionPool.PoolBySubjectAndCri
Pooling by subject and connection request information |
static class |
JBossManagedConnectionPool.SubPoolContext
|
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.resource.connectionmanager.JBossManagedConnectionPoolMBean |
|---|
OBJECT_NAME |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
JBossManagedConnectionPool()
|
|
| Method Summary | |
|---|---|
void |
flush()
The flush method puts all currently checked out connections on a list to be destroyed when returned and disposes of all current pooled connections. |
long |
getAvailableConnectionCount()
Get number of available free connections |
boolean |
getBackGroundValidation()
Get background validation |
long |
getBackGroundValidationMinutes()
Get the background validation in minutes |
int |
getBlockingTimeoutMillis()
The BlockingTimeoutMillis attribute indicates the maximum time to block while waiting for a connection before throwing an exception. |
int |
getConnectionCount()
Retrieve the connection count. |
int |
getConnectionCreatedCount()
Retrieve the connection created count. |
int |
getConnectionDestroyedCount()
Retrieve the destrooyed count. |
String |
getCriteria()
The Criteria attribute indicates if Subject (from security domain) or app supplied parameters (such as from getConnection(user, pw)) are used to distinguish connections in the pool. |
long |
getIdleTimeout()
Get the IdleTimeout value. |
long |
getIdleTimeoutMinutes()
The IdleTimeoutMinutes attribute indicates the maximum time a connection may be idle before being closed. |
long |
getInUseConnectionCount()
Get number of connections currently in use |
javax.management.ObjectName |
getManagedConnectionFactoryName()
ManagedConnectionFactoryName holds the ObjectName of the mbean that represents the ManagedConnectionFactory. |
ManagedConnectionPool |
getManagedConnectionPool()
ManagedConnectionPool is a read only attribute returning the pool set up by this mbean. |
long |
getMaxConnectionsInUseCount()
|
int |
getMaxSize()
The MaxSize attribute indicates the maximum number of connections for a pool. |
int |
getMinSize()
The MinSize attribute indicates the minimum number of connections this pool should hold. |
String |
getName()
|
boolean |
getNoTxSeparatePools()
Separate pools for transactional use |
String |
getPoolJndiName()
Get the jndi name of the pool |
boolean |
getPreFill()
Get prefill |
void |
handleNotification(javax.management.Notification notification,
Object handback)
|
void |
setBackGroundValidation(boolean backgroundValidation)
Set the background validation |
void |
setBackGroundValidationMinutes(long backgroundValidationInterval)
Set the background validation in minutes |
void |
setBlockingTimeoutMillis(int newBlockingTimeout)
Set the BlockingTimeout value. |
void |
setCriteria(String newCriteria)
Set the Criteria value. |
void |
setIdleTimeout(long newIdleTimeout)
Set the IdleTimeout value. |
void |
setIdleTimeoutMinutes(long newIdleTimeoutMinutes)
Set the IdleTimeoutMinutes value. |
void |
setManagedConnectionFactoryName(javax.management.ObjectName newManagedConnectionFactoryName)
Set the ManagedConnectionFactoryName value. |
void |
setMaxSize(int newMaxSize)
Set the MaxSize value. |
void |
setMinSize(int newMinSize)
Set the MinSize value. |
void |
setNoTxSeparatePools(boolean value)
|
void |
setPoolJndiName(String poolName)
Set the jndi name of the pool. |
void |
setPreFill(boolean prefill)
Set the prefill |
protected void |
startService()
|
protected void |
stopService()
|
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Constructor Detail |
|---|
public JBossManagedConnectionPool()
| Method Detail |
|---|
public ManagedConnectionPool getManagedConnectionPool()
JBossManagedConnectionPoolMBean
getManagedConnectionPool in interface JBossManagedConnectionPoolMBeanpublic javax.management.ObjectName getManagedConnectionFactoryName()
JBossManagedConnectionPoolMBean
getManagedConnectionFactoryName in interface JBossManagedConnectionPoolMBeanpublic void setManagedConnectionFactoryName(javax.management.ObjectName newManagedConnectionFactoryName)
JBossManagedConnectionPoolMBean
setManagedConnectionFactoryName in interface JBossManagedConnectionPoolMBeannewManagedConnectionFactoryName - The new ManagedConnectionFactoryName value.public long getAvailableConnectionCount()
JBossManagedConnectionPoolMBean
getAvailableConnectionCount in interface JBossManagedConnectionPoolMBeanpublic long getMaxConnectionsInUseCount()
getMaxConnectionsInUseCount in interface JBossManagedConnectionPoolMBeanpublic long getInUseConnectionCount()
JBossManagedConnectionPoolMBean
getInUseConnectionCount in interface JBossManagedConnectionPoolMBeanpublic int getMinSize()
JBossManagedConnectionPoolMBean
getMinSize in interface JBossManagedConnectionPoolMBeanpublic void setMinSize(int newMinSize)
JBossManagedConnectionPoolMBean
setMinSize in interface JBossManagedConnectionPoolMBeannewMinSize - The new MinSize value.public int getMaxSize()
JBossManagedConnectionPoolMBean
getMaxSize in interface JBossManagedConnectionPoolMBeanpublic void setMaxSize(int newMaxSize)
JBossManagedConnectionPoolMBean
setMaxSize in interface JBossManagedConnectionPoolMBeannewMaxSize - The new MaxSize value.public int getBlockingTimeoutMillis()
JBossManagedConnectionPoolMBean
getBlockingTimeoutMillis in interface JBossManagedConnectionPoolMBeanpublic void setBlockingTimeoutMillis(int newBlockingTimeout)
JBossManagedConnectionPoolMBean
setBlockingTimeoutMillis in interface JBossManagedConnectionPoolMBeannewBlockingTimeout - The new BlockingTimeout value.public long getIdleTimeoutMinutes()
JBossManagedConnectionPoolMBean
getIdleTimeoutMinutes in interface JBossManagedConnectionPoolMBeanpublic void setIdleTimeoutMinutes(long newIdleTimeoutMinutes)
JBossManagedConnectionPoolMBean
setIdleTimeoutMinutes in interface JBossManagedConnectionPoolMBeannewIdleTimeoutMinutes - The new IdleTimeoutMinutes value.public long getIdleTimeout()
public void setIdleTimeout(long newIdleTimeout)
newIdleTimeout - The new IdleTimeout value.public String getCriteria()
JBossManagedConnectionPoolMBean
getCriteria in interface JBossManagedConnectionPoolMBeanpublic void setCriteria(String newCriteria)
JBossManagedConnectionPoolMBean
setCriteria in interface JBossManagedConnectionPoolMBeannewCriteria - The new Criteria value.public boolean getNoTxSeparatePools()
JBossManagedConnectionPoolMBean
getNoTxSeparatePools in interface JBossManagedConnectionPoolMBeanpublic void setNoTxSeparatePools(boolean value)
setNoTxSeparatePools in interface JBossManagedConnectionPoolMBeanpublic boolean getBackGroundValidation()
JBossManagedConnectionPoolMBean
getBackGroundValidation in interface JBossManagedConnectionPoolMBeanpublic void setBackGroundValidation(boolean backgroundValidation)
JBossManagedConnectionPoolMBean
setBackGroundValidation in interface JBossManagedConnectionPoolMBeanbackgroundValidation - true or false if background validation is to be enabledpublic long getBackGroundValidationMinutes()
JBossManagedConnectionPoolMBean
getBackGroundValidationMinutes in interface JBossManagedConnectionPoolMBeanpublic void setBackGroundValidationMinutes(long backgroundValidationInterval)
JBossManagedConnectionPoolMBean
setBackGroundValidationMinutes in interface JBossManagedConnectionPoolMBeanbackgroundValidationInterval - the background interval in minutespublic boolean getPreFill()
JBossManagedConnectionPoolMBean
getPreFill in interface JBossManagedConnectionPoolMBeanpublic void setPreFill(boolean prefill)
JBossManagedConnectionPoolMBean
setPreFill in interface JBossManagedConnectionPoolMBeanprefill - true or false depending upon if prefill is being usedpublic void flush()
JBossManagedConnectionPoolMBeanflush method puts all currently checked out connections on a list to be destroyed when returned and disposes of all current pooled connections.
flush in interface JBossManagedConnectionPoolMBeanpublic int getConnectionCount()
JBossManagedConnectionPoolMBean
getConnectionCount in interface JBossManagedConnectionPoolMBeanpublic int getConnectionCreatedCount()
JBossManagedConnectionPoolMBean
getConnectionCreatedCount in interface JBossManagedConnectionPoolMBeanpublic int getConnectionDestroyedCount()
JBossManagedConnectionPoolMBean
getConnectionDestroyedCount in interface JBossManagedConnectionPoolMBeanpublic String getName()
getName in interface org.jboss.system.ServiceMBeangetName in class org.jboss.system.ServiceMBeanSupportpublic String getPoolJndiName()
JBossManagedConnectionPoolMBean
getPoolJndiName in interface JBossManagedConnectionPoolMBeanpublic void setPoolJndiName(String poolName)
JBossManagedConnectionPoolMBean
setPoolJndiName in interface JBossManagedConnectionPoolMBeanpoolName - the jndi name of the pool.
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
protected void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportException
public void handleNotification(javax.management.Notification notification,
Object handback)
handleNotification in interface javax.management.NotificationListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||