public class ConnectionPoolPerformance extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
ConnectionPoolPerformance(String name,
int currentSize,
int allocatedSize,
int immediateAllocationCount,
int deferredAllocationCount,
int failedAllocationCount,
long averageAllocationTime,
int connectionPurgeAttempts,
int connectionPurgeCount)
Constructs a ConnectionPoolPerformance.
|
Modifier and Type | Method and Description |
---|---|
int |
getAllocatedSize()
Gets the number of allocated LibraryConnections in the ConnectionPool.
|
long |
getAverageAllocationTime()
Gets the average elapsed time for a connection allocation request,
in milliseconds.
|
int |
getConnectionPurgeAttempts()
Gets the number of times one of the LibraryConnections performed
a statement purge attempt as part of being allocated.
|
int |
getConnectionStatementPurgeCount()
Gets the number of statements purged by LibraryConnections during
purges that occur as part of being allocated.
|
int |
getCurrentSize()
Gets the total number of LibraryConnections in the ConnectionPool.
|
int |
getDeferredAllocationCount()
Gets the number of connection allocation requests that were serviced
after waiting for an existing LibraryConnection to become free,
either by allocating an existing LibraryConnection (if possible)
or by creating a new LibraryConnection.
|
int |
getFailedAllocationCount()
Gets the number of connection allocation requests that failed (throwing
an exception) becuase no existing LibraryConnection became available
within the period specified by the ConnectionPool's maximum size
timeout parameter and no new LibraryConnection could be created
because the ConnectionPool size had reached its absolute maximum.
|
int |
getImmediateAllocationCount()
Gets the number of connection allocation requests that were serviced
immediately, either by allocating an existing LibraryConnection (if
possible) or by creating a new LibraryConnection.
|
String |
getName()
Gets the name of the connection pool.
|
String |
toString()
Gets a string representation of this ConnectionPoolPerformance.
|
protected ConnectionPoolPerformance(String name, int currentSize, int allocatedSize, int immediateAllocationCount, int deferredAllocationCount, int failedAllocationCount, long averageAllocationTime, int connectionPurgeAttempts, int connectionPurgeCount) throws IfsException
name
- the name of the connection poolcurrentSize
- the current sizeallocatedSize
- the allocated sizeimmediateAllocationCount
- the immediate allocation countdeferredAllocationCount
- the deferred allocation countfailedAllocationCount
- the failed allocation countaverageAllocationTime
- the average allocation timeconnectionPurgeAttempts
- the number of connection purgesconnectionPurgeCount
- the number of statements purgedIfsException
- if the operation failspublic String getName()
public int getCurrentSize()
public int getAllocatedSize()
public int getImmediateAllocationCount()
public int getDeferredAllocationCount()
public int getFailedAllocationCount()
public long getAverageAllocationTime()
Allocation requests that failed (throwing an exception) are not included.
High allocation times may indicate that this ConnectionPool is too small, causing excessive contention for LibraryConnections.
public int getConnectionPurgeAttempts()
public int getConnectionStatementPurgeCount()
Copyright © 2023. All rights reserved.