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(java.util.List). 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.


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
equals, 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.

getJobStatus

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

Returns:
the job status.

getInputParameters

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

Returns:
the input parameters.

getOutputParameters

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

Returns:
the outputParameters

getMessages

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

Returns:
the messages

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


Copyright © 2012. All Rights Reserved.