Visual Basic (Declaration) | |
---|---|
Public Enum GPServiceType Inherits System.Enum |
C# | |
---|---|
public enum GPServiceType : System.Enum |
When creating LocalGeoprocessingServices to run Geoprocessing tools and models you must choose whether that service will run synchronously (Execute), asynchronously (SubmitJob) or asynchronously with an dedicated LocalMapService instance to draw the result (SubmitJobWithMapServerResult). The synchronous Execute option should be chosen if the tool will take less than 15 seconds to complete but for larger and more complex tools which take longer than 15 seconds it is recommended that the asynchronous SubmitJob option is used. The synchronous Execute option will result in a single RuntimeLocalServer.exe worker process being created to perform the work (in addition to the primary RuntimeLocalServer process) whereas the asynchronous SubmitJob option will result in two RuntimeLocalServer.exe processes, one to undertake the actual processing and one to monitor the processing. Lastly, the asynchronous option with a map server result produces three RuntimeLocalServer.exe processes where the third one is a LocalMapService instance employed to render the results of the Geoprocessing operation. Once the LocalGeoprocessingService has started the setting becomes read-only for the lifetime of that service and cannot be changed once the service is running.
The Geoprocessor Task has methods which correspond to the execution type selected when creating the LocalGeoprocessingService:
- For Execute use the Geoprocessor.Execute or Geoprocessor.ExecuteAsync method.
- For SubmitJob use the Geoprocessor.SubmitJob or Geoprocessor.SubmitJobAsync method.
- For SubmitJob use the Geoprocessor.SubmitJob or Geoprocessor.SubmitJobAsync method in conjunction with the ESRI.ArcGIS.Client.Tasks.Geoprocessor.GetResultImageLayer or ESRI.ArcGIS.Client.Tasks.Geoprocessor.GetResultImageLayerAsync method.
Member | Description |
---|---|
Execute | The service will execute tasks synchronously on the LocalServer. |
SubmitJob | The service will run tasks asynchronously on the LocalServer. |
SubmitJobWithMapServerResult | The service will run tasks asynchronously, a job id is used to poll for progress. |
System.Object
System.ValueType
System.Enum
ESRI.ArcGIS.Client.Local.GPServiceType
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8