Public Member Functions

alma.acs.logging.tools.LogFileSplitter Class Reference

Inheritance diagram for alma.acs.logging.tools.LogFileSplitter:
com.cosylab.logging.engine.ACS.ACSRemoteLogListener com.cosylab.logging.engine.ACS.ACSRemoteErrorListener alma.acs.logging.engine.io.IOPorgressListener

List of all members.

Public Member Functions

 LogFileSplitter (String[] inputFiles, String outputFiles, Integer num, Integer mins, LogConverter converter)
void split () throws Exception
void bytesRead (long bytes)
void bytesWritten (long bytes)
void logsRead (int numOfLogs)
void logsWritten (int numOfLogs)
void errorReceived (String xml)
void logEntryReceived (ILogEntry logEntry)

Detailed Description

An object to split a log file in several other shorter file. The criteria is the number of logs or the time (in minutes)

A progressive number is appended to the name of the destination for each created file. If the time is the criteria to split the input file, the the date of the first log is appended to the name of the file too.

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.logging.tools.LogFileSplitter.LogFileSplitter ( String[]  inputFiles,
String  outputFiles,
Integer  num,
Integer  mins,
LogConverter  converter 
)

Constructor

Parameters:
inputFiles The files of log to read
outputFiles The names of the files created splitting
num The number of logs per file (can be null)
mins The minutes of the logs per file (can be null)
converter The converter to format the logs before saving

Member Function Documentation

void alma.acs.logging.tools.LogFileSplitter.bytesRead ( long  bytes  ) 
void alma.acs.logging.tools.LogFileSplitter.bytesWritten ( long  bytes  ) 
void alma.acs.logging.tools.LogFileSplitter.errorReceived ( String  xml  ) 
void alma.acs.logging.tools.LogFileSplitter.logsRead ( int  numOfLogs  ) 
void alma.acs.logging.tools.LogFileSplitter.logsWritten ( int  numOfLogs  ) 
void alma.acs.logging.tools.LogFileSplitter.split (  )  throws Exception

Split the input file

Exceptions:
Exception in case of errors while splitting

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