public interface ConnectionInfoIF extends 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();
...
}
| 限定符和类型 | 字段和说明 |
|---|---|
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
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getAge()
The age in millseconds since this connection was built
|
Date |
getBirthDate()
Like
getBirthTime() but in Date format |
long |
getBirthTime()
The time that this connection was created.
|
String |
getDelegateHashcode()
The hashcode (in hex) of the delegate connection object.
|
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.
|
String |
getProxyHashcode()
The hashcode (in hex) of the ProxyConnection object.
|
String |
getRequester()
The name of the thread that asked for this connection.
|
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).
|
compareTostatic final int MARK_FOR_EXPIRY
static final int STATUS_NULL
getStatus(),
常量字段值static final int STATUS_AVAILABLE
getStatus(),
常量字段值static final int STATUS_ACTIVE
getStatus(),
常量字段值static final int STATUS_OFFLINE
getStatus(),
常量字段值long getBirthTime()
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()
String getRequester()
String getProxyHashcode()
String getDelegateHashcode()
String getDelegateUrl()
String[] getSqlCalls()
ConnectionPoolDefinitionIF.isTrace()
is enabled.Copyright © 2024. All rights reserved.