new SuperMap.ProcessingServiceBase(url, options)
common/iServer/ProcessingServiceBase.js, line 20
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
分布式分析服务地址。 |
||||||||||||||||||||||||
options |
Object |
参数。
|
Extends
Methods
-
addJob(url, params, paramType, seconds)
common/iServer/ProcessingServiceBase.js, line 81 -
添加分布式分析任务。
Name Type Description url
string 资源根地址。
params
Object 创建一个空间分析的请求参数。
paramType
string 请求参数类型。
seconds
number 开始创建后,获取创建成功结果的时间间隔。
-
inherited ajaxPolling()
common/iServer/CommonServiceBase.js, line 248 -
请求失败后,如果剩余请求失败次数不为 0,重新获取 URL 发送请求
-
inherited calculatePollingTimes()
common/iServer/CommonServiceBase.js, line 266 -
计算剩余请求失败执行次数。
-
inherited destroy()
common/iServer/CommonServiceBase.js, line 116 -
释放资源,将引用的资源属性置空。
-
inherited getCredential(url){SuperMap.Credential}
common/iServer/CommonServiceBase.js, line 190 -
获取凭据信息
Name Type Description url
string 服务地址。
Returns:
Type Description SuperMap.Credential 凭据信息对象。 -
getJobs(url)
common/iServer/ProcessingServiceBase.js, line 59 -
获取分布式分析任务。
Name Type Description url
string 资源地址。
-
inherited getUrlCompleted(result)
common/iServer/CommonServiceBase.js, line 221 -
请求成功后执行此方法。
Name Type Description result
Object 服务器返回的结果对象。
-
inherited getUrlFailed(result)
common/iServer/CommonServiceBase.js, line 232 -
请求失败后执行此方法。
Name Type Description result
Object 服务器返回的结果对象。
-
inherited isServiceSupportPolling()
common/iServer/CommonServiceBase.js, line 293 -
判断服务是否支持轮询。
-
inherited request(options)
common/iServer/CommonServiceBase.js, line 144 -
Name Type Description options
Object 参数。
Name Type Default Description method
string 'GET' 可选 请求方式,包括 "GET","POST","PUT","DELETE"。
url
string 可选 发送请求的地址。
params
Object 可选 作为查询字符串添加到 URL 中的一组键值对,此参数只适用于 GET 方式发送的请求。
data
string 可选 发送到服务器的数据。
success
function 请求成功后的回调函数。
failure
function 请求失败后的回调函数。
scope
Object 可选 如果回调函数是对象的一个公共方法,设定该对象的范围。
isInTheSameDomain
boolean 可选 请求是否在当前域中。
withCredentials
boolean false 可选 请求是否携带 cookie。
-
inherited serviceProcessCompleted(result)
common/iServer/CommonServiceBase.js, line 305 -
状态完成,执行此方法。
Name Type Description result
Object 服务器返回的结果对象。
-
inherited serviceProcessFailed(result)
common/iServer/CommonServiceBase.js, line 317 -
状态失败,执行此方法。
Name Type Description result
Object 服务器返回的结果对象。