public class DriverAdmin extends AbstractManagedObject implements JdbcDriverMXBean
Constructor and Description |
---|
DriverAdmin(DriverConfig driver) |
Modifier and Type | Method and Description |
---|---|
protected void |
addObjectNameProperties(java.util.Map<java.lang.String,java.lang.String> props) |
java.lang.String |
getClassName()
Returns the driver class
|
long |
getConnectionCountTotal()
Returns the total number of connections.
|
long |
getConnectionFailCountTotal()
Returns the total number of failed connections.
|
java.util.Date |
getLastFailTime()
Returns the last connection fail time.
|
java.lang.String |
getName()
The JMX name property of the mbean.
|
java.util.Properties |
getProperties()
Returns the drivers configured properties
|
java.lang.String |
getState() |
java.lang.String |
getUrl()
Returns the URL
|
boolean |
start()
Enable the port, letting it listening to new requests.
|
boolean |
stop()
Disable the port, stopping it from listening to new requests.
|
java.lang.String |
toString() |
getObjectName, getType, registerSelf, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public DriverAdmin(DriverConfig driver)
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String getClassName()
JdbcDriverMXBean
getClassName
in interface JdbcDriverMXBean
public java.lang.String getUrl()
JdbcDriverMXBean
getUrl
in interface JdbcDriverMXBean
public java.util.Properties getProperties()
JdbcDriverMXBean
getProperties
in interface JdbcDriverMXBean
protected void addObjectNameProperties(java.util.Map<java.lang.String,java.lang.String> props) throws javax.management.MalformedObjectNameException
addObjectNameProperties
in class AbstractManagedObject
javax.management.MalformedObjectNameException
public java.lang.String getState()
getState
in interface JdbcDriverMXBean
public long getConnectionCountTotal()
JdbcDriverMXBean
getConnectionCountTotal
in interface JdbcDriverMXBean
public long getConnectionFailCountTotal()
JdbcDriverMXBean
getConnectionFailCountTotal
in interface JdbcDriverMXBean
public java.util.Date getLastFailTime()
JdbcDriverMXBean
getLastFailTime
in interface JdbcDriverMXBean
public boolean start()
start
in interface JdbcDriverMXBean
public boolean stop()
stop
in interface JdbcDriverMXBean
public java.lang.String toString()
toString
in class AbstractManagedObject