|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGPServerHelper
Helper interface to process Geoprocessing requests.
| Method Summary | |
|---|---|
byte[] |
getBinaryJobDefinition(String jobID,
String serviceName,
String serviceType)
Gets the binary job definition for a given job ID. |
String |
getBinaryRequestMessageType(byte[] request)
Gets the type of the request from a binary message. |
String |
getJobIDFromBinaryResponse(byte[] response)
Extracts the job ID from a binary message that contains this information. |
String |
getJobIDFromStringResponse(String response)
Extracts the job ID from a Soap message that conatins this information. |
int |
getJobStatus(String jobID,
String serviceName,
String serviceType)
Returns the status of a job. |
void |
getRESTJobDefinition(String jobID,
String serviceName,
String serviceType,
String[] resourceName,
String[] operationName,
String[] operationInput,
String[] outputFormat,
String[] requestProperties)
Returns the REST job definition for a given job ID. |
String |
getStringJobDefinition(String jobID,
String serviceName,
String serviceType)
Gets the string job definition for given a job ID. |
String |
getStringRequestMessageType(String request)
Gets the type of the request from a string message. |
void |
init(String jobRegistryPath,
String jobsDirectoryPath)
Initializes the helper with the job registery and jobs directory. |
void |
writeBinaryJobResult(String jobID,
String serviceName,
String serviceType,
byte[] result)
Writes a binary job result to the job directory. |
void |
writeJobStatusAndMessage(String jobID,
String serviceName,
String serviceType,
int status,
String message)
Writes a specific job message and status for a given job ID. |
void |
writeRESTJobResult(String jobID,
String serviceName,
String serviceType,
String responseProperties,
byte[] result)
Writes a REST job result to the job directory. |
void |
writeStringJobResult(String jobID,
String serviceName,
String serviceType,
String result)
Writes a SOAP job result to the job directory. |
| Method Detail |
|---|
void init(String jobRegistryPath,
String jobsDirectoryPath)
throws IOException,
AutomationException
jobRegistryPath - The jobRegistryPath (in)jobsDirectoryPath - The jobsDirectoryPath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeStringJobResult(String jobID,
String serviceName,
String serviceType,
String result)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)result - The result (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeBinaryJobResult(String jobID,
String serviceName,
String serviceType,
byte[] result)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)result - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeRESTJobResult(String jobID,
String serviceName,
String serviceType,
String responseProperties,
byte[] result)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)responseProperties - The responseProperties (in)result - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getStringRequestMessageType(String request)
throws IOException,
AutomationException
request - The request (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getBinaryRequestMessageType(byte[] request)
throws IOException,
AutomationException
request - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getJobIDFromStringResponse(String response)
throws IOException,
AutomationException
response - The response (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getJobIDFromBinaryResponse(byte[] response)
throws IOException,
AutomationException
response - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getStringJobDefinition(String jobID,
String serviceName,
String serviceType)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
byte[] getBinaryJobDefinition(String jobID,
String serviceName,
String serviceType)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void getRESTJobDefinition(String jobID,
String serviceName,
String serviceType,
String[] resourceName,
String[] operationName,
String[] operationInput,
String[] outputFormat,
String[] requestProperties)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)resourceName - The resourceName (out: use single element array)operationName - The operationName (out: use single element array)operationInput - The operationInput (out: use single element array)outputFormat - The outputFormat (out: use single element array)requestProperties - The requestProperties (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void writeJobStatusAndMessage(String jobID,
String serviceName,
String serviceType,
int status,
String message)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)status - A com.esri.arcgis.system.esriJobStatus constant (in)message - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getJobStatus(String jobID,
String serviceName,
String serviceType)
throws IOException,
AutomationException
jobID - The jobID (in)serviceName - The serviceName (in)serviceType - The serviceType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||