Creates a new object adapter.
It is valid to create an object adapter with an empty string as its name. Such an object adapter is
accessible via bidirectional connections. Attempts to create a named object adapter for which no
configuration can be found will raise an InitializationException
.
The object adapter name.
A promise that resolves to the created object adapter.
InitializationException - Thrown if the object adapter cannot be created.
Creates a new object adapter with a router.
This operation creates a routed object adapter. If the name
parameter is an empty string, a UUID will
be generated and used as the object adapter name.
A promise that resolves to the created object adapter.
Destroys this communicator. This method calls shutdown implicitly. Calling destroy destroys all object adapters, and closes all outgoing connections. {@code destroy} waits for all outstanding dispatches to complete before resolving the returned promise. This includes "bidirectional dispatches" that execute on outgoing connections.
A promise that is resolved when the communicator has been destroyed.
Flushes any pending batch requests for this communicator.
This operation flushes all batch requests invoked on fixed proxies for all connections associated with the communicator. Any errors that occur while flushing a connection are ignored.
A promise that resolves when the flush operation is complete.
Retrieves the communicator's default locator.
The default locator of the communicator.
Gets the object adapter that is associated by default with new outgoing connections created by this communicator. This method returns null unless you set a non-null default object adapter using setDefaultObjectAdapter.
The object adapter associated by default with new outgoing connections.
Retrieves the implicit context associated with this communicator.
The implicit context associated with this communicator, or null
if the Ice.ImplicitContext
property is not set or is set to None
.
Retrieves the logger associated with this communicator.
The logger of the communicator.
Retrieves the properties associated with this communicator.
The properties of the communicator.
Converts an identity into a string.
The identity to convert into a string.
The string representation of the identity.
Converts a set of proxy properties into a proxy. The "base" name supplied in theproperty
argument
refers to a property containing a stringified proxy, such as MyProxy=id:tcp -h localhost -p 10000
.
Additional properties configure local settings for the proxy.
The base property name.
The proxy, or null if the property is not set.
Converts a proxy into a set of proxy properties.
The proxy to convert.
The base property name to associate with the proxy.
A dictionary containing the property set derived from the proxy.
Converts a proxy into a string.
The proxy to convert into a string.
The string representation of the proxy, or an empty string if prx
is null
.
Sets the communicator's default locator.
All newly created proxies will use this default locator. To disable the default locator, pass null
.
Note that this operation has no effect on existing proxies.
You can also set a locator for an individual proxy by calling ObjectPrx#ice_locator on the proxy.
The default locator to use for this communicator, or null
to disable the default
locator.
Sets the object adapter that is associated by default with new outgoing connections created by this communicator. This method has no effect on existing connections.
The object adapter to associate by default with new outgoing connections.
Sets the communicator's default router.
All newly created proxies will use this default router. To disable the default router, pass null
.
Note that this operation has no effect on existing proxies.
You can also set a router for an individual proxy by calling ObjectPrx#ice_router on the proxy.
Shuts down this communicator. In JavaScript, shutdown resolves a promise and doesn't do anything else.
Converts a proxy string into a proxy.
The proxy string to convert.
The proxy, or null
if proxyString
is an empty string.
The central object in Ice. One or more communicators can be instantiated for an Ice application.
See