- 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.voidNotifies the observer that a node went down.voidnodeInit(NodeDynamicInfo[] nodes, Current current) Provides the initial state of the nodes to the observer.voidnodeUp(NodeDynamicInfo node, Current current) Notifies the observer that a node came up.voidupdateAdapter(String node, AdapterDynamicInfo updatedInfo, Current current) Notifies the observer that the state of an object adapter changed.voidupdateServer(String node, ServerDynamicInfo updatedInfo, Current current) Notifies the observer that the state of a server changed.
-
Method Details
-
nodeInit
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
Notifies the observer that a node came up.- Parameters:
node- The node state.current- the Current object of the incoming request
-
nodeDown
Notifies the observer that a node went down.- Parameters:
name- The node name.current- the Current object of the incoming request
-
updateServer
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
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
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.
-