Inherited by alma.acs.logtools.monitor.file.FileStatistics.StatsData, and alma.acs.logtools.monitor.gui.TotalStatisticsPnl.MyStatsData.
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 |
A class to ensure mutual exclusion while updating/reading values
| synchronized int alma.acs.logtools.monitor.TotalStatsData.getErrors | ( | ) |
Getter
References alma.acs.logtools.monitor.TotalStatsData.errors.
Referenced by alma.acs.logtools.monitor.TotalStatsData.updateAll().
| synchronized float [] alma.acs.logtools.monitor.TotalStatsData.getLogsTypeDistribution | ( | ) |
Getter
References alma.acs.logtools.monitor.TotalStatsData.logsTypeDistribution.
| synchronized int alma.acs.logtools.monitor.TotalStatsData.getLongestLogSize | ( | ) |
Getter
References alma.acs.logtools.monitor.TotalStatsData.longestLogSize.
Referenced by alma.acs.logtools.monitor.TotalStatsData.updateAll().
| synchronized long alma.acs.logtools.monitor.TotalStatsData.getNumOfLogs | ( | ) |
Getter
References alma.acs.logtools.monitor.TotalStatsData.numOfLogs.
| synchronized int alma.acs.logtools.monitor.TotalStatsData.getShortestLogSize | ( | ) |
Getter
References alma.acs.logtools.monitor.TotalStatsData.shortestLogSize.
Referenced by alma.acs.logtools.monitor.TotalStatsData.updateAll().
| synchronized long [] alma.acs.logtools.monitor.TotalStatsData.getTotalLogs | ( | ) |
Getter
References alma.acs.logtools.monitor.TotalStatsData.totalLogs.
Referenced by alma.acs.logtools.monitor.TotalStatsData.updateAll().
| synchronized void alma.acs.logtools.monitor.TotalStatsData.updateAll | ( | TotalStatsData | data | ) |
Update all the total numbers
| data | Total numbers |
References alma.acs.logtools.monitor.TotalStatsData.getErrors(), alma.acs.logtools.monitor.TotalStatsData.getLongestLogSize(), alma.acs.logtools.monitor.TotalStatsData.getShortestLogSize(), alma.acs.logtools.monitor.TotalStatsData.getTotalLogs(), alma.acs.logtools.monitor.TotalStatsData.updateErrors(), alma.acs.logtools.monitor.TotalStatsData.updateSizes(), and alma.acs.logtools.monitor.TotalStatsData.updateTotalLogs().
| synchronized void alma.acs.logtools.monitor.TotalStatsData.updateErrors | ( | int | errs | ) |
Update the total num of errors
| errs | Total num. of errors |
References alma.acs.logtools.monitor.TotalStatsData.errors.
Referenced by alma.acs.logtools.monitor.LogDetailsDispatcher.errorReceived(), and alma.acs.logtools.monitor.TotalStatsData.updateAll().
| synchronized void alma.acs.logtools.monitor.TotalStatsData.updateSizes | ( | int | min, | |
| int | max | |||
| ) |
Update the sizes
| min | Shortest size | |
| max | Longest size |
References alma.acs.logtools.monitor.TotalStatsData.longestLogSize, and alma.acs.logtools.monitor.TotalStatsData.shortestLogSize.
Referenced by alma.acs.logtools.monitor.TotalStatsData.updateAll(), and alma.acs.logtools.monitor.LogDetailsDispatcher.xmlEntryReceived().
| synchronized void alma.acs.logtools.monitor.TotalStatsData.updateTotalLogs | ( | long[] | nums | ) |
Update the total number of logs, the distribution and so on
References alma.acs.logtools.monitor.TotalStatsData.logsTypeDistribution, alma.acs.logtools.monitor.TotalStatsData.numOfLogs, and alma.acs.logtools.monitor.TotalStatsData.totalLogs.
Referenced by alma.acs.logtools.monitor.LogDetailsDispatcher.logEntryReceived(), and alma.acs.logtools.monitor.TotalStatsData.updateAll().
volatile int alma.acs.logtools.monitor.TotalStatsData.errors = 0 [protected] |
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().
volatile int alma.acs.logtools.monitor.TotalStatsData.longestLogSize = 0 [protected] |
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().
volatile long alma.acs.logtools.monitor.TotalStatsData.numOfLogs = 0 [protected] |
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().
volatile int alma.acs.logtools.monitor.TotalStatsData.shortestLogSize = 0 [protected] |
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().
1.7.0