Interface RegistryObserver

All Superinterfaces:
Object

public interface RegistryObserver extends Object
Monitors changes to the state of the registries.
  • Method Details

    • registryInit

      void registryInit(RegistryInfo[] registries, Current current)
      Provides the initial state of the registries to the observer.
      Parameters:
      registries - The current state of the registries.
      current - The Current object of the incoming request.
    • registryUp

      void registryUp(RegistryInfo registryReplica, Current current)
      Notifies the observer that a registry replica came up.
      Parameters:
      registryReplica - The registry state.
      current - The Current object of the incoming request.
    • registryDown

      void registryDown(String name, Current current)
      Notifies the observer that a registry replica went down.
      Parameters:
      name - The registry name.
      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::RegistryObserver"
    • 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.