public class DefaultAuditEventFactory extends Object implements AuditEventFactory
This is the default implementation of the event factory. It will not provide any recycling or memory optimization, but simply create events in the way they have been created before.
| Modifier and Type | Field and Description |
|---|---|
protected static Long |
evtCount
a count of all events created by this factory
|
AUDIT_EVENT_FACTORY_CLASS| Constructor and Description |
|---|
DefaultAuditEventFactory()
The private constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addValue(Map<String,List<String>> cols,
String col,
String value) |
AuditEvent |
createAuditEvent(String[] sectionData,
AuditEventType type)
Creates a new audit-event instance from the given section strings.
|
AuditEvent |
createAuditEvent(String id,
String[] data,
File inputFile,
long offset,
long size,
AuditEventType type) |
static Long |
getEventCount() |
static AuditEventFactory |
getInstance()
This method will return the shared instance of this factory.
|
static Map<String,List<String>> |
parseAuditTrailer(Map<String,List<String>> cols,
String trailer) |
protected static Long evtCount
public DefaultAuditEventFactory()
public static AuditEventFactory getInstance()
public AuditEvent createAuditEvent(String[] sectionData, AuditEventType type) throws ParseException
AuditEventFactorycreateAuditEvent in interface AuditEventFactorysectionData - The data strings of the sections.ParseExceptionorg.jwall.web.audit.AuditEventFactory#createAuditEvent(java.lang.String[])public AuditEvent createAuditEvent(String id, String[] data, File inputFile, long offset, long size, AuditEventType type) throws ParseException
createAuditEvent in interface AuditEventFactoryParseExceptionpublic static Map<String,List<String>> parseAuditTrailer(Map<String,List<String>> cols, String trailer) throws ParseException
ParseExceptionpublic static Long getEventCount()
Copyright © 2015 jwall.org. All Rights Reserved.