Class ConnectorConnPoolProbeProvider
- java.lang.Object
-
- com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
-
- com.sun.enterprise.resource.pool.monitor.ConnectorConnPoolProbeProvider
-
public class ConnectorConnPoolProbeProvider extends ConnectionPoolProbeProvider
Probe provider interface for Connector connection pool related events to provide information related to the various objects on jca pool monitoring.- Author:
- Shalini M
-
-
Constructor Summary
Constructors Constructor Description ConnectorConnPoolProbeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectionAcquiredEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection is acquired by application for the given jca connection poolpoolName
void
connectionCreatedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a new connection is created for the given jca connection poolpoolName
void
connectionDestroyedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection is destroyed for the given jca connection poolpoolName
void
connectionMatchedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection under test matches the current request for the given connector connection poolpoolName
void
connectionNotMatchedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection under test does not match the current request for the given connector connection poolpoolName
void
connectionReleasedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection is released for the given jca connection poolpoolName
void
connectionRequestDequeuedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the wait queue length has decreased for the given connector connection poolpoolName
void
connectionRequestQueuedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the wait queue length has increased for the given connector connection poolpoolName
void
connectionRequestServedEvent(String poolName, String appName, String moduleName, long timeTakenInMillis)
Emits probe event/notification that a connection request is served in the timetimeTakenInMillis
for the given jca connection poolpoolName
void
connectionsFreedEvent(String poolName, String appName, String moduleName, int count)
Emits probe event/notification that the given jca connection poolpoolName
has got a increment connections free event.void
connectionTimedOutEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a jca connection pool with the given namepoolName
has got a connection timed out event.void
connectionUsedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given jca connection poolpoolName
has got a increment connections used event.void
connectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)
Emits probe event/notification that the given jca connection poolpoolName
has got a connection validation failed event.void
decrementConnectionUsedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given jca connection poolpoolName
has got a decrement connections used event.void
decrementNumConnFreeEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given jca connection poolpoolName
has got a decrement free connections size event.void
incrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)
Emits probe event/notification that the given jca connection poolpoolName
has got a decrement free connections size event.void
potentialConnLeakEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the pool with the given namepoolName
is having a potentialConnLeak event.void
toString(String poolName, String appName, String moduleName, StringBuilder stackTrace)
-
-
-
Method Detail
-
connectionValidationFailedEvent
public void connectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)
Emits probe event/notification that the given jca connection poolpoolName
has got a connection validation failed event.- Overrides:
connectionValidationFailedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
- for which connection validation has failedincrement
- number of times the validation failedappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionTimedOutEvent
public void connectionTimedOutEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a jca connection pool with the given namepoolName
has got a connection timed out event.- Overrides:
connectionTimedOutEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
- that has got a connection timed-out eventappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
potentialConnLeakEvent
public void potentialConnLeakEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the pool with the given namepoolName
is having a potentialConnLeak event.- Overrides:
potentialConnLeakEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
decrementNumConnFreeEvent
public void decrementNumConnFreeEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given jca connection poolpoolName
has got a decrement free connections size event.- Overrides:
decrementNumConnFreeEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
- for which decrement numConnFree is gotappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
incrementNumConnFreeEvent
public void incrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)
Emits probe event/notification that the given jca connection poolpoolName
has got a decrement free connections size event.- Overrides:
incrementNumConnFreeEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
- for which decrement numConnFree is gotbeingDestroyed
- if the connection is destroyed due to errorsteadyPoolSize
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
decrementConnectionUsedEvent
public void decrementConnectionUsedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given jca connection poolpoolName
has got a decrement connections used event.- Overrides:
decrementConnectionUsedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
- for which decrement numConnUsed is gotappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionUsedEvent
public void connectionUsedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given jca connection poolpoolName
has got a increment connections used event.- Overrides:
connectionUsedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
- for which increment numConnUsed is gotappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionsFreedEvent
public void connectionsFreedEvent(String poolName, String appName, String moduleName, int count)
Emits probe event/notification that the given jca connection poolpoolName
has got a increment connections free event.- Overrides:
connectionsFreedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
- for which increment numConnFree is gotcount
- number of connections freed to poolappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionRequestServedEvent
public void connectionRequestServedEvent(String poolName, String appName, String moduleName, long timeTakenInMillis)
Emits probe event/notification that a connection request is served in the timetimeTakenInMillis
for the given jca connection poolpoolName
- Overrides:
connectionRequestServedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-timeTakenInMillis
- time taken to serve a connectionappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionDestroyedEvent
public void connectionDestroyedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection is destroyed for the given jca connection poolpoolName
- Overrides:
connectionDestroyedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionAcquiredEvent
public void connectionAcquiredEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection is acquired by application for the given jca connection poolpoolName
- Overrides:
connectionAcquiredEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionReleasedEvent
public void connectionReleasedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection is released for the given jca connection poolpoolName
- Overrides:
connectionReleasedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionCreatedEvent
public void connectionCreatedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a new connection is created for the given jca connection poolpoolName
- Overrides:
connectionCreatedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
toString
public void toString(String poolName, String appName, String moduleName, StringBuilder stackTrace)
- Overrides:
toString
in classConnectionPoolProbeProvider
-
connectionMatchedEvent
public void connectionMatchedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection under test matches the current request for the given connector connection poolpoolName
- Overrides:
connectionMatchedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionNotMatchedEvent
public void connectionNotMatchedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection under test does not match the current request for the given connector connection poolpoolName
- Overrides:
connectionNotMatchedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionRequestQueuedEvent
public void connectionRequestQueuedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the wait queue length has increased for the given connector connection poolpoolName
- Overrides:
connectionRequestQueuedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
connectionRequestDequeuedEvent
public void connectionRequestDequeuedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the wait queue length has decreased for the given connector connection poolpoolName
- Overrides:
connectionRequestDequeuedEvent
in classConnectionPoolProbeProvider
- Parameters:
poolName
-appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is defined
-
-