- All Superinterfaces:
Object
Represents the admin facet that allows an Ice application to attach its
RemoteLoggerPrx
to the local
logger of an Ice communicator.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Holds the result of operation getLog.Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachRemoteLogger
(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) Attaches aRemoteLoggerPrx
object to the local logger.boolean
detachRemoteLogger
(RemoteLoggerPrx prx, Current current) Detaches aRemoteLoggerPrx
object 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.getLog
(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) Retrieves recently logged log messages.static String
Gets the type ID of the associated Slice interface.
-
Method Details
-
attachRemoteLogger
void attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) throws RemoteLoggerAlreadyAttachedException Attaches aRemoteLoggerPrx
object 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 ifmessageTypes
is 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.- Throws:
RemoteLoggerAlreadyAttachedException
- Thrown if this remote logger is already attached to this admin object.
-
detachRemoteLogger
Detaches aRemoteLoggerPrx
object from the local logger.- Parameters:
prx
- A proxy to the remote logger.current
- The Current object of the incoming request.- Returns:
true
if the provided remote logger proxy was detached, andfalse
otherwise.
-
getLog
LoggerAdmin.GetLogResult getLog(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 ifmessageTypes
is 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:
- 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:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-