java.lang.Object
com.zeroc.Ice.LogMessage
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a full log message.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe log message itself.long
The date and time when theRemoteLoggerPrx
received this message, expressed as the number of microseconds since the Unix Epoch (00:00:00 UTC on 1 January 1970).For a message of type 'trace', the trace category of this log message; otherwise, the empty string.The type of message sent to theRemoteLoggerPrx
. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aLogMessage
.LogMessage
(LogMessageType type, long timestamp, String traceCategory, String message) Constructs aLogMessage
with values for all its fields. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
static LogMessage
ice_read
(InputStream istr) Unmarshals aLogMessage
from an input stream.static Optional<LogMessage>
ice_read
(InputStream istr, int tag) Unmarshals an optionalLogMessage
from an input stream.void
ice_readMembers
(InputStream istr) Unmarshals and sets this object's fields from an input stream.static void
ice_write
(OutputStream ostr, int tag, LogMessage v) Marshals an optionalLogMessage
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<LogMessage> v) Marshals an optionalLogMessage
into an output stream.static void
ice_write
(OutputStream ostr, LogMessage v) Marshals aLogMessage
into an output stream.void
ice_writeMembers
(OutputStream ostr) Marshals this object's fields into an output stream.
-
Field Details
-
type
The type of message sent to theRemoteLoggerPrx
. -
timestamp
public long timestampThe date and time when theRemoteLoggerPrx
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.
-
-
Constructor Details
-
LogMessage
public LogMessage()Constructs aLogMessage
. -
LogMessage
Constructs aLogMessage
with values for all its fields.- Parameters:
type
- The type of message sent to theRemoteLoggerPrx
.timestamp
- The date and time when theRemoteLoggerPrx
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
-
hashCode
public int hashCode() -
clone
-
ice_writeMembers
Marshals this object's fields into an output stream.- Parameters:
ostr
- the output stream
-
ice_readMembers
Unmarshals and sets this object's fields from an input stream.- Parameters:
istr
- the input stream
-
ice_write
Marshals aLogMessage
into an output stream.- Parameters:
ostr
- the output streamv
- theLogMessage
to marshal; can be null
-
ice_read
Unmarshals aLogMessage
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
LogMessage
-
ice_write
Marshals an optionalLogMessage
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalLogMessage
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalLogMessage
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-