Ice Reference Documentation
<<< Previous | Slice Documentation | Next >>>

# `IceGrid::NodeObserver`

## Overview

    interface NodeObserver

The node observer interface. Observers should implement this interface to receive information about the state of the IceGrid nodes.

### Operation Index

`init`

  The init method is called after the registration of the observer to communicate the current state of the node to the observer implementation.

`nodeDown`

  The nodeDown method is called to notify the observer that a node went down.

`nodeUp`

  The nodeUp method is called to notify the observer that a node came up.

`updateAdapter`

  The updateAdapter method is called to notify the observer that the state of an adapter changed.

`updateServer`

  The updateServer method is called to notify the observer that the state of a server changed.

## `init`

    [ "ami" ]
    void init(NodeDynamicInfoSeq nodes);

The init method is called after the registration of the observer to communicate the current state of the node to the observer implementation.

### Parameters

`nodes`

  The current state of the nodes.

## `nodeDown`

    void nodeDown(string name);

The nodeDown method is called to notify the observer that a node went down.

### Parameters

`name`

  The node name.

## `nodeUp`

    void nodeUp(NodeDynamicInfo node);

The nodeUp method is called to notify the observer that a node came up.

### Parameters

`node`

  The node state.

## `updateAdapter`

    void updateAdapter(string node,
        AdapterDynamicInfo updatedInfo);

The updateAdapter method is called to notify the observer that the state of an adapter changed.

### Parameters

`node`

  The node hosting the adapter.

`updatedInfo`

  The new adapter state.

## `updateServer`

    void updateServer(string node,
        ServerDynamicInfo updatedInfo);

The updateServer method is called to notify the observer that the state of a server changed.

### Parameters

`node`

  The node hosting the server.

`updatedInfo`

  The new server state.

<<< Previous | Home | Next >>>
`IceGrid::NodeNotExistException` | Up | `IceGrid::NodeUnreachableException`