Interface ApplicationObserver

All Superinterfaces:
Object

public interface ApplicationObserver extends Object
Monitors applications.
  • Method Details

    • applicationInit

      void applicationInit(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.
    • applicationAdded

      void applicationAdded(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.
    • applicationRemoved

      void applicationRemoved(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.
    • applicationUpdated

      void applicationUpdated(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.
    • 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.