com.virtualweaver.xotics.datamodel
Class XoLogMessageBuffer.XoLogMessage

java.lang.Object
  extended bycom.virtualweaver.xotics.datamodel.XoLogMessageBuffer.XoLogMessage
Enclosing class:
XoLogMessageBuffer

public static class XoLogMessageBuffer.XoLogMessage
extends java.lang.Object

Class representing a Xotics log message.


Constructor Summary
XoLogMessageBuffer.XoLogMessage(byte t, java.lang.String msg)
          Constructor of a new log message
 
Method Summary
 java.lang.String getMessage()
          Gets the message string
 long getMilestoneMillis()
          the system time in millis to keep trace when was created this message
 boolean isError()
          Tells if message type is an ERROR message
 boolean isInfo()
          Tells if message type is an INFO message
 boolean isWarning()
          Tells if message type is a WARNING message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XoLogMessageBuffer.XoLogMessage

public XoLogMessageBuffer.XoLogMessage(byte t,
                                       java.lang.String msg)
Constructor of a new log message

Parameters:
t - level of log message (INFO, WARNING, ERROR)
msg - the message string
Method Detail

getMilestoneMillis

public long getMilestoneMillis()
the system time in millis to keep trace when was created this message

Returns:
the creation date in System millis

getMessage

public java.lang.String getMessage()
Gets the message string

Returns:
the message string

isError

public boolean isError()
Tells if message type is an ERROR message

Returns:
true if this is an ERROR

isInfo

public boolean isInfo()
Tells if message type is an INFO message

Returns:
true if this is an INFO

isWarning

public boolean isWarning()
Tells if message type is a WARNING message

Returns:
true if this is a WARNING