@zeroc/ice
    Preparing search index...

    Class AdminPrx

    Provides administrative access to an IceGrid deployment.

    The Slice compiler generated this proxy class from Slice interface ::IceGrid::Admin.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    • Constructs a new AdminPrx proxy.

      Parameters

      • communicator: Communicator

        The communicator for the new proxy.

      • proxyString: string

        The string representation of the proxy.

      Returns AdminPrx

      The new AdminPrx proxy.

      ParseException - Thrown if the proxyString is not a valid proxy string.

    Methods

    • Adds an object to the object registry. IceGrid gets the object type by calling ice_id on obj. The object must be reachable.

      Parameters

      • obj: ObjectPrx

        A proxy to the object. This proxy is never null.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.DeploymentException Thrown when the object can't be added.

      IceGrid.ObjectExistsException Thrown when the object is already registered.

    • Adds an object to the object registry and explicitly specifies its type.

      Parameters

      • obj: ObjectPrx

        The object to be added to the registry. The proxy is never null.

      • type: string

        The type name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.DeploymentException Thrown when the application deployment failed.

      IceGrid.ObjectExistsException Thrown when the object is already registered.

    • Enables or disables a server. A disabled server can't be started on demand or administratively. The enable state of the server is not persistent: if the node is shut down and restarted, the server will be enabled by default.

      Parameters

      • id: string

        The server ID.

      • enabled: boolean

        true to enable the server, false to disable it.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.DeploymentException Thrown when the deployment of the server failed.

      IceGrid.NodeUnreachableException Thrown when the node is unreachable.

      IceGrid.ServerNotExistException Thrown when the server doesn't exist.

    • Checks whether the specified object is equal to this object.

      Parameters

      Returns boolean

      true if the specified object is equal to this object, false otherwise.

    • Gets adapter information for the replica group or adapter with the given ID.

      Parameters

      • id: string

        The adapter or replica group ID.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<AdapterInfo[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • IceGrid.AdapterInfo[] : A sequence of AdapterInfo. If id refers to an adapter, this sequence contains a single element. If id refers to a replica group, this sequence contains adapter information for each member of the replica group.

      IceGrid.AdapterNotExistException Thrown when the adapter or replica group doesn't exist.

    • Gets the IDs of all adapters registered with IceGrid.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<string[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • string[] : The adapter IDs.
    • Gets all the IceGrid applications currently registered.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<string[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • string[] : The application names.
    • Gets the names of all IceGrid nodes currently registered.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<string[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • string[] : The node names.
    • Gets the object info of all the registered objects whose stringified identities match the given expression.

      Parameters

      • expr: string

        The expression to match against the stringified identities of registered objects. The expression may contain a trailing wildcard (*) character.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<ObjectInfo[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • IceGrid.ObjectInfo[] : All the object infos with a stringified identity matching the given expression.
    • Gets the names of all the IceGrid registries currently registered.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<string[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • string[] : The registry names.
    • Gets the IDs of all the servers registered with IceGrid.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<string[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • string[] : The server IDs.
    • Gets an application descriptor.

      Parameters

      • name: string

        The application name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<ApplicationInfo>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • IceGrid.ApplicationInfo : The application descriptor.

      IceGrid.ApplicationNotExistException Thrown when the application doesn't exist.

    • Gets the default application descriptor.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<ApplicationDescriptor>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • IceGrid.ApplicationDescriptor : The default application descriptor.

      IceGrid.DeploymentException Thrown when the default application descriptor is invalid or unreachable.

    • Gets a proxy to the admin object of an IceGrid node.

      Parameters

      • name: string

        The IceGrid node name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<ObjectPrx>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • Ice.ObjectPrx | null : A proxy to the IceGrid node's admin object. This proxy is never null.

      IceGrid.NodeNotExistException Thrown when the node doesn't exist.

      IceGrid.NodeUnreachableException Thrown when the node is unreachable.

    • Get the hostname of a node.

      Parameters

      • name: string

        The node name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<string>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • string : The node hostname.

      IceGrid.NodeNotExistException Thrown when the node doesn't exist.

      IceGrid.NodeUnreachableException Thrown when the node is unreachable.

    • Gets the number of physical processor sockets in the computer where an IceGrid node is deployed. Note that this operation returns 1 on operating systems where this can't be automatically determined and where the IceGrid.Node.ProcessorSocketCount property for the node is not set.

      Parameters

      • name: string

        The node name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<number>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • number : The number of processor sockets or 1 if the number of sockets can't be determined.

      IceGrid.NodeNotExistException Thrown when the node doesn't exist.

      IceGrid.NodeUnreachableException Thrown when the node is unreachable.

    • Gets the object info of all the registered objects with a given type.

      Parameters

      • type: string

        The type name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<ObjectInfo[]>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • IceGrid.ObjectInfo[] : The object infos.
    • Gets a proxy to the admin object of an IceGrid registry.

      Parameters

      • name: string

        The registry name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<ObjectPrx>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • Ice.ObjectPrx | null : A proxy to the admin object of an IceGrid registry. This proxy is never null.

      IceGrid.RegistryNotExistException Thrown when the registry doesn't exist.

    • Gets the category for server admin objects. You can manufacture a server admin proxy from the admin proxy by changing its identity: use the server ID as name and the returned category as category.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<string>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • string : The category for server admin objects.
    • Gets information about a server.

      Parameters

      • id: string

        The server ID.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<ServerInfo>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • IceGrid.ServerInfo : The server information.

      IceGrid.ServerNotExistException Thrown when the server doesn't exist.

    • Gets the system process ID of a server. The process ID is operating system dependent.

      Parameters

      • id: string

        The server ID.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<number>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • number : The process ID.

      IceGrid.DeploymentException Thrown when the deployment of the server failed.

      IceGrid.NodeUnreachableException Thrown when the node is unreachable.

      IceGrid.ServerNotExistException Thrown when the server doesn't exist.

    • Creates a proxy that is identical to this proxy, except for the adapter ID.

      Parameters

      • id: string

        The adapter ID for the new proxy.

      Returns this

      A proxy with the new adapter ID.

    • Creates a proxy that is identical to this proxy, but uses batch oneway invocations.

      Returns this

      A proxy that uses batch oneway invocations.

    • Creates a proxy that is identical to this proxy, except for connection caching.

      Parameters

      • cache: boolean

        true if the new proxy should cache connections, false otherwise.

      Returns this

      A proxy with the specified caching policy.

    • Creates a proxy that is identical to this proxy, except for its connection ID.

      Parameters

      • connectionId: string

        The connection ID for the new proxy. An empty string removes the connection ID.

      Returns this

      A proxy with the specified connection ID.

    • Creates a proxy that is identical to this proxy, except for the per-proxy context.

      Parameters

      • context: Map<string, string>

        The context for the new proxy.

      Returns this

      A proxy with the new per-proxy context.

    • Creates a proxy that is identical to this proxy, except for the encoding used to marshal parameters.

      Parameters

      • version: EncodingVersion

        The encoding version to use to marshal request parameters.

      Returns this

      A proxy with the specified encoding version.

    • Creates a proxy that is identical to this proxy, except for the endpoints.

      Parameters

      • endpoints: Endpoint[]

        The endpoints for the new proxy.

      Returns this

      A proxy with the new endpoints.

    • Creates a proxy that is identical to this proxy, except for the facet.

      Parameters

      • facet: string

        The facet for the new proxy.

      Returns this

      A proxy with the new facet.

    • Creates a proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection.

      Parameters

      • connection: Connection

        The fixed proxy connection.

      Returns this

      A fixed proxy bound to the given connection.

    • Flushes any pending batched requests for this proxy.

      Returns AsyncResult<void>

      An asynchronous result that is resolved when the pending batched requests for this proxy are flushed.

    • Gets the adapter ID for this proxy.

      Returns string

      The adapter ID. If the proxy does not have an adapter ID, the return value is the empty string.

    • Gets the cached Connection for this proxy. If the proxy does not yet have an established connection, it does not attempt to create a connection.

      Returns Connection

      The cached connection for this proxy, or null if the proxy does not have an established connection.

    • Gets the connection ID of this proxy.

      Returns AsyncResult<Connection>

      An asynchronous result that resolves to the connection used by this proxy.

      You can call this function to establish a connection or associate the proxy with an existing connection.

    • Gets the connection ID of this proxy.

      Returns string

      The connection ID.

    • Gets the per-proxy context for this proxy.

      Returns Map<string, string>

      The per-proxy context.

    • Gets the facet for this proxy.

      Returns string

      The facet for this proxy. If the proxy uses the default facet, the return value is the empty string.

    • Gets the invocation timeout of this proxy.

      Returns number

      The invocation timeout value.

    • Gets the locator cache timeout of this proxy.

      Returns number

      The locator cache timeout value.

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

      Parameters

      • Optionalcontext: Map<string, string>

        The request context.

      Returns AsyncResult<string>

      An asynchronous result that resolves to the Slice type ID of the most-derived interface.

    • Creates a proxy that is identical to this proxy, except for the identity.

      Parameters

      • id: Identity

        The identity for the new proxy.

      Returns this

      A proxy with the new identity.

    • Gets the Slice interfaces supported by this object as a list of Slice type IDs.

      Parameters

      • Optionalcontext: Map<string, string>

        The request context.

      Returns AsyncResult<string[]>

      An asynchronous result that resolves to an array of the Slice type IDs of the interfaces supported by this object, in alphabetical order

    • Creates a proxy that is identical to this proxy, except for the invocation timeout.

      Parameters

      • timeout: number

        The new invocation timeout (in milliseconds).

      Returns this

      A proxy with the new timeout.

    • Tests whether this object supports a specific Slice interface.

      Parameters

      • typeId: string

        The type ID of the Slice interface to test against.

      • Optionalcontext: Map<string, string>

        The request context.

      Returns AsyncResult<boolean>

      An asynchronous result that resolves to true if the target object implements the Slice interface specified by typeId or implements a derived interface, false otherwise.

    • Determines whether this proxy uses batch oneway invocations.

      Returns boolean

      true if this proxy uses batch oneway invocations, false otherwise.

    • Determines whether this proxy caches connections.

      Returns boolean

      true if this proxy caches connections, false otherwise.

    • Determines whether this proxy is a fixed proxy.

      Returns boolean

      true if this proxy is a fixed proxy, false otherwise.

    • Determines whether this proxy uses oneway invocations.

      Returns boolean

      true if this proxy uses oneway invocations, false otherwise.

    • Determines whether this proxy uses twoway invocations.

      Returns boolean

      true if this proxy uses twoway invocations, false otherwise.

    • Creates a proxy that is identical to this proxy, except for the locator.

      Parameters

      Returns this

      A proxy with the specified locator.

    • Creates a proxy that is identical to this proxy, except for the locator cache timeout.

      Parameters

      • timeout: number

        The new locator cache timeout (in seconds).

      Returns this

      A proxy with the new timeout.

    • Creates a proxy that is identical to this proxy, but uses oneway invocations.

      Returns this

      A proxy that uses oneway invocations.

    • Tests whether the target object of this proxy can be reached.

      Parameters

      • Optionalcontext: Map<string, string>

        The request context.

      Returns AsyncResult<void>

      An asynchronous result that resolves when the ping operation completes.

    • Creates a proxy that is identical to this proxy, except for the router.

      Parameters

      Returns this

      A proxy with the specified router.

    • Creates a stringified version of this proxy.

      Returns string

      A stringified proxy.

    • Creates a proxy that is identical to this proxy, but uses twoway invocations.

      Returns this

      A proxy that uses twoway invocations.

    • Checks if the server is enabled or disabled.

      Parameters

      • id: string

        The server ID.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<boolean>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • boolean : true if the server is enabled, false otherwise.

      IceGrid.DeploymentException Thrown when the deployment of the server failed.

      IceGrid.NodeUnreachableException Thrown when the node is unreachable.

      IceGrid.ServerNotExistException Thrown when the server doesn't exist.

    • Pings an IceGrid node to see if it is active.

      Parameters

      • name: string

        The node name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<boolean>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • boolean : true if the node ping succeeded, false otherwise.

      IceGrid.NodeNotExistException Thrown when the node doesn't exist.

    • Pings an IceGrid registry to see if it is active.

      Parameters

      • name: string

        The registry name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<boolean>

      An Ice.AsyncResult object representing the result of the invocation, which resolves to:

      • boolean : true if the registry ping succeeded, false otherwise.

      IceGrid.RegistryNotExistException Thrown when the registry doesn't exist.

    • Removes the adapter with the given ID.

      Parameters

      • id: string

        The adapter ID.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.AdapterNotExistException Thrown when the adapter doesn't exist.

      IceGrid.DeploymentException Thrown when the application deployment failed.

    • Removes an application from IceGrid.

      Parameters

      • name: string

        The application name.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.AccessDeniedException Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.

      IceGrid.ApplicationNotExistException Thrown when the application doesn't exist.

      IceGrid.DeploymentException Thrown when the application deployment failed.

    • Removes an object from the object registry. Only objects added with this interface can be removed with this operation. Objects added with deployment descriptors should be removed with the deployment mechanism.

      Parameters

      • id: Identity

        The identity of the object to remove.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.DeploymentException Thrown when the object can't be removed.

      IceGrid.ObjectNotRegisteredException Thrown when the object isn't registered with the registry.

    • Shuts down the IceGrid registry.

      Parameters

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

    • Synchronizes a deployed application. This operation replaces the current descriptor with a new descriptor only if no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.

      Parameters

      • descriptor: ApplicationDescriptor

        The application descriptor.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.AccessDeniedException Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.

      IceGrid.ApplicationNotExistException Thrown when the application doesn't exist.

      IceGrid.DeploymentException Thrown when the application deployment failed.

    • Updates a deployed application. This operation succeeds only when no server restarts are necessary for the update of the application. If some servers need to be restarted, the synchronization is rejected with a DeploymentException.

      Parameters

      • descriptor: ApplicationUpdateDescriptor

        The update descriptor.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.AccessDeniedException Thrown when the session doesn't hold the exclusive lock or when another session is holding the lock.

      IceGrid.ApplicationNotExistException Thrown when the application doesn't exist.

      IceGrid.DeploymentException Thrown when the application deployment failed.

    • Updates an object in the object registry. Only objects added with this interface can be updated with this operation. Objects added with deployment descriptors should be updated with the deployment mechanism.

      Parameters

      • obj: ObjectPrx

        A proxy to the object. This proxy is never null.

      • Optionalcontext: Map<string, string>

        The Context map to send with the invocation.

      Returns AsyncResult<void>

      An Ice.AsyncResult object representing the result of the invocation.

      IceGrid.DeploymentException Thrown when the object can't be updated.

      IceGrid.ObjectNotRegisteredException Thrown when the object isn't registered with the registry.

    • Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.

      Parameters

      • prx: ObjectPrx

        The source proxy.

      • Optionalfacet: string

        An optional facet name.

      • Optionalcontext: Map<string, string>

        The request context.

      Returns AsyncResult<AdminPrx>

      A proxy with the requested type and facet, or null if the target object does not support the requested type.

    • Returns the Slice type ID associated with this type.

      Returns string

      The Slice type ID.

    • Creates a new proxy from an existing proxy.

      Parameters

      • prx: ObjectPrx

        The source proxy.

      • Optionalfacet: string

        An optional facet name.

      Returns AdminPrx

      A new proxy with the requested type and facet, or null if the source proxy is null.

    • Creates a new proxy from an existing proxy.

      Parameters

      • prx: ObjectPrx

        The source proxy.

      • Optionalfacet: string

        An optional facet name.

      Returns AdminPrx

      A new proxy with the requested type and facet, or null if the source proxy is null.