public class HikariPoolMonitor extends org.codehaus.griffon.runtime.monitor.AbstractMBeanRegistration implements HikariPoolMonitorMXBean
Constructor and Description |
---|
HikariPoolMonitor(Metadata metadata,
com.zaxxer.hikari.pool.HikariPool delegate,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveConnections() |
int |
getIdleConnections() |
int |
getThreadsAwaitingConnection() |
int |
getTotalConnections() |
void |
postDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
resumePool() |
void |
softEvictConnections() |
void |
suspendPool() |
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
preRegister
in class org.codehaus.griffon.runtime.monitor.AbstractMBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
postDeregister
in class org.codehaus.griffon.runtime.monitor.AbstractMBeanRegistration
public int getActiveConnections()
getActiveConnections
in interface HikariPoolMonitorMXBean
public int getIdleConnections()
getIdleConnections
in interface HikariPoolMonitorMXBean
public int getTotalConnections()
getTotalConnections
in interface HikariPoolMonitorMXBean
public int getThreadsAwaitingConnection()
getThreadsAwaitingConnection
in interface HikariPoolMonitorMXBean
public void softEvictConnections()
softEvictConnections
in interface HikariPoolMonitorMXBean
public void suspendPool()
suspendPool
in interface HikariPoolMonitorMXBean
public void resumePool()
resumePool
in interface HikariPoolMonitorMXBean