|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.events.EventLogMessage
This class is designed to encapsulate the logmsg element contained in the Event DTD. It contains the textual log message and the destination attribute value, as defined by the DTD.
Field Summary | |
static int |
LOGNDISPLAY
The log option for Logging the message and displaying the message in the event browser. |
static int |
LOGONLY
The log option for only writting the message to permanent storage. |
private int |
m_how
The log options |
private String |
m_message
The log message |
static int |
SUPPRESS
The log option for suppressing the event in both the permanent storage and the realtime console. |
Constructor Summary | |
EventLogMessage()
Constructs a new log message instance. |
|
EventLogMessage(EventLogMessage second)
Constructs a new instance with the same data as the passed instance. |
|
EventLogMessage(String message)
Constructs a new instance with the log message equal to the passed value and the log option equal to LOGNDISPLAY. |
|
EventLogMessage(String message,
int logopt)
Constructs a new instance with the specific message and log option. |
Method Summary | |
int |
getLogOption()
Returns the log option for this instance. |
String |
getMessage()
Returns the message text associated with this log message. |
(package private) void |
serializeToXML(PrintStream ps)
Writes self to event stream |
void |
set(String message,
int logopt)
Sets the message and log option for this object's instance. |
void |
setLogOption(int logopt)
Sets the log option for this instance. |
void |
setMessage(String message)
Sets the log message text. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int LOGNDISPLAY
public static final int LOGONLY
public static final int SUPPRESS
private int m_how
private String m_message
Constructor Detail |
public EventLogMessage()
public EventLogMessage(EventLogMessage second)
second
- The object to be copied into self.public EventLogMessage(String message)
message
- The message textLOGNDISPLAY
public EventLogMessage(String message, int logopt)
message
- The log message.logopt
- The log option.LOGNDISPLAY
,
LOGONLY
,
SUPPRESS
Method Detail |
void serializeToXML(PrintStream ps)
public int getLogOption()
public void setLogOption(int logopt)
logopt
- The log option.public String getMessage()
public void setMessage(String message)
message
- The new log message.public void set(String message, int logopt)
message
- The new message text.logopt
- The log option for this instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |