Package com.zeroc.Ice

Class LogMessage

java.lang.Object
com.zeroc.Ice.LogMessage
All Implemented Interfaces:
Serializable, Cloneable

public final class LogMessage extends Object implements Cloneable, Serializable
Represents a full log message.
See Also:
  • Field Details

    • type

      public LogMessageType type
      The type of message sent to the RemoteLoggerPrx.
    • timestamp

      public long timestamp
      The date and time when the RemoteLoggerPrx received this message, expressed as the number of microseconds since the Unix Epoch (00:00:00 UTC on 1 January 1970).
    • traceCategory

      public String traceCategory
      For a message of type 'trace', the trace category of this log message; otherwise, the empty string.
    • message

      public String message
      The log message itself.
  • Constructor Details

    • LogMessage

      public LogMessage()
      Constructs a LogMessage.
    • LogMessage

      public LogMessage(LogMessageType type, long timestamp, String traceCategory, String message)
      Constructs a LogMessage with values for all its fields.
      Parameters:
      type - The type of message sent to the RemoteLoggerPrx.
      timestamp - The date and time when the RemoteLoggerPrx received this message, expressed as the number of microseconds since the Unix Epoch (00:00:00 UTC on 1 January 1970).
      traceCategory - For a message of type 'trace', the trace category of this log message; otherwise, the empty string.
      message - The log message itself.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public LogMessage clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

      public static void ice_write(OutputStream ostr, LogMessage v)
      Marshals a LogMessage into an output stream.
      Parameters:
      ostr - the output stream
      v - the LogMessage to marshal; can be null
    • ice_read

      public static LogMessage ice_read(InputStream istr)
      Unmarshals a LogMessage from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled LogMessage
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<LogMessage> v)
      Marshals an optional LogMessage into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, LogMessage v)
      Marshals an optional LogMessage into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<LogMessage> ice_read(InputStream istr, int tag)
      Unmarshals an optional LogMessage from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value