public abstract static class LogDistillation.Plugin extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected LogDistiller.Plugin |
definition |
protected LogDistillation.Group |
group |
Constructor and Description |
---|
LogDistillation.Plugin(LogDistiller.Plugin definition) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addLogEvent(LogEvent le)
Add a log event to this plugin instance.
|
void |
addLogEvent(LogEvent le,
Condition condition)
Add a log event to this plugin instance, with information on which condition was matched.
|
abstract void |
appendGlobalReport(ReportFormat.PluginReport report)
Append a summary of this plugin instance results to the global report.
|
abstract void |
appendGroupReport(ReportFormat.PluginReport report)
Append a summary of this plugin instance results to the group report.
|
abstract void |
begin(File destinationDirectory)
Begin the log distillation for this plugin instance.
|
abstract void |
end()
End the log distillation for this plugin instance.
|
LogDistiller.Plugin |
getDefinition() |
LogDistillation.Group |
getGroup() |
String |
getId() |
protected final LogDistiller.Plugin definition
protected transient LogDistillation.Group group
public LogDistillation.Plugin(LogDistiller.Plugin definition)
public LogDistillation.Group getGroup()
public LogDistiller.Plugin getDefinition()
public abstract void begin(File destinationDirectory) throws IOException
destinationDirectory
- the directory where reports will be stored.IOException
public abstract void addLogEvent(LogEvent le) throws IOException
le
- the log event.IOException
public void addLogEvent(LogEvent le, Condition condition) throws IOException
le
- the log event.condition
- the condition which was matchedIOException
public abstract void end() throws IOException
IOException
public abstract void appendGroupReport(ReportFormat.PluginReport report)
report
- the plugin report formatterpublic abstract void appendGlobalReport(ReportFormat.PluginReport report)
report
- the plugin report formatterCopyright © 2004–2014. All rights reserved.