|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.commons.datasource.DBPoolView
public class DBPoolView
Data source connection pool stats collector implementation
| Constructor Summary | |
|---|---|
DBPoolView(String name)
|
|
| Method Summary | |
|---|---|
Map |
getConnectionUsage()
Connection information as a string |
String |
getName()
Data source name |
int |
getNumActive()
Number of active connections |
int |
getNumIdle()
Number of idle connections |
void |
reset()
reset statistics |
void |
setName(String name)
|
void |
setNumActive(int numActive)
|
void |
setNumIdle(int numIdle)
|
void |
updateConnectionUsage(String connectionID)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBPoolView(String name)
| Method Detail |
|---|
public int getNumActive()
DBPoolViewMBean
getNumActive in interface DBPoolViewMBeanint Number of active connectionspublic void setNumActive(int numActive)
public int getNumIdle()
DBPoolViewMBean
getNumIdle in interface DBPoolViewMBeanint Number of idle connectionspublic void setNumIdle(int numIdle)
public String getName()
DBPoolViewMBean
getName in interface DBPoolViewMBeanString data source namepublic void setName(String name)
public void updateConnectionUsage(String connectionID)
public Map getConnectionUsage()
DBPoolViewMBean
getConnectionUsage in interface DBPoolViewMBeanString representing connection informationpublic void reset()
DBPoolViewMBean
reset in interface DBPoolViewMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||