- All Superinterfaces:
Object
Monitors applications.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applicationAdded
(int serial, ApplicationInfo desc, Current current) Notifies the observer that an application was added.void
applicationInit
(int serial, List<ApplicationInfo> applications, Current current) Provides the initial application infos to the observer.void
applicationRemoved
(int serial, String name, Current current) Notifies the observer that an application was removed.void
applicationUpdated
(int serial, ApplicationUpdateInfo desc, Current current) Notifies the observer that an application was updated.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.static String
Gets the type ID of the associated Slice interface.
-
Method Details
-
applicationInit
Provides the initial application infos to the observer.- Parameters:
serial
- The current serial number of the registry database. This serial number allows observers to make sure that their internal state is synchronized with the registry.applications
- The applications currently registered with the registry.current
- The Current object of the incoming request.
-
applicationAdded
Notifies the observer that an application was added.- Parameters:
serial
- The new serial number of the registry database.desc
- The descriptor of the new application.current
- The Current object of the incoming request.
-
applicationRemoved
Notifies the observer that an application was removed.- Parameters:
serial
- The new serial number of the registry database.name
- The name of the application that was removed.current
- The Current object of the incoming request.
-
applicationUpdated
Notifies the observer that an application was updated.- Parameters:
serial
- The new serial number of the registry database.desc
- The descriptor of the update.current
- The Current object of the incoming request.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::ApplicationObserver"
-
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.
-