|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.LogReaderFactory
public class LogReaderFactory
This class provides an abstraction layer to the creation and derivation of LogReader instances. It provides static facilities for setting a specific log reader implementation, which is then transparently used when requesting log reader creation by the provided static methods.
Field Summary | |
---|---|
protected static java.lang.Class |
logReaderClass
|
Constructor Summary | |
---|---|
LogReaderFactory()
|
Method Summary | |
---|---|
static LogReader |
createInstance(LogFilter filter,
LogFile file)
Creates a new instance of the currently configured log reader implementation. |
static LogReader |
createInstance(LogFilter filter,
LogReader reader)
Creates a new instance of the currently configured log reader implementation. |
static LogReader |
createInstance(LogReader reader,
int[] processInstancesToKeep)
Creates a new instance of the currently configured log reader implementation. |
static java.lang.Class |
getLogReaderClass()
Gets the LogReader implementation class, which is to be used for future creation and derivation of log readers. |
static void |
setLogReaderClass(java.lang.Class readerClass)
Sets the LogReader implementation class, which is to be used for future creation and derivation of log readers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.Class logReaderClass
Constructor Detail |
---|
public LogReaderFactory()
Method Detail |
---|
public static LogReader createInstance(LogFilter filter, LogReader reader) throws java.lang.Exception
Use this method preferably to the one based on a filter and log file. It generally performs faster, as the original log file does not have to be parsed and interpreted over again.
filter
- The filter which which the log reader is equipped.reader
- Log reader from which to copy original event data.
java.lang.Exception
public static LogReader createInstance(LogFilter filter, LogFile file) throws java.lang.Exception
filter
- The filter which which the log reader is equipped.file
- Log file from which to read event data.
java.lang.Exception
public static LogReader createInstance(LogReader reader, int[] processInstancesToKeep) throws java.lang.Exception
reader
- Parent log reader on which to base the new instance.processInstancesToKeep
- Array containing the indices of process
instances in the parent log reader, which are to be used as well in
the newly created instance.
java.lang.Exception
public static void setLogReaderClass(java.lang.Class readerClass) throws java.lang.Exception
readerClass
- A class derived from LogReader
java.lang.Exception
public static java.lang.Class getLogReaderClass()
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |