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 java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SyslogParser(SyslogdConfig config, java.nio.ByteBuffer text)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
find()
protected static java.lang.String
fromByteBuffer(java.nio.ByteBuffer buffer)
protected SyslogdConfig
getConfig()
protected java.util.regex.Matcher
getMatcher()
static SyslogParser
getParserInstance(SyslogdConfig config, java.nio.ByteBuffer text)
protected java.util.regex.Pattern
getPattern()
protected java.nio.ByteBuffer
getText()
protected java.lang.Boolean
matched()
boolean
matches()
protected SyslogMessage
parse()
protected java.util.Date
parseDate(java.lang.String dateString)
protected boolean
traceEnabled()
-
-
-
Constructor Detail
-
SyslogParser
protected SyslogParser(SyslogdConfig config, java.nio.ByteBuffer text)
-
-
Method Detail
-
getParserInstance
public static SyslogParser getParserInstance(SyslogdConfig config, java.nio.ByteBuffer text) throws MessageDiscardedException
- Throws:
MessageDiscardedException
-
fromByteBuffer
protected static java.lang.String fromByteBuffer(java.nio.ByteBuffer buffer)
-
find
public boolean find()
-
matches
public boolean matches()
-
matched
protected java.lang.Boolean matched()
-
getConfig
protected SyslogdConfig getConfig()
-
getText
protected java.nio.ByteBuffer getText()
-
traceEnabled
protected boolean traceEnabled()
-
getPattern
protected java.util.regex.Pattern getPattern()
-
parse
protected SyslogMessage parse() throws SyslogParserException
- Throws:
SyslogParserException
-
getMatcher
protected java.util.regex.Matcher getMatcher()
-
parseDate
protected java.util.Date parseDate(java.lang.String dateString)
-
-