Classes | Public Member Functions

alma.acs.logtools.monitor.file.FileStatistics Class Reference

Inheritance diagram for alma.acs.logtools.monitor.file.FileStatistics:
alma.acs.logtools.monitor.LogNumbersListener

List of all members.

Classes

class  StatsData

Public Member Functions

 FileStatistics (String folder)
synchronized void recvLogs (int[] nums, int secs)
void close ()
void totalData (TotalStatsData d)
void run ()

Detailed Description

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.

Author:
acaproni
Since:
ACS 8.1.0

Constructor & Destructor Documentation

alma.acs.logtools.monitor.file.FileStatistics.FileStatistics ( String  folder  ) 

constructor

Parameters:
folder The folder to write files into

Member Function Documentation

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.

See also:
alma.acs.logtools.monitor.LogNumbersListener.recvLogs(int[], int)

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.

Parameters:
d The total number of logs read since the application started
See also:
LogNumbersListener

Implements alma.acs.logtools.monitor.LogNumbersListener.


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