|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.server.GPServerHelper
public class GPServerHelper
Constructor Summary | |
---|---|
GPServerHelper()
Constructs a GPServerHelper using ArcGIS Engine. |
|
GPServerHelper(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPServerHelper theGPServerHelper = (GPServerHelper) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
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. |
static String |
getClsid()
getClsid. |
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. |
int |
hashCode()
the hashcode for this object |
void |
init(String jobRegistryPath,
String jobsDirectoryPath)
Initializes the helper with the job registery and jobs directory. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public GPServerHelper() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GPServerHelper(Object obj) throws IOException
GPServerHelper theGPServerHelper = (GPServerHelper) obj;
obj
to GPServerHelper
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void init(String jobRegistryPath, String jobsDirectoryPath) throws IOException, AutomationException
init
in interface IGPServerHelper
jobRegistryPath
- The jobRegistryPath (in)jobsDirectoryPath
- The jobsDirectoryPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeStringJobResult(String jobID, String serviceName, String serviceType, String result) throws IOException, AutomationException
writeStringJobResult
in interface IGPServerHelper
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.public void writeBinaryJobResult(String jobID, String serviceName, String serviceType, byte[] result) throws IOException, AutomationException
writeBinaryJobResult
in interface IGPServerHelper
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.public void writeRESTJobResult(String jobID, String serviceName, String serviceType, String responseProperties, byte[] result) throws IOException, AutomationException
writeRESTJobResult
in interface IGPServerHelper
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.public String getStringRequestMessageType(String request) throws IOException, AutomationException
getStringRequestMessageType
in interface IGPServerHelper
request
- The request (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getBinaryRequestMessageType(byte[] request) throws IOException, AutomationException
getBinaryRequestMessageType
in interface IGPServerHelper
request
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getJobIDFromStringResponse(String response) throws IOException, AutomationException
getJobIDFromStringResponse
in interface IGPServerHelper
response
- The response (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getJobIDFromBinaryResponse(byte[] response) throws IOException, AutomationException
getJobIDFromBinaryResponse
in interface IGPServerHelper
response
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getStringJobDefinition(String jobID, String serviceName, String serviceType) throws IOException, AutomationException
getStringJobDefinition
in interface IGPServerHelper
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.public byte[] getBinaryJobDefinition(String jobID, String serviceName, String serviceType) throws IOException, AutomationException
getBinaryJobDefinition
in interface IGPServerHelper
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.public void getRESTJobDefinition(String jobID, String serviceName, String serviceType, String[] resourceName, String[] operationName, String[] operationInput, String[] outputFormat, String[] requestProperties) throws IOException, AutomationException
getRESTJobDefinition
in interface IGPServerHelper
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.public void writeJobStatusAndMessage(String jobID, String serviceName, String serviceType, int status, String message) throws IOException, AutomationException
writeJobStatusAndMessage
in interface IGPServerHelper
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.public int getJobStatus(String jobID, String serviceName, String serviceType) throws IOException, AutomationException
getJobStatus
in interface IGPServerHelper
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 |