- All Superinterfaces:
Object
Represents the admin facet that allows an Ice application to attach its
RemoteLoggerPrx to the local
logger of an Ice communicator.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::Ice::LoggerAdmin.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptionattachRemoteLoggerAsync(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) Attaches aRemoteLoggerPrxobject to the local logger.detachRemoteLoggerAsync(RemoteLoggerPrx prx, Current current) Detaches aRemoteLoggerPrxobject from the local logger.default 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.getLogAsync(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) Retrieves recently logged log messages.static StringGets the type ID of the associated Slice interface.
-
Method Details
-
attachRemoteLoggerAsync
CompletionStage<Void> attachRemoteLoggerAsync(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) throws RemoteLoggerAlreadyAttachedException Attaches aRemoteLoggerPrxobject to the local logger. This operation callsRemoteLoggerPrx.init(java.lang.String, com.zeroc.Ice.LogMessage[])onprx.- Parameters:
prx- A proxy to the remote logger.messageTypes- The list of message types that the remote logger wishes to receive. An empty list means no filtering (send all message types).traceCategories- The categories of traces that the remote logger wishes to receive. This parameter is ignored ifmessageTypesis not empty and does not include trace. An empty list means no filtering (send all trace categories).messageMax- The maximum number of log messages (of all types) to be provided toRemoteLoggerPrx.init(java.lang.String, com.zeroc.Ice.LogMessage[]). A negative value requests all messages available.current- the Current object of the incoming request- Returns:
- a completion stage that the servant will complete when the invocation completes
- Throws:
RemoteLoggerAlreadyAttachedException- Thrown if this remote logger is already attached to this admin object.
-
detachRemoteLoggerAsync
Detaches aRemoteLoggerPrxobject from the local logger.- Parameters:
prx- A proxy to the remote logger.current- the Current object of the incoming request- Returns:
trueif the provided remote logger proxy was detached, andfalseotherwise.
-
getLogAsync
CompletionStage<LoggerAdmin.GetLogResult> getLogAsync(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) Retrieves recently logged log messages.- Parameters:
messageTypes- The list of message types that the caller wishes to receive. An empty list means no filtering (send all message types).traceCategories- The categories of traces that caller wish to receive. This parameter is ignored ifmessageTypesis not empty and does not include trace. An empty list means no filtering (send all trace categories).messageMax- The maximum number of log messages (of all types) to be returned. A negative value requests all messages available.current- the Current object of the incoming request- Returns:
- a completion stage that the servant will complete with an instance of LoggerAdmin.GetLogResult
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::Ice::LoggerAdmin"
-
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.
-