157.2. Spring Boot Auto-Configuration
组件支持 5 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.ignite-compute.configuration-resource | 设置从中加载配置的资源。它可以是:URI、String (URI)或 InputStream。选项是一个 java.lang.Object 类型。 | 字符串 | |
camel.component.ignite-compute.enabled | 启用 ignite-compute 组件 | true | 布尔值 |
camel.component.ignite-compute.ignite | 设置 Ignite 实例。选项是 org.apache.ignite.Ignite 类型。 | 字符串 | |
camel.component.ignite-compute.ignite-configuration | 允许用户设置 programmatic IgniteConfiguration。选项是 org.apache.ignite.configuration.IgniteConfiguration 类型。 | 字符串 | |
camel.component.ignite-compute.resolve-property-placeholders | 启动时组件是否应解析自身上的属性占位符。只有属于 String 类型的属性才能使用属性占位符。 | true | 布尔值 |
157.2.1. 预期的有效负载类型 复制链接链接已复制到粘贴板!
每个操作都需要指定类型:
操作 | 预期的有效负载 |
---|---|
调用 | IgniteCallable 或单个 IgniteCallable 的集合。 |
BROADCAST | IgniteCallable, IgniteRunnable, IgniteClosure. |
APPLY | IgniteClosure. |
EXECUTE | 如果 taskName 选项不是 null,则 ComputeTask, Class<? 会扩展 ComputeTask> 或代表参数的对象。 |
运行 | 一个 IgniteRunnables 的集合,或一个 IgniteRunnable。 |
AFFINITY_CALL | IgniteCallable. |
AFFINITY_RUN | IgniteRunnable. |
157.2.2. 使用的标头 复制链接链接已复制到粘贴板!
此端点使用以下标头:
标头名称 | 常数 | 预期类型 | 描述 |
---|---|---|---|
CamelIgniteComputeExecutionType | IgniteConstants.IGNITE_COMPUTE_EXECUTION_TYPE | IgniteComputeExecutionType enum | 允许您动态更改要执行的计算操作。 |
CamelIgniteComputeParameters | IgniteConstants.IGNITE_COMPUTE_PARAMS | 任何对象或对象集合。 | APPLY、BROADCAST 和 EXECUTE 操作的参数. |
CamelIgniteComputeReducer | IgniteConstants.IGNITE_COMPUTE_REDUCER | IgniteReducer | APPLY 和 CALL 操作的减少。 |
CamelIgniteComputeAffinityCacheName | IgniteConstants.IGNITE_COMPUTE_AFFINITY_CACHE_NAME | 字符串 | AFFINITY_CALL 和 AFFINITY_RUN 操作的关联性缓存名称。 |
CamelIgniteComputeAffinityKey | IgniteConstants.IGNITE_COMPUTE_AFFINITY_KEY | 对象 | AFFINITY_CALL 和 AFFINITY_RUN 操作的关联性密钥。 |