Public Member Functions

com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl Class Reference

Inheritance diagram for com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl:
com.cosylab.logging.engine.cache.ILogQueueFileHandler

List of all members.

Public Member Functions

 LogQueueFileHandlerImpl ()
 LogQueueFileHandlerImpl (long maxFileSize)
long getMaxFileSize ()
void fileProcessed (File filePointer, String minTime, String maxTime)
File getNewFile () throws IOException

Detailed Description

A default implementation of ILogQueueFileHandler to create and delete cache files locally.

Author:
acaproni
Since:
ACS 9.0

Constructor & Destructor Documentation

com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl.LogQueueFileHandlerImpl (  ) 

Build the handler with the default size for the files.

The max size of each file of the cache is calculated in the following way: 1. if the java property is present, the size is taken from suc a property 2. the default size is used

References com.cosylab.logging.engine.cache.ILogQueueFileHandler.DEFAULT_SIZE, and com.cosylab.logging.engine.cache.ILogQueueFileHandler.MAXSIZE_PROPERTY_NAME.

com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl.LogQueueFileHandlerImpl ( long  maxFileSize  ) 

Build the handler with the default size for the files.

Parameters:
maxFileSize The max size of the files of the cache.

Member Function Documentation

void com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl.fileProcessed ( File  filePointer,
String  minTime,
String  maxTime 
)
long com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl.getMaxFileSize (  ) 
Returns:
the maximum size of each file of the cache

Implements com.cosylab.logging.engine.cache.ILogQueueFileHandler.

File com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl.getNewFile (  )  throws IOException

Attempts to create the file for the strings in several places before giving up.

See also:
com.cosylab.logging.engine.cache.ILogQueueFileHandler.getNewFile()

Implements com.cosylab.logging.engine.cache.ILogQueueFileHandler.


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