Package com.zeroc.Ice
Interface LoggerAdmin
- All Superinterfaces:
Object
The interface of the admin object that allows an Ice application the attach its
RemoteLogger
to the Logger
of this admin object's 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 a RemoteLogger object to the local logger.boolean
detachRemoteLogger
(RemoteLoggerPrx prx, Current current) Detaches a RemoteLogger object from the local logger.getLog
(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) Retrieves log messages recently logged.default String
Returns the Slice type ID of the most-derived interface supported by this object.default String[]
Returns the Slice type IDs of the interfaces supported by this object.static String
Returns the Slice type ID of the interface supported by this object.Methods inherited from interface com.zeroc.Ice.Object
ice_dispatch, ice_isA, ice_ping
-
Method Details
-
attachRemoteLogger
void attachRemoteLogger(RemoteLoggerPrx prx, LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) throws RemoteLoggerAlreadyAttachedException Attaches a RemoteLogger object to the local logger. attachRemoteLogger calls init on the provided RemoteLogger proxy.- 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 if messageTypes 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 to init. A negative value requests all messages available.current
- The Current object for the invocation.- Throws:
RemoteLoggerAlreadyAttachedException
- Raised if this remote logger is already attached to this admin object.
-
detachRemoteLogger
Detaches a RemoteLogger object from the local logger.- Parameters:
prx
- A proxy to the remote logger.current
- The Current object for the invocation.- Returns:
- True if the provided remote logger proxy was detached, and false otherwise.
-
getLog
LoggerAdmin.GetLogResult getLog(LogMessageType[] messageTypes, String[] traceCategories, int messageMax, Current current) Retrieves log messages recently logged.- 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 if messageTypes 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 for the invocation.- Returns:
- An instance of LoggerAdmin.GetLogResult.
-
ice_ids
Description copied from interface:Object
Returns the Slice type IDs of the interfaces supported by this object. -
ice_id
Description copied from interface:Object
Returns the Slice type ID of the most-derived interface supported by this object. -
ice_staticId
Description copied from interface:Object
Returns the Slice type ID of the interface supported by this object.- Returns:
- The return value is always ::Ice::Object.
-