|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.logdistiller.LogDistillation
public class LogDistillation
The class executing a log distillation, using a log distiller, and processing every log events. A log distillation
can be run either with LogDistiller's GUI
or with Ant
tasks
.
LogDistiller
,
Serialized FormNested Class Summary | |
---|---|
static class |
LogDistillation.Category
|
class |
LogDistillation.Group
|
static class |
LogDistillation.Plugin
|
Field Summary | |
---|---|
static String |
LINE_SEPARATOR
|
Constructor Summary | |
---|---|
LogDistillation(LogDistiller ld)
|
Method Summary | |
---|---|
void |
begin()
begin the distillation |
void |
end()
end the distillation |
long |
getBeginTime()
|
LogDistillation.Category[] |
getCategories()
|
LogDistillation.Category |
getCategory(String id)
|
String |
getContent()
|
LogDistiller |
getDefinition()
|
long |
getEndTime()
|
long |
getEventBytes()
|
int |
getEventCount()
|
LogDistillation.Group |
getGroup(String id)
|
LogDistillation.Group[] |
getGroups()
|
LogType.Description |
getLogTypeDescription()
|
long |
getSkippedEventBytes()
|
int |
getSkippedEventCount()
|
String |
getVersion()
What is the version of LogDistiller that was used to create this instance? |
List |
listCategoriesToReport()
|
List |
listGroupsToReport()
|
File |
newDestinationFile(String filename)
|
void |
processLogEvent(LogEvent le)
Process a log event |
void |
saveTo(File file)
Saves the distillation to a file, in Java serialized format. |
void |
saveTo(OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LINE_SEPARATOR
Constructor Detail |
---|
public LogDistillation(LogDistiller ld)
Method Detail |
---|
public void begin() throws IOException
IOException
public void processLogEvent(LogEvent le) throws IOException
le
- LogEvent the log event
IOException
- if an error occurs when (eventually) saving the log eventpublic void end() throws IOException
IOException
- if an error occurs when closing the files where log events were (eventually) savedpublic void saveTo(File file) throws IOException
file
- File destination file.
IOException
public void saveTo(OutputStream out) throws IOException
IOException
public List listCategoriesToReport()
public List listGroupsToReport()
public LogDistiller getDefinition()
public LogDistillation.Group[] getGroups()
public LogDistillation.Group getGroup(String id)
public LogDistillation.Category[] getCategories()
public LogDistillation.Category getCategory(String id)
public String getContent()
public int getEventCount()
public long getEventBytes()
public long getBeginTime()
public long getEndTime()
public int getSkippedEventCount()
public long getSkippedEventBytes()
public File newDestinationFile(String filename)
public LogType.Description getLogTypeDescription()
public String getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |