| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.util.socketstatistics.SocketStatistics
public class SocketStatistics
Keeps statistics for all sockets / from all socket connections.
| Constructor Summary | |
|---|---|
SocketStatistics()
 | 
|
| Method Summary | |
|---|---|
static ConnectionStatistics | 
addNewConStats()
Add a new ConnectionStatics for a socket.  | 
 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.  | 
static void | 
setConnectionDestroyed(ConnectionStatistics cs)
Set a connection as destroyed / closed.  | 
 void | 
setKeepStats(int ks)
Setter for the keepStats property which defines how many seconds stats of closed sockets are kept.  | 
 void | 
showSocketsStats()
Print statistics of all listed sockets to stdout.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SocketStatistics()
| Method Detail | 
|---|
public static ConnectionStatistics addNewConStats()
public long getClosedSocketsCount()
getClosedSocketsCount in interface SocketStatisticsMXBeanpublic long getOpenSocketsCount()
getOpenSocketsCount in interface SocketStatisticsMXBeanpublic Set<ConnectionStatistics> getConnectionStatistics()
getConnectionStatistics in interface SocketStatisticsMXBeanpublic int getKeepStats()
getKeepStats in interface SocketStatisticsMXBeanpublic void setKeepStats(int ks)
setKeepStats in interface SocketStatisticsMXBeanks - how many seconds closed sockets will be kept in statisticspublic void exportStatisticsCSV(String filepath)
exportStatisticsCSV in interface SocketStatisticsMXBeanfilepath - path and filename of the csv outputpublic void deleteStatistics()
deleteStatistics in interface SocketStatisticsMXBeanpublic static void setConnectionDestroyed(ConnectionStatistics cs)
cs - the corresponding ConnectionStatics objectpublic void showSocketsStats()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||