java.lang.Object
com.zeroc.Ice.LogMessage
- All Implemented Interfaces:
Serializable,Cloneable
Represents a full log message.
Remarks:
The Slice compiler generated this class from Slice struct ::Ice::LogMessage.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe log message itself.longThe date and time when theRemoteLoggerPrxreceived 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 aLogMessagewith values for all its fields. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleaninthashCode()static LogMessageice_read(InputStream istr) Unmarshals aLogMessagefrom an input stream.static Optional<LogMessage>ice_read(InputStream istr, int tag) Unmarshals an optionalLogMessagefrom an input stream.voidice_readMembers(InputStream istr) Unmarshals and sets this object's fields from an input stream.static voidice_write(OutputStream ostr, int tag, LogMessage v) Marshals an optionalLogMessageinto an output stream.static voidice_write(OutputStream ostr, int tag, Optional<LogMessage> v) Marshals an optionalLogMessageinto an output stream.static voidice_write(OutputStream ostr, LogMessage v) Marshals aLogMessageinto an output stream.voidice_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 theRemoteLoggerPrxreceived 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 aLogMessagewith values for all its fields.- Parameters:
type- The type of message sent to theRemoteLoggerPrx.timestamp- The date and time when theRemoteLoggerPrxreceived 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 aLogMessageinto an output stream.- Parameters:
ostr- the output streamv- theLogMessageto marshal
-
ice_read
Unmarshals aLogMessagefrom an input stream.- Parameters:
istr- the input stream- Returns:
- the unmarshaled
LogMessage
-
ice_write
Marshals an optionalLogMessageinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_write
Marshals an optionalLogMessageinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_read
Unmarshals an optionalLogMessagefrom an input stream.- Parameters:
istr- the input streamtag- the tag- Returns:
- the unmarshaled value
-