|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionInfoIF
Provides information about an individual connection. You can get a collection
of these from 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(); ... }
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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). |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
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 ValuesMethod Detail |
---|
long getBirthTime()
java.util.Date getBirthDate()
getBirthTime()
but in Date format
long 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()
null
,
available
,
active
or
offline
.
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |