public class DefaultConnectionPoolMonitor extends Object implements ConnectionPoolMonitor
Modifier and Type | Class and Description |
---|---|
protected class |
DefaultConnectionPoolMonitor.StackHandler |
Modifier and Type | Field and Description |
---|---|
protected org.apache.geronimo.connector.outbound.AbstractConnectionManager |
cm |
protected String |
name |
protected com.codahale.metrics.MetricRegistry |
registry |
protected ObjectInstance |
self |
NAME
Modifier | Constructor and Description |
---|---|
protected |
DefaultConnectionPoolMonitor(String mame,
org.apache.geronimo.connector.outbound.AbstractConnectionManager cm) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.geronimo.connector.outbound.AbstractConnectionManager |
enhanceConnectionManager(org.apache.geronimo.connector.outbound.AbstractConnectionManager cm) |
protected org.apache.geronimo.connector.outbound.AbstractConnectionManager.Interceptors |
enhanceInterceptors(org.apache.geronimo.connector.outbound.AbstractConnectionManager.Interceptors interceptors) |
protected org.apache.geronimo.connector.outbound.ConnectionInterceptor |
enhanceStack(org.apache.geronimo.connector.outbound.ConnectionInterceptor stack) |
protected static <T> T |
fetch(Field field,
Object object) |
protected static Field |
field(Class<?> clazz,
String name) |
int |
getBlockingTimeoutMilliseconds() |
int |
getConnectionCount() |
int |
getIdleConnectionCount() |
int |
getIdleTimeoutMinutes() |
int |
getPartitionCount() |
int |
getPartitionMaxSize() |
int |
getPartitionMinSize() |
void |
handleNewConnectionManager(org.apache.geronimo.connector.outbound.AbstractConnectionManager cm) |
void |
install() |
protected Mapper.Identification |
mapperId(javax.resource.spi.ManagedConnection connection) |
protected static void |
save(Field field,
Object object,
Object value) |
void |
setBlockingTimeoutMilliseconds(int timeoutMilliseconds) |
void |
setIdleTimeoutMinutes(int idleTimeoutMinutes) |
void |
setPartitionMaxSize(int maxSize) |
void |
setPartitionMinSize(int minSize) |
void |
uninstall() |
protected final com.codahale.metrics.MetricRegistry registry
protected org.apache.geronimo.connector.outbound.AbstractConnectionManager cm
protected ObjectInstance self
protected DefaultConnectionPoolMonitor(String mame, org.apache.geronimo.connector.outbound.AbstractConnectionManager cm)
protected org.apache.geronimo.connector.outbound.AbstractConnectionManager enhanceConnectionManager(org.apache.geronimo.connector.outbound.AbstractConnectionManager cm)
protected org.apache.geronimo.connector.outbound.AbstractConnectionManager.Interceptors enhanceInterceptors(org.apache.geronimo.connector.outbound.AbstractConnectionManager.Interceptors interceptors)
protected org.apache.geronimo.connector.outbound.ConnectionInterceptor enhanceStack(org.apache.geronimo.connector.outbound.ConnectionInterceptor stack)
protected Mapper.Identification mapperId(javax.resource.spi.ManagedConnection connection)
public int getConnectionCount()
getConnectionCount
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public int getIdleConnectionCount()
getIdleConnectionCount
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public int getBlockingTimeoutMilliseconds()
getBlockingTimeoutMilliseconds
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public int getIdleTimeoutMinutes()
getIdleTimeoutMinutes
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public int getPartitionCount()
getPartitionCount
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public int getPartitionMaxSize()
getPartitionMaxSize
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public void setPartitionMaxSize(int maxSize) throws InterruptedException
setPartitionMaxSize
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
InterruptedException
public int getPartitionMinSize()
getPartitionMinSize
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public void setPartitionMinSize(int minSize)
setPartitionMinSize
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public void setBlockingTimeoutMilliseconds(int timeoutMilliseconds)
setBlockingTimeoutMilliseconds
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public void setIdleTimeoutMinutes(int idleTimeoutMinutes)
setIdleTimeoutMinutes
in interface org.apache.geronimo.connector.outbound.PoolingAttributes
public void handleNewConnectionManager(org.apache.geronimo.connector.outbound.AbstractConnectionManager cm)
Copyright © 2015 Nuxeo SA. All rights reserved.