Package com.jalios.jstore
Class LogCleaner
- java.lang.Object
-
- com.jalios.jstore.LogManagerHandler
-
- com.jalios.jstore.LogCleaner
-
- All Implemented Interfaces:
StoreConstants,org.xml.sax.ContentHandler
public class LogCleaner extends LogManagerHandler
- Since:
- jcms-5.5.0
- Author:
- Olivier Dedieu
-
-
Field Summary
-
Fields inherited from class com.jalios.jstore.LogManagerHandler
locator, maxLineNumber
-
Fields inherited from interface com.jalios.jstore.StoreConstants
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, LOG_DIR_LOG_PREFIX, LOG_DIR_LOG_WORK, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
-
-
Constructor Summary
Constructors Constructor Description LogCleaner(Store store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogCleanerReportcleanLogDir(java.lang.String backupDirname, CleanFilter filter, LogCleanerObserver obs)Clean the store directory.LogCleanerReportcleanLogFile(java.lang.String backupFilename, CleanFilter filter, LogCleanerObserver obs)Clean the store.voidprocessInnerLogEntry(InnerLogEntry logEntry)Process an InnerLogEntryvoidprocessStorableLogEntry(StorableLogEntry logEntry)Process a StorableLogEntry-
Methods inherited from class com.jalios.jstore.LogManagerHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getMaxLineNumber, handleLogEntryException, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, warning
-
-
-
-
Constructor Detail
-
LogCleaner
public LogCleaner(Store store)
-
-
Method Detail
-
cleanLogFile
public LogCleanerReport cleanLogFile(java.lang.String backupFilename, CleanFilter filter, LogCleanerObserver obs)
Clean the store.- Parameters:
backupFilename- the backup filefilter- the CleanFilter to applyobs- the LogCleanerObserver (may be null)- Returns:
- the clean report
- Since:
- jcms-10.0.8
-
cleanLogDir
public LogCleanerReport cleanLogDir(java.lang.String backupDirname, CleanFilter filter, LogCleanerObserver obs)
Clean the store directory.- Parameters:
backupDirname- the backup directoryfilter- the CleanFilter to applyobs- the LogCleanerObserver (may be null)- Returns:
- the clean report
- Since:
- jcms-10.0.8
-
processInnerLogEntry
public void processInnerLogEntry(InnerLogEntry logEntry)
Description copied from class:LogManagerHandlerProcess an InnerLogEntry- Specified by:
processInnerLogEntryin classLogManagerHandler- Parameters:
logEntry- the InnerLogEntry to process
-
processStorableLogEntry
public void processStorableLogEntry(StorableLogEntry logEntry)
Description copied from class:LogManagerHandlerProcess a StorableLogEntry- Specified by:
processStorableLogEntryin classLogManagerHandler- Parameters:
logEntry- the StorableLogEntry to process
-
-