Table of Contents

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

name string

The node name.

current Current

The Current object for the dispatch.

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

nodes NodeDynamicInfo[]

The current state of the nodes.

current Current

The 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

node NodeDynamicInfo

The node state.

current Current

The 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

node string

The node hosting the adapter.

updatedInfo AdapterDynamicInfo

The new adapter state.

current Current

The 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

node string

The node hosting the server.

updatedInfo ServerDynamicInfo

The new server state.

current Current

The Current object for the dispatch.

Returns

Task

A task that represents the asynchronous operation.