- All Known Subinterfaces:
AdapterObserverPrx,AdminPrx,AdminSessionPrx,ApplicationObserverPrx,FileIteratorPrx,FileParserPrx,FinderPrx,IdentitySetPrx,LocatorFinderPrx,LocatorPrx,LocatorPrx,LocatorRegistryPrx,LoggerAdminPrx,MetricsAdminPrx,NodeObserverPrx,ObjectObserverPrx,PermissionsVerifierPrx,ProcessPrx,PropertiesAdminPrx,QueryPrx,RegistryObserverPrx,RegistryPrx,RemoteLoggerPrx,RouterFinderPrx,RouterPrx,RouterPrx,ServiceManagerPrx,ServiceObserverPrx,SessionControlPrx,SessionManagerPrx,SessionPrx,SessionPrx,SSLPermissionsVerifierPrx,SSLSessionManagerPrx,StringSetPrx,TopicManagerPrx,TopicPrx,UserAccountMapperPrx
public interface ObjectPrx
The base interface of all Ice proxies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe type ID of the target's interface: "::Ice::Object".A special empty context that is indistinguishable from the absence of a context parameter. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectPrxcheckedCast(ObjectPrx obj) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrxcheckedCast(ObjectPrx obj, String facet) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrxCreates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrxcheckedCast(ObjectPrx obj, Map<String, String> context) Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.static ObjectPrxcreateProxy(Communicator communicator, String proxyString) Creates a new proxy that implementsObjectPrx.booleanDetermines whether this proxy equals the passed object.ice_adapterId(String newAdapterId) Creates a proxy that is identical to this proxy, except for the adapter ID.Creates a proxy that is identical to this proxy, but uses batch datagram invocations.Creates a proxy that is identical to this proxy, but uses batch oneway invocations.ice_collocationOptimized(boolean b) Creates a proxy that is identical to this proxy, except for collocation optimization.ice_compress(boolean co) Creates a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints.ice_connectionCached(boolean newCache) Creates a proxy that is identical to this proxy, except for connection caching.ice_connectionId(String connectionId) Creates a proxy that is identical to this proxy, except for its connection ID.ice_context(Map<String, String> newContext) Creates a proxy that is identical to this proxy, except for the per-proxy context.Creates a proxy that is identical to this proxy, but uses datagram invocations.Creates a proxy that is identical to this proxy, except for the encoding used to marshal parameters.ice_endpoints(Endpoint[] newEndpoints) Creates a proxy that is identical to this proxy, except for the endpoints.Creates a proxy that is identical to this proxy, except for the endpoint selection policy.default ExecutorReturns an executor object that uses the Ice thread pool.Creates a proxy that is identical to this proxy, except for the facet.ice_fixed(Connection connection) Creates a proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection.voidFlushes any pending batched requests for this proxy.Flushes any pending batched requests for this proxy asynchronously.Gets the adapter ID for this proxy.Gets the cached connection for this proxy.Gets the communicator that created this proxy.Gets the compression override setting of this proxy.Gets the connection for this proxy.Gets the connection for this proxy asynchronously.Gets the connection id of this proxy.Gets the per-proxy context for this proxy.Gets the encoding version used to marshal request parameters.Endpoint[]Gets the endpoints used by this proxy.Gets the endpoint selection policy for this proxy (randomly or ordered).Gets the facet for this proxy.Gets the identity embedded in this proxy.Gets the invocation timeout of this proxy.Gets the locator for this proxy.Gets the locator cache timeout of this proxy.Gets the router for this proxy.ice_id()Returns the type ID of the most-derived Slice interface supported by this object.Returns the type ID of the most-derived Slice interface supported by this object.Returns the type ID of the most-derived Slice interface supported by this object.ice_idAsync(Map<String, String> context) Returns the type ID of the most-derived Slice interface supported by this object.ice_identity(Identity newIdentity) Creates a proxy that is identical to this proxy, except for the identity.String[]ice_ids()Returns the Slice interfaces supported by this object as a list of Slice type IDs.String[]Returns the Slice interfaces supported by this object as a list of Slice type IDs.Returns the Slice interfaces supported by this object as a list of Slice type IDs.ice_idsAsync(Map<String, String> context) Returns the Slice interfaces supported by this object as a list of Slice type IDs.ice_invocationTimeout(int newTimeout) Creates a proxy that is identical to this proxy, except for the invocation timeout.ice_invocationTimeout(Duration newTimeout) Creates a proxy that is identical to this proxy, except for the invocation timeout.ice_invoke(String operation, OperationMode mode, byte[] inParams) Invokes an operation.ice_invoke(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation.ice_invokeAsync(String operation, OperationMode mode, byte[] inParams) Invokes an operation asynchronously.ice_invokeAsync(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation asynchronously.booleanTests whether this object supports a specific Slice interface.booleanTests whether this object supports a specific Slice interface.ice_isAAsync(String id) Tests whether this object supports a specific Slice interface.ice_isAAsync(String id, Map<String, String> context) Tests whether this object supports a specific Slice interface.booleanDetermines whether this proxy uses batch datagram invocations.booleanDetermines whether this proxy uses batch oneway invocations.booleanDetermines whether this proxy uses collocation optimization.booleanDetermines whether this proxy caches connections.booleanDetermines whether this proxy uses datagram invocations.booleanDetermines whether this proxy is a fixed proxy.booleanDetermines whether this proxy uses oneway invocations.booleanDetermines whether this proxy uses twoway invocations.ice_locator(LocatorPrx locator) Creates a proxy that is identical to this proxy, except for the locator.ice_locatorCacheTimeout(int newTimeout) Creates a proxy that is identical to this proxy, except for the locator cache timeout.ice_locatorCacheTimeout(Duration newTimeout) Creates a proxy that is identical to this proxy, except for the locator cache timeout.Creates a proxy that is identical to this proxy, but uses oneway invocations.voidice_ping()Tests whether the target object of this proxy can be reached.voidTests whether the target object of this proxy can be reached.Tests whether the target object of this proxy can be reached.ice_pingAsync(Map<String, String> context) Tests whether the target object of this proxy can be reached.ice_router(RouterPrx router) Creates a proxy that is identical to this proxy, except for the router.static StringGets the Slice type ID associated with this type.Creates a proxy that is identical to this proxy, but uses twoway invocations.static ObjectPrxread(InputStream istr) Reads a proxy from the provided stream.static ObjectPrxuncheckedCast(ObjectPrx obj) Creates a new proxy from an existing proxy.static ObjectPrxuncheckedCast(ObjectPrx obj, String facet) Creates a new proxy from an existing proxy.static voidwrite(OutputStream ostr, ObjectPrx v) Writes a proxy to the provided stream.
-
Field Details
-
ice_staticId
The type ID of the target's interface: "::Ice::Object".- See Also:
-
noExplicitContext
A special empty context that is indistinguishable from the absence of a context parameter. For example,prx.op(noExplicitContext)is the same asprx.op()and does not override the current implicit context (if any).
-
-
Method Details
-
ice_getCommunicator
Communicator ice_getCommunicator()Gets the communicator that created this proxy.- Returns:
- the communicator that created this proxy
-
ice_isA
Tests whether this object supports a specific Slice interface.- Parameters:
id- the type ID of the Slice interface to test against- Returns:
trueif the target object implements the Slice interface specified byidor implements a derived interface, andfalseotherwise.
-
ice_isA
Tests whether this object supports a specific Slice interface.- Parameters:
id- the type ID of the Slice interface to test againstcontext- the request context- Returns:
trueif the target object implements the Slice interface specified byidor implements a derived interface, andfalseotherwise.
-
ice_isAAsync
Tests whether this object supports a specific Slice interface.- Parameters:
id- the type ID of the Slice interface to test against- Returns:
- a future that completes with
trueif the target object implements the Slice interface specified byidor implements a derived interface, andfalseotherwise.
-
ice_isAAsync
Tests whether this object supports a specific Slice interface.- Parameters:
id- the type ID of the Slice interface to test againstcontext- the request context- Returns:
- a future that completes with
trueif the target object implements the Slice interface specified byidor implements a derived interface, andfalseotherwise.
-
ice_ping
void ice_ping()Tests whether the target object of this proxy can be reached. -
ice_ping
Tests whether the target object of this proxy can be reached.- Parameters:
context- the request context
-
ice_pingAsync
CompletableFuture<Void> ice_pingAsync()Tests whether the target object of this proxy can be reached.- Returns:
- a future that completes when the invocation completes
-
ice_pingAsync
Tests whether the target object of this proxy can be reached.- Parameters:
context- the request context- Returns:
- a future that completes when the invocation completes
-
ice_ids
String[] ice_ids()Returns the Slice interfaces supported by this object as a list of Slice type IDs.- Returns:
- the Slice type IDs of the interfaces supported by this object, in alphabetical order
-
ice_ids
Returns the Slice interfaces supported by this object as a list of Slice type IDs.- Parameters:
context- the request context- Returns:
- the Slice type IDs of the interfaces supported by this object, in alphabetical order
-
ice_idsAsync
CompletableFuture<String[]> ice_idsAsync()Returns the Slice interfaces supported by this object as a list of Slice type IDs.- Returns:
- a future that completes with the Slice type IDs of the interfaces supported by this object, in alphabetical order
-
ice_idsAsync
Returns the Slice interfaces supported by this object as a list of Slice type IDs.- Parameters:
context- the request context- Returns:
- a future that completes with the Slice type IDs of the interfaces supported by this object, in alphabetical order
-
ice_id
String ice_id()Returns the type ID of the most-derived Slice interface supported by this object.- Returns:
- the Slice type ID of the most-derived interface
-
ice_id
Returns the type ID of the most-derived Slice interface supported by this object.- Parameters:
context- the request context- Returns:
- the Slice type ID of the most-derived interface
-
ice_idAsync
CompletableFuture<String> ice_idAsync()Returns the type ID of the most-derived Slice interface supported by this object.- Returns:
- a future that completes with the type ID of the most-derived Slice interface supported by this object
-
ice_idAsync
Returns the type ID of the most-derived Slice interface supported by this object.- Parameters:
context- the request context- Returns:
- a future that completes with the type ID of the most-derived Slice interface supported by this object
-
ice_invoke
Invokes an operation.- Parameters:
operation- the name of the operation to invokemode- the operation mode (normal or idempotent)inParams- an encapsulation containing the encoded in-parameters for the operation- Returns:
- the result of the invocation
- See Also:
-
ice_invoke
Object.Ice_invokeResult ice_invoke(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation.- Parameters:
operation- the name of the operation to invokemode- the operation mode (normal or idempotent)inParams- an encapsulation containing the encoded in-parameters for the operationcontext- the request context- Returns:
- the result of the invocation
- See Also:
-
ice_invokeAsync
CompletableFuture<Object.Ice_invokeResult> ice_invokeAsync(String operation, OperationMode mode, byte[] inParams) Invokes an operation asynchronously.- Parameters:
operation- the name of the operation to invokemode- the operation mode (normal or idempotent)inParams- an encapsulation containing the encoded in-parameters for the operation- Returns:
- a future that completes with the result of the invocation
- See Also:
-
ice_invokeAsync
CompletableFuture<Object.Ice_invokeResult> ice_invokeAsync(String operation, OperationMode mode, byte[] inParams, Map<String, String> context) Invokes an operation asynchronously.- Parameters:
operation- the name of the operation to invokemode- the operation mode (normal or idempotent)inParams- an encapsulation containing the encoded in-parameters for the operationcontext- the request context- Returns:
- a future that completes with the result of the invocation
- See Also:
-
ice_getIdentity
Identity ice_getIdentity()Gets the identity embedded in this proxy.- Returns:
- the identity of the target object
-
ice_identity
Creates a proxy that is identical to this proxy, except for the identity.- Parameters:
newIdentity- the identity for the new proxy- Returns:
- a proxy with the new identity
-
ice_getContext
Gets the per-proxy context for this proxy.- Returns:
- the per-proxy context, or
nullif the proxy does not have a per-proxy context.
-
ice_context
Creates a proxy that is identical to this proxy, except for the per-proxy context.- Parameters:
newContext- the context for the new proxy- Returns:
- a proxy with the new per-proxy context
-
ice_getFacet
String ice_getFacet()Gets the facet for this proxy.- Returns:
- the facet for this proxy. If the proxy uses the default facet, the return value is the empty string
-
ice_facet
Creates a proxy that is identical to this proxy, except for the facet.- Parameters:
newFacet- the facet for the new proxy- Returns:
- a proxy with the new facet
-
ice_getAdapterId
String ice_getAdapterId()Gets the adapter ID for this proxy.- Returns:
- the adapter ID. If the proxy does not have an adapter ID, the return value is the empty string.
-
ice_adapterId
Creates a proxy that is identical to this proxy, except for the adapter ID.- Parameters:
newAdapterId- the adapter ID for the new proxy- Returns:
- a proxy with the new adapter ID
-
ice_getEndpoints
Endpoint[] ice_getEndpoints()Gets the endpoints used by this proxy.- Returns:
- the endpoints used by this proxy
-
ice_endpoints
Creates a proxy that is identical to this proxy, except for the endpoints.- Parameters:
newEndpoints- the endpoints for the new proxy- Returns:
- a proxy with the new endpoints
-
ice_getLocatorCacheTimeout
Duration ice_getLocatorCacheTimeout()Gets the locator cache timeout of this proxy.- Returns:
- the locator cache timeout value
- See Also:
-
ice_getInvocationTimeout
Duration ice_getInvocationTimeout()Gets the invocation timeout of this proxy.- Returns:
- the invocation timeout value
-
ice_getConnectionId
String ice_getConnectionId()Gets the connection id of this proxy.- Returns:
- the connection ID
-
ice_fixed
Creates a proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection.- Parameters:
connection- the fixed proxy connection- Returns:
- a fixed proxy bound to the given connection
-
ice_isFixed
boolean ice_isFixed()Determines whether this proxy is a fixed proxy.- Returns:
trueif this is a fixed proxy,falseotherwise
-
ice_locatorCacheTimeout
Creates a proxy that is identical to this proxy, except for the locator cache timeout.- Parameters:
newTimeout- the new locator cache timeout (in seconds)- Returns:
- a proxy with the new timeout
- See Also:
-
ice_locatorCacheTimeout
Creates a proxy that is identical to this proxy, except for the locator cache timeout.- Parameters:
newTimeout- the new locator cache timeout- Returns:
- a proxy with the new timeout
- See Also:
-
ice_invocationTimeout
Creates a proxy that is identical to this proxy, except for the invocation timeout.- Parameters:
newTimeout- the new invocation timeout (in milliseconds)- Returns:
- a proxy with the new timeout
-
ice_invocationTimeout
Creates a proxy that is identical to this proxy, except for the invocation timeout.- Parameters:
newTimeout- the new invocation timeout- Returns:
- a proxy with the new timeout
-
ice_isConnectionCached
boolean ice_isConnectionCached()Determines whether this proxy caches connections.- Returns:
trueif this proxy caches connections,falseotherwise
-
ice_connectionCached
Creates a proxy that is identical to this proxy, except for connection caching.- Parameters:
newCache-trueif the new proxy should cache connections,falseotherwise- Returns:
- a proxy with the specified caching policy
-
ice_getEndpointSelection
EndpointSelectionType ice_getEndpointSelection()Gets the endpoint selection policy for this proxy (randomly or ordered).- Returns:
- the endpoint selection policy
-
ice_endpointSelection
Creates a proxy that is identical to this proxy, except for the endpoint selection policy.- Parameters:
newType- the new endpoint selection policy- Returns:
- a proxy with the specified endpoint selection policy
-
ice_encodingVersion
Creates a proxy that is identical to this proxy, except for the encoding used to marshal parameters.- Parameters:
e- the encoding version to use to marshal request parameters- Returns:
- a proxy with the specified encoding version
-
ice_getEncodingVersion
EncodingVersion ice_getEncodingVersion()Gets the encoding version used to marshal request parameters.- Returns:
- the encoding version
-
ice_getRouter
RouterPrx ice_getRouter()Gets the router for this proxy.- Returns:
- the router for the proxy. If no router is configured for the proxy, the return value is
null.
-
ice_router
Creates a proxy that is identical to this proxy, except for the router.- Parameters:
router- the router for the new proxy- Returns:
- a proxy with the specified router
-
ice_getLocator
LocatorPrx ice_getLocator()Gets the locator for this proxy.- Returns:
- the locator for this proxy. If no locator is configured, the return value is
null.
-
ice_locator
Creates a proxy that is identical to this proxy, except for the locator.- Parameters:
locator- the locator for the new proxy- Returns:
- a proxy with the specified locator
-
ice_isCollocationOptimized
boolean ice_isCollocationOptimized()Determines whether this proxy uses collocation optimization.- Returns:
trueif the proxy uses collocation optimization,falseotherwise
-
ice_collocationOptimized
Creates a proxy that is identical to this proxy, except for collocation optimization.- Parameters:
b-trueif the new proxy enables collocation optimization,falseotherwise- Returns:
- a proxy with the specified collocation optimization
-
ice_twoway
ObjectPrx ice_twoway()Creates a proxy that is identical to this proxy, but uses twoway invocations.- Returns:
- a proxy that uses twoway invocations
-
ice_isTwoway
boolean ice_isTwoway()Determines whether this proxy uses twoway invocations.- Returns:
trueif this proxy uses twoway invocations,falseotherwise
-
ice_oneway
ObjectPrx ice_oneway()Creates a proxy that is identical to this proxy, but uses oneway invocations.- Returns:
- a proxy that uses oneway invocations
-
ice_isOneway
boolean ice_isOneway()Determines whether this proxy uses oneway invocations.- Returns:
trueif this proxy uses oneway invocations,falseotherwise
-
ice_batchOneway
ObjectPrx ice_batchOneway()Creates a proxy that is identical to this proxy, but uses batch oneway invocations.- Returns:
- a proxy that uses batch oneway invocations
-
ice_isBatchOneway
boolean ice_isBatchOneway()Determines whether this proxy uses batch oneway invocations.- Returns:
trueif this proxy uses batch oneway invocations,falseotherwise
-
ice_datagram
ObjectPrx ice_datagram()Creates a proxy that is identical to this proxy, but uses datagram invocations.- Returns:
- a proxy that uses datagram invocations
-
ice_isDatagram
boolean ice_isDatagram()Determines whether this proxy uses datagram invocations.- Returns:
trueif this proxy uses datagram invocations,falseotherwise
-
ice_batchDatagram
ObjectPrx ice_batchDatagram()Creates a proxy that is identical to this proxy, but uses batch datagram invocations.- Returns:
- a proxy that uses batch datagram invocations
-
ice_isBatchDatagram
boolean ice_isBatchDatagram()Determines whether this proxy uses batch datagram invocations.- Returns:
trueif this proxy uses batch datagram invocations,falseotherwise
-
ice_compress
Creates a proxy that is identical to this proxy, except for its compression setting which overrides the compression setting from the proxy endpoints.- Parameters:
co-trueenables compression for the new proxy,falsedisables compression.- Returns:
- a proxy with the specified compression override setting
-
ice_getCompress
Gets the compression override setting of this proxy.- Returns:
- The compression override setting. If no optional value is present, no override is set.
Otherwise,
trueif compression is enabled,falseotherwise.
-
ice_connectionId
Creates a proxy that is identical to this proxy, except for its connection ID.- Parameters:
connectionId- the connection ID for the new proxy. An empty string removes the connection ID.- Returns:
- a proxy with the specified connection ID
-
ice_getConnection
Connection ice_getConnection()Gets the connection for this proxy. If the proxy does not yet have an established connection, it first attempts to create a connection.You can call this method to establish a connection or associate the proxy with an existing connection and ignore the return value.
- Returns:
- The
Connectionfor this proxy.
-
ice_executor
Returns an executor object that uses the Ice thread pool.- Returns:
- the
Executorobject
-
ice_getConnectionAsync
CompletableFuture<Connection> ice_getConnectionAsync()Gets the connection for this proxy asynchronously. If the proxy does not yet have an established connection, it first attempts to create a connection.- Returns:
- a future that completes with the
Connectionfor this proxy
-
ice_getCachedConnection
Connection ice_getCachedConnection()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:
- the cached
Connectionfor this proxy, ornullif the proxy does not have an established connection - See Also:
-
ice_flushBatchRequests
void ice_flushBatchRequests()Flushes any pending batched requests for this proxy. The call blocks until the flush is complete. -
ice_flushBatchRequestsAsync
CompletableFuture<Void> ice_flushBatchRequestsAsync()Flushes any pending batched requests for this proxy asynchronously. The call does not block.- Returns:
- a future that completes when the flush completes
-
equals
Determines whether this proxy equals the passed object. Two proxies are equal if they are equal in all respects, that is, if their object identity, endpoints timeout settings, and so on are all equal. -
ice_staticId
Gets the Slice type ID associated with this type.- Returns:
- the Slice type ID
-
createProxy
Creates a new proxy that implementsObjectPrx.- Parameters:
communicator- the communicator of the new proxyproxyString- the string representation of the proxy- Returns:
- the new proxy
- Throws:
ParseException- ifproxyStringis not a valid proxy string.
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj- the source proxy- Returns:
- a new proxy or
nullif the target object does not support this proxy's type
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj- the source proxycontext- the request context- Returns:
- a new proxy or
nullif the target object does not support this proxy's type
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj- the source proxyfacet- a facet name- Returns:
- a new proxy with the specified facet, or
nullif the target facet does not support the specified type
-
checkedCast
Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.- Parameters:
obj- the source proxyfacet- a facet namecontext- the request context- Returns:
- a new proxy with the specified facet, or
nullif the target facet does not support the specified type
-
uncheckedCast
Creates a new proxy from an existing proxy.- Parameters:
obj- the source proxy- Returns:
- a new proxy with the desired type or
nullifobjisnull
-
uncheckedCast
Creates a new proxy from an existing proxy.- Parameters:
obj- the source proxyfacet- a facet name- Returns:
- a new proxy with the desired type or
nullifobjisnull
-
write
Writes a proxy to the provided stream.- Parameters:
ostr- the destination streamv- the proxy to write to the stream
-
read
Reads a proxy from the provided stream.- Parameters:
istr- the source stream- Returns:
- a new proxy from the stream or
nullfor a null proxy
-