Package org.opennms.netmgt.syslogd
Class SyslogParser
- java.lang.Object
-
- org.opennms.netmgt.syslogd.SyslogParser
-
- Direct Known Subclasses:
CustomSyslogParser
,JuniperSyslogParser
,RadixTreeSyslogParser
,Rfc5424SyslogParser
,SyslogNGParser
public class SyslogParser extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SyslogParser(SyslogdConfig config, ByteBuffer text)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
find()
protected static String
fromByteBuffer(ByteBuffer buffer)
protected SyslogdConfig
getConfig()
protected Matcher
getMatcher()
static SyslogParser
getParserInstance(SyslogdConfig config, ByteBuffer text)
protected Pattern
getPattern()
protected ByteBuffer
getText()
protected Boolean
matched()
boolean
matches()
protected SyslogMessage
parse()
protected Date
parseDate(String dateString)
protected boolean
traceEnabled()
-
-
-
Constructor Detail
-
SyslogParser
protected SyslogParser(SyslogdConfig config, ByteBuffer text)
-
-
Method Detail
-
getParserInstance
public static SyslogParser getParserInstance(SyslogdConfig config, ByteBuffer text) throws MessageDiscardedException
- Throws:
MessageDiscardedException
-
fromByteBuffer
protected static String fromByteBuffer(ByteBuffer buffer)
-
find
public boolean find()
-
matches
public boolean matches()
-
matched
protected Boolean matched()
-
getConfig
protected SyslogdConfig getConfig()
-
getText
protected ByteBuffer getText()
-
traceEnabled
protected boolean traceEnabled()
-
getPattern
protected Pattern getPattern()
-
parse
protected SyslogMessage parse() throws SyslogParserException
- Throws:
SyslogParserException
-
getMatcher
protected Matcher getMatcher()
-
-