Public Member Functions | |
| LogQueueFileHandlerImpl () | |
| LogQueueFileHandlerImpl (long maxFileSize) | |
| long | getMaxFileSize () |
| void | fileProcessed (File filePointer, String minTime, String maxTime) |
| File | getNewFile () throws IOException |
A default implementation of ILogQueueFileHandler to create and delete cache files locally.
| 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.
| maxFileSize | The max size of the files of the cache. |
| void com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl.fileProcessed | ( | File | filePointer, | |
| String | minTime, | |||
| String | maxTime | |||
| ) |
Implements com.cosylab.logging.engine.cache.ILogQueueFileHandler.
| long com.cosylab.logging.engine.cache.LogQueueFileHandlerImpl.getMaxFileSize | ( | ) |
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.
Implements com.cosylab.logging.engine.cache.ILogQueueFileHandler.
1.7.0