Package com.jalios.jstore
Class LogManagerHandler
- java.lang.Object
-
- com.jalios.jstore.LogManagerHandler
-
- All Implemented Interfaces:
StoreConstants
,org.xml.sax.ContentHandler
- Direct Known Subclasses:
LogCleaner
,LogManagerDeltaHandler
,LogManagerLoadHandler
,LogManagerSyncHandler
,LogManagerVersionHandler
public abstract class LogManagerHandler extends java.lang.Object implements org.xml.sax.ContentHandler, StoreConstants
This class is the super class of all the LogManager handlers- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description protected org.xml.sax.Locator
locator
protected int
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 LogManagerHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endDocument()
void
endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName)
void
endPrefixMapping(java.lang.String prefix)
void
error(org.xml.sax.SAXParseException ex)
Errorvoid
fatalError(org.xml.sax.SAXParseException ex)
Fatal Errorint
getMaxLineNumber()
void
handleLogEntryException(LogEntry logEntry)
This method is called when an exception is caught while processing a logEntryvoid
ignorableWhitespace(char[] ch, int start, int length)
void
processingInstruction(java.lang.String target, java.lang.String data)
abstract void
processInnerLogEntry(InnerLogEntry logEntry)
Process an InnerLogEntryabstract void
processStorableLogEntry(StorableLogEntry logEntry)
Process a StorableLogEntryvoid
setDocumentLocator(org.xml.sax.Locator locator)
void
skippedEntity(java.lang.String name)
void
startDocument()
void
startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
void
startPrefixMapping(java.lang.String prefix, java.lang.String uri)
void
warning(org.xml.sax.SAXParseException ex)
Warning
-
-
-
Method Detail
-
processInnerLogEntry
public abstract void processInnerLogEntry(InnerLogEntry logEntry)
Process an InnerLogEntry- Parameters:
logEntry
- the InnerLogEntry to process- Since:
- jcms-4.0.2
-
processStorableLogEntry
public abstract void processStorableLogEntry(StorableLogEntry logEntry)
Process a StorableLogEntry- Parameters:
logEntry
- the StorableLogEntry to process- Since:
- jcms-4.0.2
-
handleLogEntryException
public void handleLogEntryException(LogEntry logEntry)
This method is called when an exception is caught while processing a logEntry- Parameters:
logEntry
- the logEntry- Since:
- jcms-4.0.2
-
getMaxLineNumber
public int getMaxLineNumber()
- Returns:
- the max line number read
- Since:
- jcms-5.0.0
-
startElement
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
- Specified by:
startElement
in interfaceorg.xml.sax.ContentHandler
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interfaceorg.xml.sax.ContentHandler
-
endDocument
public void endDocument() throws org.xml.sax.SAXException
- Specified by:
endDocument
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
startDocument
public void startDocument() throws org.xml.sax.SAXException
- Specified by:
startDocument
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
- Specified by:
characters
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
- Specified by:
ignorableWhitespace
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
- Specified by:
processingInstruction
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
- Specified by:
startPrefixMapping
in interfaceorg.xml.sax.ContentHandler
-
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
- Specified by:
endPrefixMapping
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
skippedEntity
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
- Specified by:
skippedEntity
in interfaceorg.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
-
warning
public void warning(org.xml.sax.SAXParseException ex)
Warning
-
error
public void error(org.xml.sax.SAXParseException ex)
Error
-
fatalError
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
Fatal Error- Throws:
org.xml.sax.SAXException
-
-