public abstract static class LogType.Description extends Object
newFactory(Reader, String)
method.Constructor and Description |
---|
LogType.Description(LogType logtype,
String[] attributeNames)
Create a new LogType description.
|
Modifier and Type | Method and Description |
---|---|
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<String> |
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) |
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()
public LogType getLogType()
public List<String> 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 forto 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
Copyright © 2004–2014. All rights reserved.