- All Superinterfaces:
Object
Receives the log messages sent by the Logger admin facet of a communicator.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::Ice::RemoteLogger.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<OutgoingResponse>dispatch(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.static StringGets the type ID of the associated Slice interface.initAsync(String prefix, LogMessage[] logMessages, Current current) Initializes this remote logger with the prefix and the most recent log messages of the logger of the communicator that hosts the Logger admin facet.logAsync(LogMessage message, Current current) Receives a log message that matches the filters given toLoggerAdminPrx.attachRemoteLogger(com.zeroc.Ice.RemoteLoggerPrx, com.zeroc.Ice.LogMessageType[], java.lang.String[], int).
-
Method Details
-
initAsync
Initializes this remote logger with the prefix and the most recent log messages of the logger of the communicator that hosts the Logger admin facet. This facet calls this operation once, afterLoggerAdminPrx.attachRemoteLogger(com.zeroc.Ice.RemoteLoggerPrx, com.zeroc.Ice.LogMessageType[], java.lang.String[], int)attaches this remote logger.- Parameters:
prefix- The prefix of that logger.logMessages- The most recent log messages cached by the Logger admin facet that match the filters given toLoggerAdminPrx.attachRemoteLogger(com.zeroc.Ice.RemoteLoggerPrx, com.zeroc.Ice.LogMessageType[], java.lang.String[], int), oldest first, up to itsmessageMax. This sequence is empty whenmessageMaxis 0.current- the Current object of the incoming request- Returns:
- a completion stage that the servant will complete when the invocation completes
-
logAsync
Receives a log message that matches the filters given toLoggerAdminPrx.attachRemoteLogger(com.zeroc.Ice.RemoteLoggerPrx, com.zeroc.Ice.LogMessageType[], java.lang.String[], int).Remarks: The Logger admin facet can call
RemoteLoggerPrx.log(com.zeroc.Ice.LogMessage)beforeRemoteLoggerPrx.init(java.lang.String, com.zeroc.Ice.LogMessage[]), even though the log messages passed toRemoteLoggerPrx.init(java.lang.String, com.zeroc.Ice.LogMessage[])are older.- Parameters:
message- The log message.current- the Current object of the incoming request- Returns:
- a completion stage that the servant will complete when the invocation completes
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::Ice::RemoteLogger"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-