org.objectweb.jonas.resource.mbean
Class JCAConnectionFactory
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.objectweb.jonas.resource.mbean.JCAConnectionFactory
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter
public class JCAConnectionFactory
- extends J2EEManagedObject
MBean class for JCA Connection Factory Management
- Author:
- Adriana Danes JSR 77 (J2EE Management Standard)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCAConnectionFactory
public JCAConnectionFactory(String objectName,
String jndiname,
String fileName,
Properties prop,
String description,
ConnectionManagerImpl cm)
- Constructor
- Parameters:
objectName
- String of object namejndiname
- String of ConnectionFactoryprop
- Properties of the ConnectionFactorydescription
- String of ConnectionFactory description
getDescription
public String getDescription()
- return the description
- Returns:
- String description
getJndiName
public String getJndiName()
- return the jndi name
- Returns:
- String jndi name
getManagedConnectionFactory
public String getManagedConnectionFactory()
- Return the ManagedConnectionFactory object name
- Returns:
- String of ManagedConnectionFactory name
getProperties
public Properties getProperties()
- return the ConnectionFactory Properties
- Returns:
- Properties ConnectionFactory properties
setManagedConnectionFactory
public void setManagedConnectionFactory(String managedConnectionFactoryObjectName)
- Set the ManagedConnectionFactory object name
- Parameters:
managedConnectionFactoryObjectName
- String to set
getJdbcConnCheckLevel
public Integer getJdbcConnCheckLevel()
- Returns:
- JDBC connection checking level
setJdbcConnCheckLevel
public void setJdbcConnCheckLevel(Integer level)
- Sets the JDBC connection checking level
- Parameters:
level
- connection level
getConnMaxAge
public Integer getConnMaxAge()
- Returns:
- Connections maximum age
setConnMaxAge
public void setConnMaxAge(Integer mn)
- Parameters:
mn
- Connections maximum age
getMaxSize
public Integer getMaxSize()
- Returns:
- max maximum size of connection pool
setMaxSize
public void setMaxSize(Integer max)
- Parameters:
max
- maximum size of connection pool
getMaxOpentime
public Integer getMaxOpentime()
- Returns:
- maximum opening time of connections
setMaxOpentime
public void setMaxOpentime(Integer mn)
- Parameters:
mn
- maximum opening time in minutes for connections
getMaxWaiters
public Integer getMaxWaiters()
- Returns:
- maximum nb of waiters allowed
setMaxWaiters
public void setMaxWaiters(Integer max)
- Parameters:
max
- maximum nb of waiters allowed
getMaxWaitTime
public Integer getMaxWaitTime()
- Returns:
- maximum time to wait for a connection, in seconds
setMaxWaitTime
public void setMaxWaitTime(Integer max)
- Parameters:
max
- maximum time to wait for a connection, in seconds
getMinSize
public Integer getMinSize()
- Returns:
- minimum size of connection pool
getInitSize
public Integer getInitSize()
- Returns:
- initial size of connection pool
setMinSize
public void setMinSize(Integer min)
- MBean method allowing to set the minimum size of connection pool
- Parameters:
min
- minimum size of connection pool
getSamplingPeriod
public Integer getSamplingPeriod()
- Returns:
- sampling period for refresching pool statistics
setSamplingPeriod
public void setSamplingPeriod(Integer i)
- Parameters:
i
- sampling period for refresching pool statistics
getJdbcTestStatement
public String getJdbcTestStatement()
- Returns:
- SQL query for JDBC connections test
setJdbcTestStatement
public void setJdbcTestStatement(String test)
- Parameters:
test
- SQL query for JDBC connections test
getConnectionFailures
public Integer getConnectionFailures()
- Returns:
- number of connection failures
getConnectionLeaks
public Integer getConnectionLeaks()
- Returns:
- number of connection leaks
getCurrentBusy
public Integer getCurrentBusy()
- Returns:
- number of busy connections
getBusyMax
public Integer getBusyMax()
- Returns:
- number of busy connections
getBusyMin
public Integer getBusyMin()
- Returns:
- number of busy connections
getCurrentInTx
public Integer getCurrentInTx()
- Returns:
- number of connections used in transactions
getCurrentOpened
public Integer getCurrentOpened()
- Returns:
- number of opened connections
getCurrentWaiters
public Integer getCurrentWaiters()
- Returns:
- current number of connection waiters
getOpenedCount
public Integer getOpenedCount()
- Returns:
- number of opened physical JDBC connections
getRejectedFull
public Integer getRejectedFull()
- Returns:
- number of open calls that were rejected because too many waiters
getRejectedOpen
public Integer getRejectedOpen()
- Returns:
- total number of open calls that were rejected
getRejectedOther
public Integer getRejectedOther()
- Returns:
- number of open calls that were rejected by an unknown reason
getRejectedTimeout
public Integer getRejectedTimeout()
- Returns:
- number of open calls that were rejected by timeout
getServedOpen
public Integer getServedOpen()
- Returns:
- number of xa connection served
getWaiterCount
public Integer getWaiterCount()
- Returns:
- total number of waiters since datasource creation.
getWaitersHigh
public Integer getWaitersHigh()
- Returns:
- Maximum number of waiters since datasource creation.
getWaitersHighRecent
public Integer getWaitersHighRecent()
- Returns:
- Maximum nb of waiters in last sampling period
getWaitingHigh
public Long getWaitingHigh()
- Returns:
- Maximum waiting time (millisec) since datasource creation.
getWaitingHighRecent
public Long getWaitingHighRecent()
- Returns:
- Maximum waiting time (millisec) in last sampling period
getWaitingTime
public Long getWaitingTime()
- Returns:
- Total waiting time (millisec) since datasource creation.
getSequenceNumber
protected long getSequenceNumber()
- Gets the sequence number for reconfiguration opeartions
- Returns:
- the sequence number for reconfiguration operations
getFileName
public String getFileName()
- Returns:
- Returns the fileName.
getPstmtMax
public Integer getPstmtMax()
- Returns:
- Returns the PrepareStatement cache max size
setPstmtMax
public void setPstmtMax(Integer size)
- Parameters:
size
- the PrepareStatement cache max size
Copyright © 2007 OW2 Consortium. All Rights Reserved.