- All Superinterfaces:
Object
Monitors changes to the state of the nodes.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::NodeObserver.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<OutgoingResponse>dispatch(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.static StringGets the type ID of the associated Slice interface.nodeDownAsync(String name, Current current) Notifies the observer that a node went down.nodeInitAsync(NodeDynamicInfo[] nodes, Current current) Provides the initial state of the nodes to the observer.nodeUpAsync(NodeDynamicInfo node, Current current) Notifies the observer that a node came up.updateAdapterAsync(String node, AdapterDynamicInfo updatedInfo, Current current) Notifies the observer that the state of an object adapter changed.updateServerAsync(String node, ServerDynamicInfo updatedInfo, Current current) Notifies the observer that the state of a server changed.
-
Method Details
-
nodeInitAsync
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
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
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
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::NodeObserver"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-