com.supermap.dtf.execute
接口 IDataTransProcessExecuteStrategy
-
public interface IDataTransProcessExecuteStrategy
工具执行策略接口 需求: 该接口开出来的目的是为了支持一套工具定义,不同环境执行(如传统工具、大数据工具)。
开出接口的一些思考: 工具是通过 SPI 去加载的,开始就已经初始化完成,抽象类是无法通过SPI去加载的,通过这种抽象类-实现类的方式去共用参数,然后去调用各种的执行逻辑是走不了的。 目前只能人为的在代码中去判定执行环境,从而选用不同的执行逻辑。
-
-
方法详细资料
-
execute
boolean execute()
具体的执行方法,等效于IProcess.execute()
实现- 返回:
- 执行是否成功
-
getValue
<T> T getValue(String inputName)
根据输入名来获取值- 类型参数:
T
- input 类型 ()}- 参数:
inputName
- 输入名IInput.getName()
- 返回:
- 对应值
-
fastCancel
default void fastCancel()
快速取消接口,不同策略的取消实现并不相同,如组件的策略和Spark 的取消策略
-
clean
default void clean()
提供一个清除接口,执行完调用
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.