|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.monitor.MachineMonitorEvent org.echarts.servlet.sip.SipMessageEvent
public class SipMessageEvent
Monitor event corresponding to SIP message I/O.
Field Summary |
---|
Fields inherited from class org.echarts.monitor.MachineMonitorEvent |
---|
hostIpAddress, properties, timestamp |
Method Summary | |
---|---|
java.lang.String |
toString()
Separate fields with tabs. |
Methods inherited from class org.echarts.monitor.MachineMonitorEvent |
---|
getClassString, getHostAddress, getPropertiesString, getSortedKeys, readExternal, readRaw, replaceChar, writeExternal, writeRaw |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String toString()
MachineMonitorEvent
formattedTimestamp "\t" timestamp "\t" IPaddressOfEventCreatorHost "\t" eventClassName "\t" propName1={value1} "\t" propName2={value2} "\t" ...
Property values are formatted by replacing the certain characters with substrings as follows:
-------------------------- Character Substitution -------------------------- '\n''\r' '\t' '{' '}' --------------------------
Newlines (or '\r\n' pairs) must be replaced because the log entry must be contained within a single record in the file. Tabs are field separators, hence, embedded tab characters must be substituted. Curly braces are used to denote the start and end of a property value, and therefore they must be substituted if they should occur with a property value.
Most property values will not need any reformatting, and for those that do, it will be most likely just '\n' or '\r\n'.
Should the IP Address of the host that created the event not be available, then the placeholder string, "<host unknown>" will appear instead.
toString
in class MachineMonitorEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |