|
|||||||||||
| 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
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 |
| Field Summary |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, 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()
Default managed JBossManagedConnectionPool constructor for mbeans. |
|
| 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 |
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 |
void |
handleNotification(javax.management.Notification notification,
Object handback)
|
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)
|
protected void |
startService()
|
protected void |
stopService()
|
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, 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, 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()
getManagedConnectionPool in interface JBossManagedConnectionPoolMBeanpublic javax.management.ObjectName getManagedConnectionFactoryName()
getManagedConnectionFactoryName in interface JBossManagedConnectionPoolMBeanpublic void setManagedConnectionFactoryName(javax.management.ObjectName newManagedConnectionFactoryName)
setManagedConnectionFactoryName in interface JBossManagedConnectionPoolMBeannewManagedConnectionFactoryName - The new ManagedConnectionFactoryName value.public long getAvailableConnectionCount()
getAvailableConnectionCount in interface JBossManagedConnectionPoolMBeanpublic long getMaxConnectionsInUseCount()
getMaxConnectionsInUseCount in interface JBossManagedConnectionPoolMBeanpublic long getInUseConnectionCount()
getInUseConnectionCount in interface JBossManagedConnectionPoolMBeanpublic int getMinSize()
getMinSize in interface JBossManagedConnectionPoolMBeanpublic void setMinSize(int newMinSize)
setMinSize in interface JBossManagedConnectionPoolMBeannewMinSize - The new MinSize value.public int getMaxSize()
getMaxSize in interface JBossManagedConnectionPoolMBeanpublic void setMaxSize(int newMaxSize)
setMaxSize in interface JBossManagedConnectionPoolMBeannewMaxSize - The new MaxSize value.public int getBlockingTimeoutMillis()
getBlockingTimeoutMillis in interface JBossManagedConnectionPoolMBeanpublic void setBlockingTimeoutMillis(int newBlockingTimeout)
setBlockingTimeoutMillis in interface JBossManagedConnectionPoolMBeannewBlockingTimeout - The new BlockingTimeout value.public long getIdleTimeoutMinutes()
getIdleTimeoutMinutes in interface JBossManagedConnectionPoolMBeanpublic void setIdleTimeoutMinutes(long newIdleTimeoutMinutes)
setIdleTimeoutMinutes in interface JBossManagedConnectionPoolMBeannewIdleTimeoutMinutes - The new IdleTimeoutMinutes value.public long getIdleTimeout()
public void setIdleTimeout(long newIdleTimeout)
newIdleTimeout - The new IdleTimeout value.public String getCriteria()
getCriteria in interface JBossManagedConnectionPoolMBeanpublic void setCriteria(String newCriteria)
setCriteria in interface JBossManagedConnectionPoolMBeannewCriteria - The new Criteria value.public boolean getNoTxSeparatePools()
getNoTxSeparatePools in interface JBossManagedConnectionPoolMBeanpublic void setNoTxSeparatePools(boolean value)
setNoTxSeparatePools in interface JBossManagedConnectionPoolMBeanpublic void flush()
flush 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()
getConnectionCount in interface JBossManagedConnectionPoolMBeanpublic int getConnectionCreatedCount()
getConnectionCreatedCount in interface JBossManagedConnectionPoolMBeanpublic int getConnectionDestroyedCount()
getConnectionDestroyedCount in interface JBossManagedConnectionPoolMBeanpublic String getName()
getName in interface org.jboss.system.ServiceMBean
protected void startService()
throws Exception
Exception
protected void stopService()
throws Exception
Exception
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 | ||||||||||