Package org.opennms.util.ilr
Class BaseLogMessage
- java.lang.Object
-
- org.opennms.util.ilr.BaseLogMessage
-
- All Implemented Interfaces:
LogMessage
public class BaseLogMessage extends java.lang.Object implements LogMessage
LogMessage- Author:
- pdgrenon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseLogMessage.MsgType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseLogMessage
create(java.lang.String logMessage)
java.util.Date
getDate()
BaseLogMessage.MsgType
getMsgType()
java.lang.String
getServiceID()
java.lang.String
getThread()
boolean
is(BaseLogMessage.MsgType msgType)
boolean
isBeginMessage()
boolean
isCollectorBeginMessage()
boolean
isCollectorEndMessage()
boolean
isEndMessage()
boolean
isErrorMessage()
boolean
isPersistBeginMessage()
boolean
isPersistEndMessage()
boolean
isPersistMessage()
static java.util.Date
parseTimestamp(java.lang.String dateString)
-
-
-
Method Detail
-
parseTimestamp
public static java.util.Date parseTimestamp(java.lang.String dateString)
-
create
public static BaseLogMessage create(java.lang.String logMessage)
-
getDate
public java.util.Date getDate()
- Specified by:
getDate
in interfaceLogMessage
-
getThread
public java.lang.String getThread()
- Specified by:
getThread
in interfaceLogMessage
-
getMsgType
public BaseLogMessage.MsgType getMsgType()
-
getServiceID
public java.lang.String getServiceID()
- Specified by:
getServiceID
in interfaceLogMessage
-
is
public boolean is(BaseLogMessage.MsgType msgType)
-
isBeginMessage
public boolean isBeginMessage()
- Specified by:
isBeginMessage
in interfaceLogMessage
-
isCollectorBeginMessage
public boolean isCollectorBeginMessage()
- Specified by:
isCollectorBeginMessage
in interfaceLogMessage
-
isCollectorEndMessage
public boolean isCollectorEndMessage()
- Specified by:
isCollectorEndMessage
in interfaceLogMessage
-
isEndMessage
public boolean isEndMessage()
- Specified by:
isEndMessage
in interfaceLogMessage
-
isErrorMessage
public boolean isErrorMessage()
- Specified by:
isErrorMessage
in interfaceLogMessage
-
isPersistMessage
public boolean isPersistMessage()
- Specified by:
isPersistMessage
in interfaceLogMessage
-
isPersistBeginMessage
public boolean isPersistBeginMessage()
- Specified by:
isPersistBeginMessage
in interfaceLogMessage
-
isPersistEndMessage
public boolean isPersistEndMessage()
- Specified by:
isPersistEndMessage
in interfaceLogMessage
-
-