ICE代理的固有方法

简介:

Table 32.1. The semantics of core proxy methods.

Method

Description

Remote

ice_isA

Returns true if the remote object supports the type indi­cated by the id argument, oth­erwise false. This method can only be invoked on a two­way proxy.

Yes

ice_ping

Determines whether the remote object is reachable. Does not return a value.

Yes

ice_ids

Returns the type ids of the types supported by the remote object. The return value is an array of strings. This method can only be invoked on a twoway proxy.

Yes

ice_id

Returns the type id of the most-derived type supported by the remote object. This method can only be invoked on a twoway proxy.

Yes

ice_getHash

Returns a hash value for the proxy for C++. For other lan­guage mappings, use the built-in hash method.

No

ice_getCommunicator

Returns the communicator that was used to create this proxy.

No

ice_toString

Returns the string representa­tion of the proxy.

No

ice_identity

Returns a new proxy having the given identity.

No

ice_getIdentity

Returns the identity of the Ice object represented by the proxy.

No

ice_adapterId

Returns a new proxy having the given adapter id.

No

ice_getAdapterId

Returns the proxy’s adapter id, or an empty string if no adapter id is configured.

No

ice_endpoints

Returns a new proxy having the given endpoints.

No

ice_getEndpoints

Returns a sequence of End­point objects representing the proxy’s endpoints. See Section 36.5.2 for more infor­mation.

No

ice_endpointSelection

Returns a new proxy having the given selection policy (random or ordered). See Section 36.3.1 for more information.

No

ice_getEndpointSelection

Returns the endpoint selection policy for the proxy.

No

ice_context

Returns a new proxy having the given request context. See Section 32.12 for more infor­mation on request contexts.

No

ice_getContext

Returns the request context associated with the proxy. See Section 32.12 for more infor­mation on request contexts.

No

ice_facet

Returns a new proxy having the given facet name. See Chapter 33 for more informa­tion on facets.

No

ice_getFacet

Returns the name of the facet associated with the proxy, or an empty string if no facet has been set. See Chapter 33 for more information on facets.

No

ice_twoway

Returns a new proxy for mak­ing twoway invocations.

No

ice_isTwoway

Returns true if the proxy uses twoway invocations, otherwise false.

No

ice_oneway

Returns a new proxy for mak­ing oneway invocations (see Section 32.14).

No

ice_isOneway

Returns true if the proxy uses oneway invocations, otherwise false.

No

ice_batchOneway

Returns a new proxy for mak­ing batch oneway invocations (see Section 32.16).

No

ice_isBatchOneway

Returns true if the proxy uses batch oneway invocations, oth­erwise false.

No

ice_datagram

Returns a new proxy for mak­ing datagram invocations (see Section 32.15).

No

ice_isDatagram

Returns true if the proxy uses datagram invocations, other­wise false.

No

ice_batchDatagram

Returns a new proxy for mak­ing batch datagram invocations (see Section 32.16).

No

ice_isBatchDatagram

Returns true if the proxy uses batch datagram invocations, otherwise false.

No

ice_secure

Returns a new proxy whose endpoints may be filtered depending on the boolean argu­ment. If true, only endpoints using secure transports are allowed, otherwise all end­points are allowed.

No

ice_isSecure

Returns true if the proxy uses only secure endpoints, other­wise false.

No

ice_preferSecure

Returns a new proxy whose endpoints are filtered depend­ing on the boolean argument. If true, endpoints using secure transports are given precedence over endpoints using non-secure transports. If false, the default behavior gives prece­dence to endpoints using non-secure transports.

No

ice_isPreferSecure

Returns true if the proxy pre­fers secure endpoints, otherwise false.

No

ice_compress

Returns a new proxy whose protocol compression capability is determined by the boolean argument. If true, the proxy uses protocol compression if it is supported by the endpoint. If false, protocol compression is never used.

No

ice_timeout

Returns a new proxy with the given timeout value in millisec­onds. A value of ‑1 disables timeouts. See Section 32.13 for more information on timeouts.

No

ice_router

Returns a new proxy configured with the given router proxy. See Chapter 42 for more informa­tion on routers.

No

ice_getRouter

Returns the router that is con­figured for the proxy (null if no router is configured).

No

ice_locator

Returns a new proxy with the specified locator. See Chapter 38 for more informa­tion on locators.

No

ice_getLocator

Returns the locator that is con­figured for the proxy (null if no locator is configured).

No

ice_locatorCacheTimeout

Returns a new proxy with the specified locator cache time­out. When binding a proxy to an endpoint, the run time caches the proxy returned by the loca­tor and uses the cached proxy while the cached proxy has been in the cache for less than the timeout. Proxies older than the timeout cause the run time to rebind via the locator. A value of 0 disables caching entirely, and a value of ‑1 means that cached proxies never expire. The default value is ‑1.

No

ice_getLocatorCacheTimeout

Returns the locator cache time­out value in seconds.

No

ice_collocationOptimized

Returns a new proxy configured for collocation optimization. If true, collocated optimiza­tions are enabled. The default value is true.

No

ice_isCollocationOptimized

Returns true if the proxy uses collocation optimization, other­wise false.

No

ice_connectionId

Returns a new proxy having the given connection identifier. See Section 36.3.3 for more infor­mation.

No

ice_getConnectionId

Returns the connection id, or an empty string if no connection id has been configured.

No

ice_getConnection

Returns an object representing the connection used by the proxy. If the proxy is not cur­rently associated with a connec­tion, the Ice run time attempts to establish a connection first. See Section 36.5 for more information.

No

ice_getCachedConnection

Returns an object representing the connection used by the proxy, or null if the proxy is not currently associated with a con­nection. See Section 36.5 for more information.

No

ice_connectionCached

Enables or disables connection caching for the proxy. See Section 36.3.4 for more infor­mation

No

ice_isConnectionCached

Returns true if the proxy uses connection caching, otherwise false.

No

ice_flushBatchRequests

Sends a batch of operation invocations synchronously or asynchronously (see Section 32.16).

Yes

begin_ice_flushBatchRequests

ice_invoke

Allows dynamic invocation of an operation without the need for compiled Slice definitions. Requests can be sent synchro­nously (see Section 35.3.1) or asynchronously (see Section 35.4).

Yes

begin_ice_invoke



本文转自海天一鸥博客园博客,原文链接:http://www.cnblogs.com/sgsoft/archive/2011/08/09/2133080.html,如需转载请自行联系原作者
相关文章
|
存储 消息中间件 运维
Kubernetes中部署ELK Stack日志收集平台(上)
Kubernetes中部署ELK Stack日志收集平台
Kubernetes中部署ELK Stack日志收集平台(上)
|
SQL XML Oracle
达梦(DM)4、SpringBoot集成MyBatisPlus+达梦数据库(DM)
最近在做一个政府项目,由于项目之前使用的 MySQL 数据库,为了适配国产化,需要将 MySQL 换成 达梦数据库(DM),本次我选择了达梦数据库8(DM8),以下是切换过程
3144 0
达梦(DM)4、SpringBoot集成MyBatisPlus+达梦数据库(DM)
|
11月前
|
机器学习/深度学习 数据采集 供应链
Python实现深度学习模型:智能库存管理系统
【10月更文挑战第5天】 Python实现深度学习模型:智能库存管理系统
841 9
|
10月前
|
传感器 数据采集 人工智能
数字孪生与智慧城市:构建未来城市模型
【10月更文挑战第31天】在信息化和智能化高速发展的今天,数字孪生技术正逐步成为推动智慧城市建设的核心力量。本文将深入探讨数字孪生技术在城市规划、管理、交通和环保等方面的应用,以及它如何助力构建未来城市的理想模型。数字孪生通过实时数据同步和双向交互,实现城市运行状态的全面监控、预测和优化,推动城市向更加智慧、绿色和可持续的方向发展。
|
人工智能 物联网 文件存储
基于EasyAnimate模型的视频生成最佳实践
EasyAnimate是阿里云PAI平台自主研发的DiT的视频生成框架,它提供了完整的高清长视频生成解决方案,包括视频数据预处理、VAE训练、DiT训练、模型推理和模型评测等。本文为您介绍如何在PAI平台集成EasyAnimate并一键完成模型推理、微调及部署的实践流程。
【qt】数值的输入与输出3
【qt】数值的输入与输出
95 0
|
安全 数据安全/隐私保护 Python
|
传感器 人工智能 监控
现代技术发展中的人机交互革新
在当今快速发展的技术时代,人机交互不再是单向的信息传递,而是正在演变为一种深度融合的体验。本文探讨了现代技术如何推动人机交互的革新,以及这种革新对未来技术发展的潜在影响。 【7月更文挑战第14天】
305 2
|
存储 缓存 NoSQL
MongoDB数据库的主要应用场景是什么?
【6月更文挑战第5天】MongoDB数据库的主要应用场景是什么?
1380 1
|
物联网 PyTorch 测试技术
手把手教你捏一个自己的Agent
Modelscope AgentFabric是一个基于ModelScope-Agent的交互式智能体应用,用于方便地创建针对各种现实应用量身定制智能体,目前已经在生产级别落地。