Class ComponentPoolMonitor
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.smallmind.quorum.pool.complex.jmx.ComponentPoolMonitor
- All Implemented Interfaces:
EventListener,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,ComponentPoolSurface,ComponentPoolEventListener,ComponentPoolMonitorMXBean
public class ComponentPoolMonitor
extends NotificationBroadcasterSupport
implements ComponentPoolMonitorMXBean, MBeanRegistration, ComponentPoolEventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongintintintintintintintintintbooleanbooleanbooleanbooleanvoidvoidpostRegister(Boolean success) voidpreRegister(MBeanServer mBeanServer, ObjectName objectName) voidvoidvoidsetAcquireWaitTimeMillis(long acquireWaitTimeMillis) voidsetCreationTimeoutMillis(long creationTimeoutMillis) voidsetExistentiallyAware(boolean existentiallyAware) voidsetMaxIdleTimeSeconds(int maxIdleTimeSeconds) voidsetMaxLeaseTimeSeconds(int leaseTimeSeconds) voidsetMaxPoolSize(int maxPoolSize) voidsetMaxProcessingTimeTimeSeconds(int maxProcessingTimeSeconds) voidsetMinPoolSize(int minPoolSize) voidsetReportLeaseTimeNanos(boolean reportLeaseTimeNanos) voidsetTestOnAcquire(boolean testOnAcquire) voidsetTestOnCreate(boolean testOnCreate) voidshutdown()voidstartup()Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Constructor Details
-
ComponentPoolMonitor
-
-
Method Details
-
preRegister
- Specified by:
preRegisterin interfaceMBeanRegistration
-
postRegister
- Specified by:
postRegisterin interfaceMBeanRegistration
-
preDeregister
public void preDeregister()- Specified by:
preDeregisterin interfaceMBeanRegistration
-
postDeregister
public void postDeregister()- Specified by:
postDeregisterin interfaceMBeanRegistration
-
reportErrorOccurred
- Specified by:
reportErrorOccurredin interfaceComponentPoolEventListener
-
reportLeaseTime
- Specified by:
reportLeaseTimein interfaceComponentPoolEventListener
-
getPoolName
- Specified by:
getPoolNamein interfaceComponentPoolSurface
-
startup
- Specified by:
startupin interfaceComponentPoolSurface- Throws:
ComponentPoolException
-
shutdown
- Specified by:
shutdownin interfaceComponentPoolSurface- Throws:
ComponentPoolException
-
isTestOnCreate
public boolean isTestOnCreate()- Specified by:
isTestOnCreatein interfaceComponentPoolSurface
-
setTestOnCreate
public void setTestOnCreate(boolean testOnCreate) - Specified by:
setTestOnCreatein interfaceComponentPoolSurface
-
isTestOnAcquire
public boolean isTestOnAcquire()- Specified by:
isTestOnAcquirein interfaceComponentPoolSurface
-
setTestOnAcquire
public void setTestOnAcquire(boolean testOnAcquire) - Specified by:
setTestOnAcquirein interfaceComponentPoolSurface
-
isReportLeaseTimeNanos
public boolean isReportLeaseTimeNanos()- Specified by:
isReportLeaseTimeNanosin interfaceComponentPoolSurface
-
setReportLeaseTimeNanos
public void setReportLeaseTimeNanos(boolean reportLeaseTimeNanos) - Specified by:
setReportLeaseTimeNanosin interfaceComponentPoolSurface
-
isExistentiallyAware
public boolean isExistentiallyAware()- Specified by:
isExistentiallyAwarein interfaceComponentPoolSurface
-
setExistentiallyAware
public void setExistentiallyAware(boolean existentiallyAware) - Specified by:
setExistentiallyAwarein interfaceComponentPoolSurface
-
getCreationTimeoutMillis
public long getCreationTimeoutMillis()- Specified by:
getCreationTimeoutMillisin interfaceComponentPoolSurface
-
setCreationTimeoutMillis
public void setCreationTimeoutMillis(long creationTimeoutMillis) - Specified by:
setCreationTimeoutMillisin interfaceComponentPoolSurface
-
getInitialPoolSize
public int getInitialPoolSize()- Specified by:
getInitialPoolSizein interfaceComponentPoolSurface
-
getMinPoolSize
public int getMinPoolSize()- Specified by:
getMinPoolSizein interfaceComponentPoolSurface
-
setMinPoolSize
public void setMinPoolSize(int minPoolSize) - Specified by:
setMinPoolSizein interfaceComponentPoolSurface
-
getMaxPoolSize
public int getMaxPoolSize()- Specified by:
getMaxPoolSizein interfaceComponentPoolSurface
-
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize) - Specified by:
setMaxPoolSizein interfaceComponentPoolSurface
-
getAcquireWaitTimeMillis
public long getAcquireWaitTimeMillis()- Specified by:
getAcquireWaitTimeMillisin interfaceComponentPoolSurface
-
setAcquireWaitTimeMillis
public void setAcquireWaitTimeMillis(long acquireWaitTimeMillis) - Specified by:
setAcquireWaitTimeMillisin interfaceComponentPoolSurface
-
getMaxLeaseTimeSeconds
public int getMaxLeaseTimeSeconds()- Specified by:
getMaxLeaseTimeSecondsin interfaceComponentPoolSurface
-
setMaxLeaseTimeSeconds
public void setMaxLeaseTimeSeconds(int leaseTimeSeconds) - Specified by:
setMaxLeaseTimeSecondsin interfaceComponentPoolSurface
-
getMaxIdleTimeSeconds
public int getMaxIdleTimeSeconds()- Specified by:
getMaxIdleTimeSecondsin interfaceComponentPoolSurface
-
setMaxIdleTimeSeconds
public void setMaxIdleTimeSeconds(int maxIdleTimeSeconds) - Specified by:
setMaxIdleTimeSecondsin interfaceComponentPoolSurface
-
getMaxProcessingTimeSeconds
public int getMaxProcessingTimeSeconds()- Specified by:
getMaxProcessingTimeSecondsin interfaceComponentPoolSurface
-
setMaxProcessingTimeTimeSeconds
public void setMaxProcessingTimeTimeSeconds(int maxProcessingTimeSeconds) - Specified by:
setMaxProcessingTimeTimeSecondsin interfaceComponentPoolSurface
-
getPoolSize
public int getPoolSize()- Specified by:
getPoolSizein interfaceComponentPoolSurface
-
getFreeSize
public int getFreeSize()- Specified by:
getFreeSizein interfaceComponentPoolSurface
-
getProcessingSize
public int getProcessingSize()- Specified by:
getProcessingSizein interfaceComponentPoolSurface
-