@zeroc/ice
    Preparing search index...

    Class ApplicationObserverAbstract

    Monitors applications.

    The Slice compiler generated this skeleton class from Slice interface ::IceGrid::ApplicationObserver.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Notifies the observer that an application was added.

      Parameters

      • serial: number

        The new serial number of the registry database.

      • desc: ApplicationInfo

        The descriptor of the new application.

      • current: Current

        The Current object for the dispatch.

      Returns void | PromiseLike<void>

      A promise like object representing the result of the dispatch.

    • Provides the initial application infos to the observer.

      Parameters

      • serial: number

        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: ApplicationInfo[]

        The applications currently registered with the registry.

      • current: Current

        The Current object for the dispatch.

      Returns void | PromiseLike<void>

      A promise like object representing the result of the dispatch.

    • Notifies the observer that an application was removed.

      Parameters

      • serial: number

        The new serial number of the registry database.

      • name: string

        The name of the application that was removed.

      • current: Current

        The Current object for the dispatch.

      Returns void | PromiseLike<void>

      A promise like object representing the result of the dispatch.

    • Notifies the observer that an application was updated.

      Parameters

      • serial: number

        The new serial number of the registry database.

      • desc: ApplicationUpdateInfo

        The descriptor of the update.

      • current: Current

        The Current object for the dispatch.

      Returns void | PromiseLike<void>

      A promise like object representing the result of the dispatch.

    • Dispatches an incoming request to one of the methods of this generated class, based on the operation name carried by the request.

      Parameters

      Returns OutgoingResponse | PromiseLike<OutgoingResponse>

      The outgoing response (when the selected method returns a value), or a promise with the outgoing response (when the selected method returns a promise).

      Ice marshals any exception thrown by this method into the response.

    • Returns the Slice type ID of the most-derived interface supported by this object.

      Parameters

      • current: Current

        The Current object for the invocation.

      Returns string | PromiseLike<string>

      The Slice type ID of the most-derived interface.

    • Returns the Slice type IDs of the interfaces supported by this object.

      Parameters

      • current: Current

        The Current object for the invocation.

      Returns string[] | PromiseLike<string[]>

      The Slice type IDs of the interfaces supported by this object, in alphabetical order.

    • Tests whether this object supports a specific Slice interface.

      Parameters

      • typeID: string

        The type ID of the Slice interface to test against.

      • current: Current

        The Current object for the invocation.

      Returns boolean | PromiseLike<boolean>

      True if this object has the interface specified by typeID or derives from the interface specified by typeID.

    • Tests whether this object can be reached.

      Parameters

      • current: Current

        The Current object for the invocation.

      Returns void | PromiseLike<void>

    • Obtains the Slice type ID of this type.

      Returns string

      The return value is always "::IceGrid::ApplicationObserver".