public interface ConnectionInfoIF
extends java.lang.Comparable
ProxoolFacade
. You
get back information about all the connections in a particular pool.
String alias = "myPool"; Iterator i = ProxoolFacade.getConnectionInfos(alias).iterator(); while (i.hasNext()) { ConnectionInfoIF c = (ConnectionInfoIF)i.next(); ... }
Modifier and Type | Field and Description |
---|---|
static int |
MARK_FOR_EXPIRY
The next time this connection is made available we should expire it.
|
static int |
MARK_FOR_USE
Default - treat as normal
|
static int |
STATUS_ACTIVE
The connection is in use
|
static int |
STATUS_AVAILABLE
The connection is available for use
|
static int |
STATUS_NULL
This is the start and end state of every connection
|
static int |
STATUS_OFFLINE
The connection is in use by the house keeping thread
|
Modifier and Type | Method and Description |
---|---|
long |
getAge()
The age in millseconds since this connection was built
|
java.util.Date |
getBirthDate()
Like
getBirthTime() but in Date format |
long |
getBirthTime()
The time that this connection was created.
|
java.lang.String |
getDelegateHashcode()
The hashcode (in hex) of the delegate connection object.
|
java.lang.String |
getDelegateUrl()
The URL that this connection is using (the definition
might have changed since this connection was built).
|
long |
getId()
A unique ID for this connection
|
int |
getMark()
Sometimes we want do something to a connection but can't because it is still
active and we don't want to disrupt its use.
|
java.lang.String |
getProxyHashcode()
The hashcode (in hex) of the ProxyConnection object.
|
java.lang.String |
getRequester()
The name of the thread that asked for this connection.
|
java.lang.String[] |
getSqlCalls()
A log of the last SQL used on this connection.
|
int |
getStatus()
The status of the connection.
|
long |
getTimeLastStartActive()
When this connection was last given out.
|
long |
getTimeLastStopActive()
When this connection was last given back (or zero if it is still active).
|
static final int MARK_FOR_USE
getMark()
,
Constant Field Valuesstatic final int MARK_FOR_EXPIRY
getMark()
,
Constant Field Valuesstatic final int STATUS_NULL
getStatus()
,
Constant Field Valuesstatic final int STATUS_AVAILABLE
getStatus()
,
Constant Field Valuesstatic final int STATUS_ACTIVE
getStatus()
,
Constant Field Valuesstatic final int STATUS_OFFLINE
getStatus()
,
Constant Field Valueslong getBirthTime()
java.util.Date getBirthDate()
getBirthTime()
but in Date formatlong getAge()
long getId()
int getMark()
expire
the
connection (if it is too old for instance). And this will happen if the
housekeeper decides it should but the connection is still active.int getStatus()
long getTimeLastStartActive()
long getTimeLastStopActive()
java.lang.String getRequester()
java.lang.String getProxyHashcode()
java.lang.String getDelegateHashcode()
java.lang.String getDelegateUrl()
java.lang.String[] getSqlCalls()
ConnectionPoolDefinitionIF.isTrace()
is enabled.