|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.logdistiller.LogEvent
public abstract class LogEvent
Log events base class. Every new log type must implement an inherited class, with appropriate:
LogEvent.Factory
to create events from the log streamLogType
to declare the log type and eventually available parameters to customize its format
LogType
,
LogTypes
Nested Class Summary | |
---|---|
static class |
LogEvent.Factory
The base class for LogEvent factories, responsible for parsing an input stream into LogEvent s. |
Constructor Summary | |
---|---|
protected |
LogEvent(LogEvent.Factory factory,
String rawLog)
|
Method Summary | |
---|---|
protected void |
checkInitialized()
|
String |
dump()
|
void |
dump(PrintWriter out)
|
String |
getAttribute(int pos)
Get a provided attribute value by its position index. |
String |
getAttribute(String attributeName)
Extracts an attribute's provided value of the log event. |
String[] |
getAttributes()
Get a clone copy of the provided attributes. |
int |
getAttributesCount()
Get provided attributes count. |
LogEvent.Factory |
getFactory()
|
String |
getRawLog()
Get the raw log text from which this event was parsed. |
String |
getTimestamp()
Get the timestamp. |
String |
getValue(LogType.AttributeInfo info)
|
protected void |
setAttributes(String[] attributes)
Set the provided attributes values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LogEvent(LogEvent.Factory factory, String rawLog)
Method Detail |
---|
protected void setAttributes(String[] attributes)
attributes
- attributes valuesprotected void checkInitialized()
public String getRawLog()
public String getAttribute(int pos)
pos
- the position index of the attribute.
public String[] getAttributes()
public int getAttributesCount()
public String getAttribute(String attributeName)
attributeName
- the name of the attribute (provided only)
public String getValue(LogType.AttributeInfo info)
public LogEvent.Factory getFactory()
public void dump(PrintWriter out)
public String dump()
public String getTimestamp()
LogType.Description.getTimestampAttribute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |