public class GenerateSpatialDataService
extends java.lang.Object
动态分段分析服务类。
该类负责将客户设置的动态分段分析服务参数传递给服务端,并接收服务端返回的动态分段分析结果数据。
限定符和类型 | 类和说明 |
---|---|
static class |
GenerateSpatialDataService.GenerateSpatialDataEventListener
处理动态分段分析结果的监听器抽象类。
|
构造器和说明 |
---|
GenerateSpatialDataService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
GenerateSpatialDataResult |
getLastResult()
返回动态分段分析结果。
|
<T> void |
process(GenerateSpatialDataParameters params, GenerateSpatialDataService.GenerateSpatialDataEventListener listener)
根据动态分段分析与服务端完成异步通讯,即发送分析参数,并通过实现GenerateSpatialDataEventListener监听器处理分析结果。
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public GenerateSpatialDataService(java.lang.String url)
构造函数。
url
- 动态分段分析服务地址。如 http://ServerIP:8090/iserver/services/spatialanalyst-changchun/restjsr/spatialanalystpublic <T> void process(GenerateSpatialDataParameters params, GenerateSpatialDataService.GenerateSpatialDataEventListener listener)
根据动态分段分析与服务端完成异步通讯,即发送分析参数,并通过实现GenerateSpatialDataEventListener监听器处理分析结果。
params
- 动态分段分析参数信息。listener
- 处理分析结果的GenerateSpatialDataEventListener监听器。public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。public GenerateSpatialDataResult getLastResult()
返回动态分段分析结果。