Public Member Functions | Protected Attributes

alma.acs.logtools.monitor.TotalStatsData Class Reference

Inherited by alma.acs.logtools.monitor.file.FileStatistics.StatsData, and alma.acs.logtools.monitor.gui.TotalStatisticsPnl.MyStatsData.

List of all members.

Public Member Functions

synchronized void updateSizes (int min, int max)
synchronized void updateErrors (int errs)
synchronized void updateAll (TotalStatsData data)
synchronized void updateTotalLogs (long[] nums)
synchronized long[] getTotalLogs ()
synchronized long getNumOfLogs ()
synchronized float[] getLogsTypeDistribution ()
synchronized int getLongestLogSize ()
synchronized int getShortestLogSize ()
synchronized int getErrors ()

Protected Attributes

final long[] totalLogs = new long[LogTypeHelper.values().length]
volatile long numOfLogs = 0
final float[] logsTypeDistribution = new float[LogTypeHelper.values().length]
volatile int longestLogSize = 0
volatile int shortestLogSize = 0
volatile int errors = 0

Detailed Description

A class to ensure mutual exclusion while updating/reading values

Author:
acaproni
Since:
ACS 8.1.0

Member Function Documentation

synchronized int alma.acs.logtools.monitor.TotalStatsData.getErrors (  ) 
synchronized float [] alma.acs.logtools.monitor.TotalStatsData.getLogsTypeDistribution (  ) 
synchronized int alma.acs.logtools.monitor.TotalStatsData.getLongestLogSize (  ) 
synchronized long alma.acs.logtools.monitor.TotalStatsData.getNumOfLogs (  ) 
synchronized int alma.acs.logtools.monitor.TotalStatsData.getShortestLogSize (  ) 
synchronized long [] alma.acs.logtools.monitor.TotalStatsData.getTotalLogs (  ) 
synchronized void alma.acs.logtools.monitor.TotalStatsData.updateAll ( TotalStatsData  data  ) 
synchronized void alma.acs.logtools.monitor.TotalStatsData.updateErrors ( int  errs  ) 
synchronized void alma.acs.logtools.monitor.TotalStatsData.updateSizes ( int  min,
int  max 
)
synchronized void alma.acs.logtools.monitor.TotalStatsData.updateTotalLogs ( long[]  nums  ) 

Member Data Documentation

Number of errors parsing logs since the begging of the execution

Referenced by alma.acs.logtools.monitor.TotalStatsData.getErrors(), and alma.acs.logtools.monitor.TotalStatsData.updateErrors().

final float [] alma.acs.logtools.monitor.TotalStatsData.logsTypeDistribution = new float[LogTypeHelper.values().length] [protected]

The distribution of each log type since the begging of the execution
One entry for each log type.

Referenced by alma.acs.logtools.monitor.TotalStatsData.getLogsTypeDistribution(), and alma.acs.logtools.monitor.TotalStatsData.updateTotalLogs().

The longest XML log received since the begging of the execution

Referenced by alma.acs.logtools.monitor.TotalStatsData.getLongestLogSize(), and alma.acs.logtools.monitor.TotalStatsData.updateSizes().

Total number of logs (of any type) received since the beginning of the execution

Referenced by alma.acs.logtools.monitor.TotalStatsData.getNumOfLogs(), and alma.acs.logtools.monitor.TotalStatsData.updateTotalLogs().

The shortest XML log received since the begging of the execution

Referenced by alma.acs.logtools.monitor.TotalStatsData.getShortestLogSize(), and alma.acs.logtools.monitor.TotalStatsData.updateSizes().

final long [] alma.acs.logtools.monitor.TotalStatsData.totalLogs = new long[LogTypeHelper.values().length] [protected]

The total number of logs received since the begging of the execution
One entry for each log type.

Referenced by alma.acs.logtools.monitor.TotalStatsData.getTotalLogs(), and alma.acs.logtools.monitor.TotalStatsData.updateTotalLogs().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties