|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCoDestinationMonitor
The destination monitor provides some details about a destination. The monitor instance
will be created by aDestinationInstance.getMonitor()
or
by JCo.getDestinationMonitor(id)
, where id
is a value of
JCo.getDestinationIDs()
.
Method Summary | |
---|---|
java.util.List<? extends JCoConnectionData> |
getConnectionsData()
Creates and returns a list of all client connections that are currently used with or held open by the monitored destination instance. |
java.lang.String |
getDestinationID()
Returns the ID of the destination instance that is monitored by this instance. |
long |
getLastActivityTimestamp()
Returns the time stamp of the last activity done with the monitored destination instance. |
int |
getMaxUsedCount()
Returns the maximum number of simultaneously used client connections with the monitored destination instance. |
java.lang.String |
getOriginDestinationID()
Returns the ID of the destination instance that the monitored destination instance originated from. |
int |
getPeakLimit()
Returns the maximum number of client connections that can be used simultaneously with the monitored destination instance. |
int |
getPoolCapacity()
Returns the maximum number of client connections that will be held open for the monitored destination instance. |
int |
getPooledConnectionCount()
Returns the number of client connections that are currently held open for the monitored destination instance. |
int |
getUsedConnectionCount()
Returns the number of client connections that are currently being used with the monitored destination instance. |
int |
getWaitingThreadCount()
Returns the number of threads that are currently waiting for a free connection to be used with the monitored destination instance. |
boolean |
isValid()
Returns true if the monitored destination instance is valid, i.e. |
Method Detail |
---|
java.lang.String getDestinationID()
java.lang.String getOriginDestinationID()
JCoCustomDestination
instance. In case of monitoring a configured destination instance, it will return
null
.
null
int getPoolCapacity()
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidint getPeakLimit()
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidint getUsedConnectionCount()
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidint getPooledConnectionCount()
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidint getMaxUsedCount()
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidint getWaitingThreadCount()
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidlong getLastActivityTimestamp()
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidjava.util.List<? extends JCoConnectionData> getConnectionsData()
JCoConnectionData
objects describing all open client
connections
JCoRuntimeException
- with key JCO_ERROR_DESTINATION_DATA_INVALID
if the monitored destination instance is invalidboolean isValid()
true
if the monitored destination instance is valid, i.e. it has
neither been changed nor removed.
true
if the monitored destination instance is valid;
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |