|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) org.jboss.system.ServiceMBeanSupport (src) 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 (src)
The base pool implementation |
static class |
JBossManagedConnectionPool.OnePool (src)
One pool |
static class |
JBossManagedConnectionPool.PoolByCri (src)
Pool by connection request information |
static class |
JBossManagedConnectionPool.PoolBySubject (src)
Pool by subject |
static class |
JBossManagedConnectionPool.PoolBySubjectAndCri (src)
Pooling by subject and connection request information |
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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. |
java.lang.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 |
ObjectName (src) |
getManagedConnectionFactoryName()
ManagedConnectionFactoryName holds the ObjectName of the mbean that represents the ManagedConnectionFactory. |
ManagedConnectionPool (src) |
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. |
java.lang.String |
getName()
Use the short class name as the default for the service name. |
boolean |
getNoTxSeparatePools()
Separate pools for transactional use |
void |
handleNotification(Notification (src) notification,
java.lang.Object handback)
Callback method from the broadcaster MBean this listener implementation is registered to. |
void |
setBlockingTimeoutMillis(int newBlockingTimeout)
Set the BlockingTimeout value. |
void |
setCriteria(java.lang.String newCriteria)
Set the Criteria value. |
void |
setIdleTimeout(long newIdleTimeout)
Set the IdleTimeout value. |
void |
setIdleTimeoutMinutes(long newIdleTimeoutMinutes)
Set the IdleTimeoutMinutes value. |
void |
setManagedConnectionFactoryName(ObjectName (src) 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()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
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 (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JBossManagedConnectionPool()
Method Detail |
public ManagedConnectionPool (src) getManagedConnectionPool()
public ObjectName (src) getManagedConnectionFactoryName()
public void setManagedConnectionFactoryName(ObjectName (src) newManagedConnectionFactoryName)
newManagedConnectionFactoryName
- The new ManagedConnectionFactoryName value.public long getAvailableConnectionCount()
public long getMaxConnectionsInUseCount()
public long getInUseConnectionCount()
public int getMinSize()
public void setMinSize(int newMinSize)
newMinSize
- The new MinSize value.public int getMaxSize()
public void setMaxSize(int newMaxSize)
newMaxSize
- The new MaxSize value.public int getBlockingTimeoutMillis()
public void setBlockingTimeoutMillis(int newBlockingTimeout)
newBlockingTimeout
- The new BlockingTimeout value.public long getIdleTimeoutMinutes()
public void setIdleTimeoutMinutes(long newIdleTimeoutMinutes)
newIdleTimeoutMinutes
- The new IdleTimeoutMinutes value.public long getIdleTimeout()
public void setIdleTimeout(long newIdleTimeout)
newIdleTimeout
- The new IdleTimeout value.public java.lang.String getCriteria()
public void setCriteria(java.lang.String newCriteria)
newCriteria
- The new Criteria value.public boolean getNoTxSeparatePools()
public void setNoTxSeparatePools(boolean value)
public 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.
public int getConnectionCount()
public int getConnectionCreatedCount()
public int getConnectionDestroyedCount()
public java.lang.String getName()
ServiceMBeanSupport (src)
getName
in interface ServiceMBean (src)
getName
in class ServiceMBeanSupport (src)
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
public void handleNotification(Notification (src) notification, java.lang.Object handback)
NotificationListener (src)
handleNotification
in interface NotificationListener (src)
notification
- the notification objecthandback
- the handback object given to the broadcaster
upon listener registration
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |