Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_DELIMITER |
static String |
CATEGORY_DELIMITER |
static String |
DATE_DELIMITER |
static String |
LOCATION_DELIMITER |
static String |
MESSAGE_DELIMITER |
static String |
NDC_DELIMITER |
static String |
PRIORITY_DELIMITER |
static String |
RECORD_DELIMITER |
static String |
THREAD_DELIMITER |
Constructor and Description |
---|
LogFileParser(File file) |
LogFileParser(InputStream stream) |
Modifier and Type | Method and Description |
---|---|
protected void |
displayError(String message) |
void |
parse(LogBrokerMonitor monitor)
Starts a new thread to parse the log file and create a LogRecord.
|
void |
run()
Parses the file and creates new log records and adds the record
to the monitor.
|
public static final String RECORD_DELIMITER
public static final String ATTRIBUTE_DELIMITER
public static final String DATE_DELIMITER
public static final String THREAD_DELIMITER
public static final String CATEGORY_DELIMITER
public static final String LOCATION_DELIMITER
public static final String MESSAGE_DELIMITER
public static final String PRIORITY_DELIMITER
public static final String NDC_DELIMITER
public LogFileParser(File file) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public LogFileParser(InputStream stream) throws IOException
IOException
public void parse(LogBrokerMonitor monitor) throws RuntimeException
monitor
- LogBrokerMonitorRuntimeException
public void run()
protected void displayError(String message)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.