Interface AsyncNodeObserver
- Namespace
- IceGrid
- Assembly
- IceGrid.dll
Monitors changes to the state of the nodes.
[SliceTypeId("::IceGrid::NodeObserver")]
public interface AsyncNodeObserver : Object
- Inherited Members
Remarks
The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::NodeObserver.
This Async interface maps each Slice operation to an asynchronous method that returns a Task. Your servant class implements this interface by deriving fromAsyncNodeObserverDisp_ or from the Disp_ class for a derived interface.
Methods
nodeDownAsync(string, Current)
Notifies the observer that a node went down.
Task nodeDownAsync(string name, Current current)
Parameters
Returns
- Task
A task that represents the asynchronous operation.
nodeInitAsync(NodeDynamicInfo[], Current)
Provides the initial state of the nodes to the observer.
Task nodeInitAsync(NodeDynamicInfo[] nodes, Current current)
Parameters
nodesNodeDynamicInfo[]The current state of the nodes.
currentCurrentThe Current object for the dispatch.
Returns
- Task
A task that represents the asynchronous operation.
nodeUpAsync(NodeDynamicInfo, Current)
Notifies the observer that a node came up.
Task nodeUpAsync(NodeDynamicInfo node, Current current)
Parameters
nodeNodeDynamicInfoThe node state.
currentCurrentThe Current object for the dispatch.
Returns
- Task
A task that represents the asynchronous operation.
updateAdapterAsync(string, AdapterDynamicInfo, Current)
Notifies the observer that the state of an object adapter changed.
Task updateAdapterAsync(string node, AdapterDynamicInfo updatedInfo, Current current)
Parameters
nodestringThe node hosting the adapter.
updatedInfoAdapterDynamicInfoThe new adapter state.
currentCurrentThe Current object for the dispatch.
Returns
- Task
A task that represents the asynchronous operation.
updateServerAsync(string, ServerDynamicInfo, Current)
Notifies the observer that the state of a server changed.
Task updateServerAsync(string node, ServerDynamicInfo updatedInfo, Current current)
Parameters
nodestringThe node hosting the server.
updatedInfoServerDynamicInfoThe new server state.
currentCurrentThe Current object for the dispatch.
Returns
- Task
A task that represents the asynchronous operation.