alma::acs::logtools::monitor::TotalStatsData Class Reference

Inheritance diagram for alma::acs::logtools::monitor::TotalStatsData:
Inheritance graph
[legend]

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 (  )  [inline]

Getter

References errors.

Referenced by updateAll().

synchronized float [] alma::acs::logtools::monitor::TotalStatsData::getLogsTypeDistribution (  )  [inline]

Getter

References logsTypeDistribution.

synchronized int alma::acs::logtools::monitor::TotalStatsData::getLongestLogSize (  )  [inline]

Getter

References longestLogSize.

Referenced by updateAll().

synchronized long alma::acs::logtools::monitor::TotalStatsData::getNumOfLogs (  )  [inline]

Getter

References numOfLogs.

synchronized int alma::acs::logtools::monitor::TotalStatsData::getShortestLogSize (  )  [inline]

Getter

References shortestLogSize.

Referenced by updateAll().

synchronized long [] alma::acs::logtools::monitor::TotalStatsData::getTotalLogs (  )  [inline]

Getter

References totalLogs.

Referenced by updateAll().

synchronized void alma::acs::logtools::monitor::TotalStatsData::updateAll ( TotalStatsData  data  )  [inline]
synchronized void alma::acs::logtools::monitor::TotalStatsData::updateErrors ( int  errs  )  [inline]

Update the total num of errors

Parameters:
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

Parameters:
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]

Member Data Documentation

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

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2