- All Superinterfaces:
Object
Monitors applications.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::ApplicationObserver.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptionvoidapplicationAdded(int serial, ApplicationInfo desc, Current current) Notifies the observer that an application was added.voidapplicationInit(int serial, List<ApplicationInfo> applications, Current current) Provides the initial application infos to the observer.voidapplicationRemoved(int serial, String name, Current current) Notifies the observer that an application was removed.voidapplicationUpdated(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 StringGets 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:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-