Ice.Default.*

6 min read

6 min read

7 min read

5 min read

6 min read

6 min read

6 min read

6 min read

6 min read

Synopsis

Ice.Default.CollocationOptimized=num

Description

Specifies whether proxy invocations use collocation optimization by default. When enabled, proxy invocations on a collocated servant (i.e., a servant whose object adapter was created by the same communicator as the proxy) are made more efficiently by avoiding the network stack.

If not specified, the default value is 1. Set the property to 0 to disable collocation optimization by default.

Synopsis

Ice.Default.EncodingVersion=ver

Description

If this property is not defined, Ice uses encoding version 1.1 when parsing a string that represents a proxy if this string does not specify an encoding with the -e option. To use encoding version 1.0 as the default instead, set this property to 1.0:

Ice.Default.EncodingVersion=1.0

Synopsis

Ice.Default.EndpointSelection=policy

Description

This property controls the default endpoint selection policy for proxies with multiple endpoints. Permissible values are Ordered and Random. The default value of this property is Random.

Synopsis

Ice.Default.Host=host

Description

If an endpoint does not specify a host name (i.e., omits the -h host option in IP-based endpoints or the -a address option in a Bluetooth endpoint), the host value from this property is used instead. This property applies to both client and server endpoints. It has no default value.

Synopsis

Ice.Default.InvocationTimeout=num

Description

Specifies the default invocation timeout in milliseconds to use for all proxies. The default value is -1, which disables the timeout.

Synopsis

Ice.Default.Locator=locator

Description

Specifies a default locator for all proxies and object adapters. The value is a stringified proxy for the IceGrid locator object. The default locator can be overridden on a proxy using the ice_locator proxy methodproxy methodproxy methodproxy methodproxy methodproxy methodproxy methodproxy method. The default value is no locator.

The default identity of the IceGrid locator object is IceGrid/Locator, but this identity is influenced by the IceGrid.InstanceName property. The locator object is available on the IceGrid client endpoints. For example, suppose IceGrid.Registry.Client.Endpoints is set as follows:

Properties
IceGrid.Registry.Client.Endpoints=tcp -p 12000 -h localhost

In this case, the stringified proxy for the IceGrid locator is:

Properties
Ice.Default.Locator=IceGrid/Locator:tcp -p 12000 -h localhost

As a proxy property, you can configure additional aspects of the proxy using properties.

Synopsis

Ice.Default.LocatorCacheTimeout=num

Description

Specifies the default locator cache timeout for indirect proxies, in seconds. If num is greater than 0, locator cache entries older than num seconds are ignored. If set to 0, the locator cache is not used. The default value, -1, means cache entries do not expire.

Once a cache entry has expired, the Ice runtime performs a new locate request to refresh the cache before sending the next invocation; therefore, the invocation is delayed until the runtime has refreshed the entry. If you set Ice.BackgroundLocatorCacheUpdates to a non-zero value, the lookup to refresh the cache is still performed but happens in the background; this avoids the delay for the first invocation that follows expiry of a cache entry.

Synopsis

Ice.Default.Package=package

Description

Specifies the enclosing Java package of all top-level Slice modules, the same package as in their java:package metadata directive.

When this property is set, the communicator adds a DefaultPackageSliceLoader to its default Slice loader. This loader maps Slice type IDs to Java class names under the specified package. For example, with Ice.Default.Package=com.example, it loads com.example.Demo.Node for the type ID ::Demo::Node.

The loader finds a class or exception only when neither the type name nor an enclosing module name is remapped with java:identifier.

See also: Ice.Package.module

Synopsis

Ice.Default.Protocol=transport protocol

Description

Sets the transport protocol that is being used if an endpoint uses default as the transport protocol specification.

The default value is tcp.

The default value is ws in a browser and tcp in Node.js.

Synopsis

Ice.Default.Router=router

Description

Specifies the default router for all proxies. The value is a stringified proxy for the Glacier2 router control interface. The default router can be overridden on a proxy using the ice_router proxy methodproxy methodproxy methodproxy methodproxy methodproxy methodproxy methodproxy method. The default value is no router. This property is only for proxies: it does not add a router to object adapters.

As a proxy property, you can configure additional aspects of the proxy using properties.

Synopsis

Ice.Default.SlicedFormat=num

Description

Specifies the encoding format of Slice classes. The default value is 0, which selects the compact format; 1 selects the sliced format. This property applies to version 1.1 of the Ice encoding.

Note that you can also specify whether certain operations use the sliced format by annotating their definitions with metadata.

Synopsis

Ice.Default.SourceAddress=addr

Description

Specifies the numeric IP address used to bind outgoing socket connections, except stream connections on iOS. Selecting a source IP address does not necessarily select the network interface used to send packets. Proxy endpoints can override this default with the --sourceAddress option. If this property is empty, the operating system selects the source address.

In Node.js, this property supplies the local address for outgoing TCP connections. Proxy endpoints can override it with the --sourceAddress option. WebSocket connections use the source address selected by the operating system.