IceGrid::RegistryObserver

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

# `IceGrid::RegistryObserver`

## Overview

    interface RegistryObserver

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

### Operation Index

`init`

  The init operation is called after the registration of the observer to communicate the current state of the registry to the observer implementation.

`applicationAdded`

  The applicationAdded operation is called to notify the observer that an application was added.

`applicationRemoved`

  The applicationRemoved operation is called to notify the observer that an application was removed.

`applicationUpdated`

  The applicationUpdated operation is called to notify the observer that an application was updated.

`adapterAdded`

  The adapterAdded operation is called to notify the observer when a dynamically-registered adapter was added.

`adapterUpdated`

  The adapterUpdated operation is called to notify the observer when a dynamically-registered adapter was updated.

`adapterRemoved`

  The adapterRemoved operation is called to notify the observer when a dynamically-registered adapter was removed.

`objectAdded`

  The objectAdded operation is called to notify the observer when an object was added through the `Admin` interface.

`objectUpdated`

  The objectUpdated operation is called to notify the observer when an object registered through the `Admin` interface was updated.

`objectRemoved`

  The objectRemoved operation is called to notify the observer when an object registered through the `Admin` interface was removed.

## `init`

    [ "ami" ]
    void init(int serial,
        ApplicationDescriptorSeq applications,
        AdapterInfoSeq adpts,
        ObjectInfoSeq objects);

The init operation is called after the registration of the observer to communicate the current state of the registry to the observer implementation.

### Parameters

`serial`

  The current serial number of the registry database. This serial number allows observers to make sure that their internal state is synchronized with the registry.

`applications`

  The applications currently registered with the registry.

`adapters`

  The adapters that were dynamically registered with the registry (not through the deployment mechanism).

`objects`

  The objects registered with the `Admin` interface (not through the deployment mechanism).

## `applicationAdded`

    void applicationAdded(int serial,
        ApplicationDescriptor desc);

The applicationAdded operation is called to notify the observer that an application was added.

### Parameters

`serial`

  The new serial number of the registry database.

`desc`

  The descriptor of the new application.

## `applicationRemoved`

    void applicationRemoved(int serial,
        string name);

The applicationRemoved operation is called to notify the observer that an application was removed.

### Parameters

`serial`

  The new serial number of the registry database.

`name`

  The name of the application that was removed.

## `applicationUpdated`

    void applicationUpdated(int serial,
        ApplicationUpdateDescriptor desc);

The applicationUpdated operation is called to notify the observer that an application was updated.

### Parameters

`serial`

  The new serial number of the registry database.

`desc`

  The descriptor of the update.

## `adapterAdded`

    void adapterAdded(int serial,
        AdapterInfo info);

The adapterAdded operation is called to notify the observer when a dynamically-registered adapter was added.

## `adapterUpdated`

    void adapterUpdated(int serial,
        AdapterInfo info);

The adapterUpdated operation is called to notify the observer when a dynamically-registered adapter was updated.

## `adapterRemoved`

    void adapterRemoved(int serial,
        string id);

The adapterRemoved operation is called to notify the observer when a dynamically-registered adapter was removed.

## `objectAdded`

    void objectAdded(int serial,
        ObjectInfo info);

The objectAdded operation is called to notify the observer when an object was added through the `Admin` interface.

## `objectUpdated`

    void objectUpdated(int serial,
        ObjectInfo info);

The objectUpdated operation is called to notify the observer when an object registered through the `Admin` interface was updated.

## `objectRemoved`

    void objectRemoved(int serial,
        ::Ice::Identity id);

The objectRemoved operation is called to notify the observer when an object registered through the `Admin` interface was removed.

<<< Previous | Home | Next >>>
`IceGrid::Registry` | Up | `IceGrid::ReplicaGroupDescriptor`