|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.logdistiller.LogType.Description
public abstract static class LogType.Description
Description of a log format corresponding to a log type. It must be subclassed for every log type to implement
specialized newFactory(Reader, String)
method.
Constructor Summary | |
---|---|
LogType.Description(LogType logtype,
String[] attributeNames)
Create a new LogType description. |
Method Summary | |
---|---|
int |
getAttributeIndex(String name)
Find the attribute index corresponding to an attribute name (provided attributes only). |
LogType.AttributeInfo |
getAttributeInfo(String name)
|
String |
getAttributeName(int pos)
|
List |
getAttributeNames()
|
int |
getAttributesCount()
|
String |
getDefaultSamplingAttributes()
Get the attributes that can be used as a sorting key to get useful event sampling in the last "unknown" group (separated with a quote when multiple attributes). |
String |
getDefaultSpecificGroups()
Get the group definitions specific to this log type that will be added to the generated rules configuration generated by the GUI. |
int |
getExtensionIndex(String attribute)
Gets the extension index position which defines corresponding attribute. |
Attributes.Extension[] |
getExtensions()
|
LogType |
getLogType()
|
int |
getTimestampAttribute()
Get the attribute that represents the timestamp. |
abstract LogEvent.Factory |
newFactory(Reader reader,
String logSource)
Create a new LogEvent factory for a log stream corresponding to this log description. |
void |
setExtensions(Attributes.Extension[] extensions)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogType.Description(LogType logtype, String[] attributeNames)
logSource
and the
second should be the timestamp (if this notion is relevant for the log type).
logtype
- attributeNames
- getTimestampAttribute()
,
LogEvent.getTimestamp()
Method Detail |
---|
public LogType getLogType()
public List getAttributeNames()
public int getAttributesCount()
public String getAttributeName(int pos)
public void setExtensions(Attributes.Extension[] extensions)
public Attributes.Extension[] getExtensions()
public int getExtensionIndex(String attribute)
public int getTimestampAttribute()
-1
if this logtype does not have a timestamppublic String getDefaultSpecificGroups()
public String getDefaultSamplingAttributes()
public int getAttributeIndex(String name)
name
- String the attribute name to search for
to find an extension attribute index
public LogType.AttributeInfo getAttributeInfo(String name)
public abstract LogEvent.Factory newFactory(Reader reader, String logSource) throws IOException
reader
- the stream containing to parselogSource
- a textual description of the stream's source (useful when LogDistiller works on multiple
simultaneous log sources)
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |