konark.manager
Class ConstructObject

java.lang.Object
  extended bykonark.manager.ConstructObject

public class ConstructObject
extends java.lang.Object

ConstructObject class is a non instantiable class as it has it's default constructor made private.


Method Summary
static java.lang.Object getObject(java.lang.String eventName, java.io.BufferedReader bufReader)
          Primary function of this static function is to aid in the addition, deletion and modification of detectors.
static java.util.Vector parsePatternFile(java.lang.String fileName)
          Parses the patternfile and returns a vector of patternInfo read from the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parsePatternFile

public static java.util.Vector parsePatternFile(java.lang.String fileName)
Parses the patternfile and returns a vector of patternInfo read from the file. PatternInfo object contains the Event Class, name of the event, the pattern and the processing instruction(The substring numbers which are useful for processing the parsed logfile)

Parameters:
fileName - Name of the file containing the patterns
Returns:
patternVector

getObject

public static java.lang.Object getObject(java.lang.String eventName,
                                         java.io.BufferedReader bufReader)
Primary function of this static function is to aid in the addition, deletion and modification of detectors. Provides a command line interface for entering modified values and returns an appropriate Object depending on the type of Event to be modified.

Parameters:
eventName - Name of the event class
bufReader - Buffered Reader object
Returns:
object