ch.elca.el4j.util.socketstatistics
Interface SocketStatisticsMXBean

All Known Implementing Classes:
SocketStatistics

public interface SocketStatisticsMXBean

MBean Interface to SocketStatistics. This MBean provides the possibility to monitor open / closed socket connections and their properties.

Author:
Jonas Hauenstein (JHN)
File-location:
SocketStatisticsMXBean
Last check-in date:
2009-09-25 16:38:41 +0200 (Fr, 25. Sep 2009) by jonasha for revision 3929

Method Summary
 void deleteStatistics()
          Delete all gathered statistics.
 void exportStatisticsCSV(String filepath)
          Generate a csv of all gathered statistics and save it on the passed path/filename.
 long getClosedSocketsCount()
          Get number of already closed sockets.
 Set<ConnectionStatistics> getConnectionStatistics()
          Get a Set of all present ConnectionStatics for open and already closed sockets.
 int getKeepStats()
          Getter for the keepStats property which defines how many seconds stats of closed sockets are kept.
 long getOpenSocketsCount()
          Get number of open sockets.
 void setKeepStats(int ks)
          Setter for the keepStats property which defines how many seconds stats of closed sockets are kept.
 

Method Detail

getClosedSocketsCount

long getClosedSocketsCount()
Get number of already closed sockets.

Returns:
number of closed sockets

getOpenSocketsCount

long getOpenSocketsCount()
Get number of open sockets.

Returns:
number of open sockets

getConnectionStatistics

Set<ConnectionStatistics> getConnectionStatistics()
Get a Set of all present ConnectionStatics for open and already closed sockets.

Returns:
set of all tracked ConnectionStatatics

getKeepStats

int getKeepStats()
Getter for the keepStats property which defines how many seconds stats of closed sockets are kept.

Returns:
how many seconds closed sockets are kept in statistics

setKeepStats

void setKeepStats(int ks)
Setter for the keepStats property which defines how many seconds stats of closed sockets are kept.

Parameters:
ks - how many seconds closed sockets will be kept in statistics

exportStatisticsCSV

void exportStatisticsCSV(String filepath)
Generate a csv of all gathered statistics and save it on the passed path/filename.

Parameters:
filepath - path and filename of the csv output

deleteStatistics

void deleteStatistics()
Delete all gathered statistics.



Copyright © 2005-2011 ELCA. All Rights Reserved.