- 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 TypeMethodDescriptionapplicationAddedAsync(int serial, ApplicationInfo desc, Current current) Notifies the observer that an application was added.applicationInitAsync(int serial, List<ApplicationInfo> applications, Current current) Provides the initial application infos to the observer.applicationRemovedAsync(int serial, String name, Current current) Notifies the observer that an application was removed.applicationUpdatedAsync(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
-
applicationInitAsync
CompletionStage<Void> applicationInitAsync(int serial, List<ApplicationInfo> applications, Current current) 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- Returns:
- a completion stage that the servant will complete when the invocation completes
-
applicationAddedAsync
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- Returns:
- a completion stage that the servant will complete when the invocation completes
-
applicationRemovedAsync
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- Returns:
- a completion stage that the servant will complete when the invocation completes
-
applicationUpdatedAsync
CompletionStage<Void> applicationUpdatedAsync(int serial, ApplicationUpdateInfo desc, Current current) 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- Returns:
- a completion stage that the servant will complete when the invocation completes
-
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.
-