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 Constructor Description ComponentPoolMonitor(ComponentPool<?> componentPool)
-
Method Summary
-
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
-
-
-
Constructor Detail
-
ComponentPoolMonitor
public ComponentPoolMonitor(ComponentPool<?> componentPool)
-
-
Method Detail
-
preRegister
public ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName)
- Specified by:
preRegisterin interfaceMBeanRegistration
-
postRegister
public void postRegister(Boolean success)
- Specified by:
postRegisterin interfaceMBeanRegistration
-
preDeregister
public void preDeregister()
- Specified by:
preDeregisterin interfaceMBeanRegistration
-
postDeregister
public void postDeregister()
- Specified by:
postDeregisterin interfaceMBeanRegistration
-
reportErrorOccurred
public void reportErrorOccurred(ErrorReportingComponentPoolEvent<?> event)
- Specified by:
reportErrorOccurredin interfaceComponentPoolEventListener
-
reportLeaseTime
public void reportLeaseTime(LeaseTimeReportingComponentPoolEvent<?> event)
- Specified by:
reportLeaseTimein interfaceComponentPoolEventListener
-
getPoolName
public String getPoolName()
- Specified by:
getPoolNamein interfaceComponentPoolSurface
-
startup
public void startup() throws ComponentPoolException- Specified by:
startupin interfaceComponentPoolSurface- Throws:
ComponentPoolException
-
shutdown
public void shutdown() throws ComponentPoolException- 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
-
getUnReturnedElementTimeoutSeconds
public int getUnReturnedElementTimeoutSeconds()
- Specified by:
getUnReturnedElementTimeoutSecondsin interfaceComponentPoolSurface
-
setUnReturnedElementTimeoutSeconds
public void setUnReturnedElementTimeoutSeconds(int unReturnedElementTimeoutSeconds)
- Specified by:
setUnReturnedElementTimeoutSecondsin 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
-
-