Classes | |
| class | StatsData |
Public Member Functions | |
| FileStatistics (String folder) | |
| synchronized void | recvLogs (int[] nums, int secs) |
| void | close () |
| void | totalData (TotalStatsData d) |
| void | run () |
Write the statistics on a set of files.
The number of logs per interval are immediately written on file. The total numbers instead are written by the thread.
| alma.acs.logtools.monitor.file.FileStatistics.FileStatistics | ( | String | folder | ) |
constructor
| folder | The folder to write files into |
| void alma.acs.logtools.monitor.file.FileStatistics.close | ( | ) |
Close the computation and frees the resources
Referenced by alma.acs.logtools.monitor.LogMonitor.close().
| synchronized void alma.acs.logtools.monitor.file.FileStatistics.recvLogs | ( | int[] | nums, | |
| int | secs | |||
| ) |
Notified every time interval about the number of logs of each type received during the interval.
The numbers are immediately written on file.
Implements alma.acs.logtools.monitor.LogNumbersListener.
| void alma.acs.logtools.monitor.file.FileStatistics.run | ( | ) |
The thread to write total values on file
| void alma.acs.logtools.monitor.file.FileStatistics.totalData | ( | TotalStatsData | d | ) |
Notify the listener about the total number of logs read since the application started.
| d | The total number of logs read since the application started |
Implements alma.acs.logtools.monitor.LogNumbersListener.
1.7.0