- All Superinterfaces:
Object
Monitors changes to the state of the nodes.
-
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 String
Gets the type ID of the associated Slice interface.void
Notifies the observer that a node went down.void
nodeInit
(NodeDynamicInfo[] nodes, Current current) Provides the initial state of the nodes to the observer.void
nodeUp
(NodeDynamicInfo node, Current current) Notifies the observer that a node came up.void
updateAdapter
(String node, AdapterDynamicInfo updatedInfo, Current current) Notifies the observer that the state of an object adapter changed.void
updateServer
(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:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-