patterntesting.runtime.monitor.db
Interface ConnectionMonitorMBean

Package class diagram package ConnectionMonitorMBean
All Known Subinterfaces:
ConnectionMonitorMBean
All Known Implementing Classes:
ConnectionMonitor, ConnectionMonitor

public interface ConnectionMonitorMBean

This is the interface for the ConnectionMonitor for the use of this class as MBean. You can monitor DB connections with it and ask the class for open connections.

Note: Since 1.4.2 this class was moved from package "patterntesting.runtime.db" to here.

Since:
1.3 (02-Jan-2013)
Version:
$Revision: 1.3 $
Author:
oliver (ob@aosd.de)

Method Summary
 StackTraceElement[] getCallers()
          Gets the caller of all connections.
 TabularData getCallerStacktraces()
          Gets the caller stacktraces of all connections.
 int getClosedConnections()
          Gets the closed connections.
 StackTraceElement getLastCaller()
          Gets the caller which opens the last connection.
 StackTraceElement[] getLastCallerStacktrace()
          Gets the stacktrace of the caller which opens the last connection.
 int getOpenConnections()
          Gets the number of open connections.
 int getSumOfConnections()
          Gets the total sum of open and closed connections.
 

Method Detail

getCallers

@Description(value="get the caller of the open connections")
StackTraceElement[] getCallers()
Gets the caller of all connections.

Returns:
all callers

getCallerStacktraces

@Description(value="get the caller of the open connections")
TabularData getCallerStacktraces()
                                 throws OpenDataException
Gets the caller stacktraces of all connections.

Returns:
stacktraces of all callers
Throws:
OpenDataException - the open data exception

getLastCaller

@Description(value="get the caller of the last open connection")
StackTraceElement getLastCaller()
Gets the caller which opens the last connection.

Returns:
the all caller

getLastCallerStacktrace

@Description(value="get the call stacktrace of the last open connection")
StackTraceElement[] getLastCallerStacktrace()
Gets the stacktrace of the caller which opens the last connection.

Returns:
the all caller

getOpenConnections

@Description(value="get the number of open connections")
int getOpenConnections()
Gets the number of open connections.

Note: Till 1.4.0 this method was named "getCount()".

Returns:
the number of open connections

getClosedConnections

@Description(value="get the number of closed connections")
int getClosedConnections()
Gets the closed connections.

Returns:
the closed connections
Since:
1.4.1

getSumOfConnections

@Description(value="get the total sum of open and closed connections")
int getSumOfConnections()
Gets the total sum of open and closed connections.

Returns:
the sum of connections
Since:
1.4.1


Copyright © 2002–2014 PatternTesting Team. All rights reserved.