Package org.opennms.util.ilr
Class BaseLogMessage
- java.lang.Object
-
- org.opennms.util.ilr.BaseLogMessage
-
- All Implemented Interfaces:
LogMessage
public class BaseLogMessage extends 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(String logMessage)
Date
getDate()
BaseLogMessage.MsgType
getMsgType()
String
getServiceID()
String
getThread()
boolean
is(BaseLogMessage.MsgType msgType)
boolean
isBeginMessage()
boolean
isCollectorBeginMessage()
boolean
isCollectorEndMessage()
boolean
isEndMessage()
boolean
isErrorMessage()
boolean
isPersistBeginMessage()
boolean
isPersistEndMessage()
boolean
isPersistMessage()
static Date
parseTimestamp(String dateString)
-
-
-
Method Detail
-
create
public static BaseLogMessage create(String logMessage)
-
getDate
public Date getDate()
- Specified by:
getDate
in interfaceLogMessage
-
getThread
public String getThread()
- Specified by:
getThread
in interfaceLogMessage
-
getMsgType
public BaseLogMessage.MsgType getMsgType()
-
getServiceID
public 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
-
-