public class DBPoolView extends Object implements DBPoolViewMBean
Constructor and Description |
---|
DBPoolView(String name) |
Modifier and Type | Method and Description |
---|---|
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) |
public DBPoolView(String name)
public int getNumActive()
DBPoolViewMBean
getNumActive
in interface DBPoolViewMBean
int
Number of active connectionspublic void setNumActive(int numActive)
public int getNumIdle()
DBPoolViewMBean
getNumIdle
in interface DBPoolViewMBean
int
Number of idle connectionspublic void setNumIdle(int numIdle)
public String getName()
DBPoolViewMBean
getName
in interface DBPoolViewMBean
String
data source namepublic void setName(String name)
public void updateConnectionUsage(String connectionID)
public Map getConnectionUsage()
DBPoolViewMBean
getConnectionUsage
in interface DBPoolViewMBean
String
representing connection informationpublic void reset()
DBPoolViewMBean
reset
in interface DBPoolViewMBean
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.