Interface NodeObserver

All Superinterfaces:
Object

public interface NodeObserver extends Object
Monitors changes to the state of the nodes.
  • Method Details

    • nodeInit

      void nodeInit(NodeDynamicInfo[] nodes, Current current)
      Provides the initial state of the nodes to the observer.
      Parameters:
      nodes - The current state of the nodes.
      current - The Current object of the incoming request.
    • nodeUp

      void nodeUp(NodeDynamicInfo node, Current current)
      Notifies the observer that a node came up.
      Parameters:
      node - The node state.
      current - The Current object of the incoming request.
    • nodeDown

      void nodeDown(String name, Current current)
      Notifies the observer that a node went down.
      Parameters:
      name - The node name.
      current - The Current object of the incoming request.
    • updateServer

      void updateServer(String node, ServerDynamicInfo updatedInfo, Current current)
      Notifies the observer that the state of a server changed.
      Parameters:
      node - The node hosting the server.
      updatedInfo - The new server state.
      current - The Current object of the incoming request.
    • updateAdapter

      void updateAdapter(String node, AdapterDynamicInfo updatedInfo, Current current)
      Notifies the observer that the state of an object adapter changed.
      Parameters:
      node - The node hosting the adapter.
      updatedInfo - The new adapter state.
      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::NodeObserver"
    • 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.