org.smallmind.quorum.pool.connection.jmx
Interface ConnectionPoolMonitorsMBean

All Known Implementing Classes:
ConnectionPoolMonitors

public interface ConnectionPoolMonitorsMBean


Method Summary
 long getAcquireWaitTimeMillis(String poolId)
           
 long getConnectionTimeoutMillis(String poolId)
           
 int getFreeSize(String poolId)
           
 int getInitialPoolSize(String poolId)
           
 int getMaxIdleTimeSeconds(String poolId)
           
 int getMaxLeaseTimeSeconds(String poolId)
           
 int getMaxPoolSize(String poolId)
           
 int getMinPoolSize(String poolId)
           
 String getPoolName(String poolId)
           
 int getPoolSize(String poolId)
           
 int getProcessingSize(String poolId)
           
 int getUnreturnedConnectionTimeoutSeconds(String poolId)
           
 boolean isExistentiallyAware(String poolId)
           
 boolean isReportLeaseTimeNanos(String poolId)
           
 boolean isTestOnAcquire(String poolId)
           
 boolean isTestOnConnect(String poolId)
           
 void registerConnectionPool(String poolId, RemoteConnectionPoolSurface remoteSurface)
           
 void removeConnectionPool(String poolId)
           
 void setAcquireWaitTimeMillis(String poolId, long acquireWaitTimeMillis)
           
 void setConnectionTimeoutMillis(String poolId, long connectionTimeoutMillis)
           
 void setExistentiallyAware(String poolId, boolean existentiallyAware)
           
 void setMaxIdleTimeSeconds(String poolId, int maxIdleTimeSeconds)
           
 void setMaxLeaseTimeSeconds(String poolId, int maxLeaseTimeSeconds)
           
 void setMaxPoolSize(String poolId, int maxPoolSize)
           
 void setMinPoolSize(String poolId, int minPoolSize)
           
 void setReportLeaseTimeNanos(String poolId, boolean reportLeaseTimeNanos)
           
 void setTestOnAcquire(String poolId, boolean testOnAcquire)
           
 void setTestOnConnect(String poolId, boolean testOnConnect)
           
 void setUnreturnedConnectionTimeoutSeconds(String poolId, int unreturnedConnectionTimeoutSeconds)
           
 void shutdown(String poolId)
           
 void startup(String poolId)
           
 

Method Detail

registerConnectionPool

void registerConnectionPool(String poolId,
                            RemoteConnectionPoolSurface remoteSurface)
                            throws UnknownHostException,
                                   NoSuchMethodException,
                                   MalformedURLException,
                                   RemoteException,
                                   NamingException
Throws:
UnknownHostException
NoSuchMethodException
MalformedURLException
RemoteException
NamingException

removeConnectionPool

void removeConnectionPool(String poolId)
                          throws ConnectionPoolRegistrationException,
                                 MalformedURLException,
                                 NotBoundException,
                                 RemoteException
Throws:
ConnectionPoolRegistrationException
MalformedURLException
NotBoundException
RemoteException

getPoolName

String getPoolName(String poolId)
                   throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

startup

void startup(String poolId)
             throws ConnectionPoolException,
                    ConnectionPoolRegistrationException
Throws:
ConnectionPoolException
ConnectionPoolRegistrationException

shutdown

void shutdown(String poolId)
              throws ConnectionPoolException,
                     ConnectionPoolRegistrationException
Throws:
ConnectionPoolException
ConnectionPoolRegistrationException

getPoolSize

int getPoolSize(String poolId)
                throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getFreeSize

int getFreeSize(String poolId)
                throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getProcessingSize

int getProcessingSize(String poolId)
                      throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

isTestOnConnect

boolean isTestOnConnect(String poolId)
                        throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setTestOnConnect

void setTestOnConnect(String poolId,
                      boolean testOnConnect)
                      throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

isTestOnAcquire

boolean isTestOnAcquire(String poolId)
                        throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setTestOnAcquire

void setTestOnAcquire(String poolId,
                      boolean testOnAcquire)
                      throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

isReportLeaseTimeNanos

boolean isReportLeaseTimeNanos(String poolId)
                               throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setReportLeaseTimeNanos

void setReportLeaseTimeNanos(String poolId,
                             boolean reportLeaseTimeNanos)
                             throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

isExistentiallyAware

boolean isExistentiallyAware(String poolId)
                             throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setExistentiallyAware

void setExistentiallyAware(String poolId,
                           boolean existentiallyAware)
                           throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getConnectionTimeoutMillis

long getConnectionTimeoutMillis(String poolId)
                                throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setConnectionTimeoutMillis

void setConnectionTimeoutMillis(String poolId,
                                long connectionTimeoutMillis)
                                throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getInitialPoolSize

int getInitialPoolSize(String poolId)
                       throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getMinPoolSize

int getMinPoolSize(String poolId)
                   throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setMinPoolSize

void setMinPoolSize(String poolId,
                    int minPoolSize)
                    throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getMaxPoolSize

int getMaxPoolSize(String poolId)
                   throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setMaxPoolSize

void setMaxPoolSize(String poolId,
                    int maxPoolSize)
                    throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getAcquireWaitTimeMillis

long getAcquireWaitTimeMillis(String poolId)
                              throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setAcquireWaitTimeMillis

void setAcquireWaitTimeMillis(String poolId,
                              long acquireWaitTimeMillis)
                              throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getMaxLeaseTimeSeconds

int getMaxLeaseTimeSeconds(String poolId)
                           throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setMaxLeaseTimeSeconds

void setMaxLeaseTimeSeconds(String poolId,
                            int maxLeaseTimeSeconds)
                            throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getMaxIdleTimeSeconds

int getMaxIdleTimeSeconds(String poolId)
                          throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setMaxIdleTimeSeconds

void setMaxIdleTimeSeconds(String poolId,
                           int maxIdleTimeSeconds)
                           throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

getUnreturnedConnectionTimeoutSeconds

int getUnreturnedConnectionTimeoutSeconds(String poolId)
                                          throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException

setUnreturnedConnectionTimeoutSeconds

void setUnreturnedConnectionTimeoutSeconds(String poolId,
                                           int unreturnedConnectionTimeoutSeconds)
                                           throws ConnectionPoolRegistrationException
Throws:
ConnectionPoolRegistrationException


Copyright © 2011. All Rights Reserved.