com.esri.core.tasks.ags.geoprocessing
Class GPJobResource

java.lang.Object
  extended by com.esri.core.tasks.ags.geoprocessing.GPJobResource

public class GPJobResource
extends Object

This class represents a job submitted using Geoprocessor#submitJob. 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.

Since:
1.0

Nested Class Summary
static class GPJobResource.JobStatus
          The job status.
 
Constructor Summary
GPJobResource()
           
 
Method Summary
static GPJobResource fromJson(org.codehaus.jackson.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 GPParameter.
 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 GPParameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPJobResource

public GPJobResource()
Method Detail

getJobID

public String getJobID()
Gets the job ID.

Returns:
the job ID.
Since:
1.0

getJobStatus

public GPJobResource.JobStatus getJobStatus()
Gets the job status.

Returns:
the job status.
Since:
1.0

getInputParameters

public GPJobParameter[] getInputParameters()
Gets the array of input GPParameter.

Returns:
the input parameters.
Since:
1.0

getOutputParameters

public GPJobParameter[] getOutputParameters()
Gets the array of output GPParameter.

Returns:
the outputParameters
Since:
1.0

getMessages

public GPMessage[] getMessages()
Gets the array of GPMessage.

Returns:
the messages
Since:
1.0

fromJson

public static GPJobResource fromJson(org.codehaus.jackson.JsonParser parser)
                              throws Exception
Static method generating a GP Parameter based on the GPParameter Json representation the Json Parser is pointing to.

Parameters:
parser - a Json parser pointing to a Json representation of a GP Parameter object.
Returns:
a GPParameter of the type defined in the Json representation
Throws:
Exception
Since:
1.0


Copyright © 2012. All Rights Reserved.