public class TConnectionPoolStatistics
extends java.lang.Object
Constructor and Description |
---|
TConnectionPoolStatistics()
Constructor to construct a TConnectionPoolStatistics with default settings.
|
Modifier and Type | Method and Description |
---|---|
int |
getDeleteConnections()
Gets the number of connections deleted from the pool.
|
TConnectionPoolDescriptor |
getDescriptor()
Gets the pool descriptor with the properties of the pool and its connections.
|
int |
getFailedReconnects()
Gets the number of failed reconnect attempts.
|
int |
getGetConnections()
Gets the number of getConnection() method invocations.
|
int |
getMaxUsedConnections()
Gets the maximum number of connections in the pool.
|
java.lang.String |
getName()
Gets the pool name.
|
int |
getReconnects()
Gets the number of reconnect attempts.
|
int |
getWaits()
Gets the number of times a client had to wait for a getConnection()
|
protected void |
setDeleteConnects(int deleteConnections)
Sets the number of deleted connects.
|
protected void |
setDescriptor(TConnectionPoolDescriptor descriptor)
Sets the descriptor.
|
protected void |
setFailedReconnects(int failedReconnects)
Sets the number of failed reconnects.
|
protected void |
setGetConnects(int getConnections)
Sets the number of getConnection invocations.
|
protected void |
setMaxUsedConnects(int maxUsedConnections)
Sets the maximum number of used connections.
|
protected void |
setName(java.lang.String name)
Method setName
|
protected void |
setReconnects(int reconnects)
Sets the number of reconnects.
|
protected void |
setWaits(int waits)
Sets the number of waits.
|
java.lang.String |
toString()
Delivers the statistical information as a String.
|
public TConnectionPoolStatistics()
public int getDeleteConnections()
public int getMaxUsedConnections()
public int getFailedReconnects()
public int getReconnects()
public int getWaits()
public int getGetConnections()
public java.lang.String getName()
public TConnectionPoolDescriptor getDescriptor()
protected void setMaxUsedConnects(int maxUsedConnections)
maxUsedConnections
- an intprotected void setDeleteConnects(int deleteConnections)
deleteConnections
- an intprotected void setGetConnects(int getConnections)
connections
- an intprotected void setFailedReconnects(int failedReconnects)
failedReconnects
- an intprotected void setReconnects(int reconnects)
reconnects
- an intprotected void setWaits(int waits)
waits
- an intprotected void setDescriptor(TConnectionPoolDescriptor descriptor)
descriptor
- a TConnectionPoolDescriptorpublic java.lang.String toString()
toString
in class java.lang.Object
protected void setName(java.lang.String name)
name
- a StringCopyright (c) 2017 Software AG. All Rights Reserved.