Interface AsyncNodeObserver

All Superinterfaces:
Object

public interface AsyncNodeObserver extends Object
Monitors changes to the state of the nodes.

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

  • Method Details

    • nodeInitAsync

      CompletionStage<Void> nodeInitAsync(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
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • nodeUpAsync

      CompletionStage<Void> nodeUpAsync(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
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • nodeDownAsync

      CompletionStage<Void> nodeDownAsync(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
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • updateServerAsync

      CompletionStage<Void> updateServerAsync(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
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • updateAdapterAsync

      CompletionStage<Void> updateAdapterAsync(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
      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::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.