
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 | ( | ) | [inline] |
| synchronized float [] alma::acs::logtools::monitor::TotalStatsData::getLogsTypeDistribution | ( | ) | [inline] |
Getter
References logsTypeDistribution.
| synchronized int alma::acs::logtools::monitor::TotalStatsData::getLongestLogSize | ( | ) | [inline] |
| synchronized long alma::acs::logtools::monitor::TotalStatsData::getNumOfLogs | ( | ) | [inline] |
Getter
References numOfLogs.
| synchronized int alma::acs::logtools::monitor::TotalStatsData::getShortestLogSize | ( | ) | [inline] |
| synchronized long [] alma::acs::logtools::monitor::TotalStatsData::getTotalLogs | ( | ) | [inline] |
| synchronized void alma::acs::logtools::monitor::TotalStatsData::updateAll | ( | TotalStatsData | data | ) | [inline] |
Update all the total numbers
| data | Total numbers |
References getErrors(), getLongestLogSize(), getShortestLogSize(), getTotalLogs(), updateErrors(), updateSizes(), and updateTotalLogs().
Referenced by alma::acs::logtools::monitor::file::FileStatistics::totalData(), and alma::acs::logtools::monitor::gui::TotalStatisticsPnl::updateStats().
| synchronized void alma::acs::logtools::monitor::TotalStatsData::updateErrors | ( | int | errs | ) | [inline] |
Update the total num of errors
| errs | Total num. of errors |
Reimplemented in alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData.
References errors.
Referenced by alma::acs::logtools::monitor::LogDetailsDispatcher::errorReceived(), and updateAll().
| synchronized void alma::acs::logtools::monitor::TotalStatsData::updateSizes | ( | int | min, | |
| int | max | |||
| ) | [inline] |
Update the sizes
| min | Shortest size | |
| max | Longest size |
Reimplemented in alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData.
References longestLogSize, and shortestLogSize.
Referenced by updateAll(), and alma::acs::logtools::monitor::LogDetailsDispatcher::xmlEntryReceived().
| synchronized void alma::acs::logtools::monitor::TotalStatsData::updateTotalLogs | ( | long[] | nums | ) | [inline] |
Update the total number of logs, the distribution and so on
Reimplemented in alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData.
References logsTypeDistribution, numOfLogs, and totalLogs.
Referenced by alma::acs::logtools::monitor::LogDetailsDispatcher::logEntryReceived(), and 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::file::FileStatistics::StatsData::formatString(), getErrors(), updateErrors(), and alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData::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::file::FileStatistics::StatsData::formatString(), getLogsTypeDistribution(), updateTotalLogs(), and alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData::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::file::FileStatistics::StatsData::formatString(), getLongestLogSize(), updateSizes(), and alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData::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::file::FileStatistics::StatsData::formatString(), getNumOfLogs(), updateTotalLogs(), and alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData::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::file::FileStatistics::StatsData::formatString(), getShortestLogSize(), updateSizes(), and alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData::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::file::FileStatistics::StatsData::formatString(), getTotalLogs(), updateTotalLogs(), and alma::acs::logtools::monitor::gui::TotalStatisticsPnl::MyStatsData::updateTotalLogs().
1.6.2