public class

GPJobResource

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.ags.geoprocessing.GPJobResource

Class Overview

This class represents a job submitted asynchronously. It provides basic information about the job such as the job ID, status and messages. Additionally, if the job has successfully completed, it provides information about the output parameters as well as input parameters.

Summary

Nested Classes
enum GPJobResource.JobStatus The job status. 
Public Constructors
GPJobResource()
Public Methods
static GPJobResource fromJson(JsonParser parser)
Static method generating a GP Parameter based on the GPParameter Json representation the Json Parser is pointing to.
GPJobParameter[] getInputParameters()
Gets the array of input GPJobParameters.
String getJobID()
Gets the job ID.
GPJobResource.JobStatus getJobStatus()
Gets the job status.
GPMessage[] getMessages()
Gets the array of GPMessage.
GPJobParameter[] getOutputParameters()
Gets the array of output GPJobParameters.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GPJobResource ()

Public Methods

public static GPJobResource fromJson (JsonParser parser)

Static method generating a GP Parameter based on the GPParameter Json representation the Json Parser is pointing to.

Parameters
parser JsonParser: a Json parser pointing to a Json representation of a GP Parameter object.
Returns
GPJobResource a GPParameter of the type defined in the Json representation
Throws
Exception when the Json cannot be parsed

public GPJobParameter[] getInputParameters ()

Gets the array of input GPJobParameters.

Returns
GPJobParameter[] the input parameters.

public String getJobID ()

Gets the job ID.

Returns
String the job ID.

public GPJobResource.JobStatus getJobStatus ()

Gets the job status.

Returns
GPJobResource.JobStatus the job status.

public GPMessage[] getMessages ()

Gets the array of GPMessage.

Returns
GPMessage[] the geoprocessing messages

public GPJobParameter[] getOutputParameters ()

Gets the array of output GPJobParameters.

Returns
GPJobParameter[] the output parameters