Interface AsyncApplicationObserver

All Superinterfaces:
Object

public interface AsyncApplicationObserver extends Object
Monitors applications.

Remarks: The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::ApplicationObserver.

  • 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

      CompletionStage<Void> applicationAddedAsync(int serial, ApplicationInfo desc, Current current)
      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

      CompletionStage<Void> applicationRemovedAsync(int serial, String name, Current current)
      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

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::ApplicationObserver"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      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 interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.