|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.GPServer
public class GPServer
COM Class 'GPServer'. Generated 3/19/2015 1:20:45 PM from 'C:\ArcGIS\COM\esriGeoprocessing.olb'
Description 'GP Server Class.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.geoprocessing.IGPServer |
---|
IID, IID234f4a93_8516_4247_914c_57c59f1d3f5f, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IRequestHandler2 |
---|
IID, IID8319e7d0_8ad1_48ed_aa99_03f9d0c93ba8, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IRequestHandler |
---|
IID46a0e2ea_3b64_4a46_bd78_88a1660f35bb |
Fields inherited from interface com.esri.arcgis.system.IObjectActivate |
---|
IID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummy |
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo |
---|
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy |
Fields inherited from interface com.esri.arcgis.server.IServerObject |
---|
IID, IID0ad6ab40_9d6a_4bf8_8b86_eb89406dfc6c, xxDummy |
Fields inherited from interface com.esri.arcgis.server.IServerObjectExtensionManager |
---|
IID, IID25d8b9dd_c7e8_4da4_bf4b_08a67087ceea, xxDummy |
Fields inherited from interface com.esri.arcgis.geoprocessing.IGPServer2 |
---|
IID, IID27909bc6_7ad1_4f5a_8e90_1bb8b95a569f, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IRESTRequestHandler |
---|
IID, IID9d66a418_d54a_48ed_88bd_043a25fa9c83, xxDummy |
Constructor Summary | |
---|---|
GPServer()
Constructs a GPServer using ArcGIS Engine. |
|
GPServer(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPServer theGPServer = (GPServer) obj; |
Method Summary | |
---|---|
void |
activate()
Activates the object. |
void |
cancelJob(java.lang.String jobID)
Cancels the specified job. |
void |
construct(IPropertySet props)
Two phase object construction. |
void |
deactivate()
Deactivates the object. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IGPResult |
execute(java.lang.String toolName,
IGPValues values,
IGPResultOptions pOptions)
Executes the specified tool with the supplied values and options and returns the results. |
IGPResult |
execute(java.lang.String toolName,
IGPValues values,
IGPResultOptions options,
IPropertySet envValues)
Executes the specified tool with the supplied values and options and returns the results. |
IServerObjectExtension |
findExtensionByCLSID(java.lang.String cLSID)
Returns a server object extension found using a string representation of its class ID. |
IServerObjectExtension |
findExtensionByTypeName(java.lang.String name)
Returns a server object extension found using its type name. |
static java.lang.String |
getClsid()
getClsid. |
java.lang.String |
getConfigurationName()
Name of the server object configuration that defines the server object. |
int |
getExecutionType()
Indicates if the geoprocessing server is synchronous or asynchronous. |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Deprecated. Internal use only. |
IPropertySet |
getJobEnvironmentValues(java.lang.String jobID)
Returns the enviornment values for the job. |
IGPValues |
getJobInputValues(java.lang.String jobID,
IStringArray parameterNames)
Returns the input values for the job. |
IJobMessages |
getJobMessages(java.lang.String jobID)
Returns the messages of the specified job. |
IGPResult |
getJobResult(java.lang.String jobID,
IStringArray parameterNames,
IGPResultOptions pOptions)
Returns the results of the specified job. |
IEnvelope |
getJobResultMapExtent(java.lang.String jobID)
Returns the extent for the job. |
IGPResultOptions |
getJobResultOptions(java.lang.String jobID)
Returns the result options for the job. |
int |
getJobStatus(java.lang.String jobID)
Returns the status of the specified job. |
java.lang.String |
getJobToolName(java.lang.String jobID)
Returns the tool name for the job. |
java.lang.String |
getResultMapServerName()
Indicates if there is an associated map server to draw the results and the name of the map server. |
IGDSData |
getResultWorkspace(java.lang.String jobID,
int transportType)
Returns a zip file of the results workspace. |
java.lang.String |
getSchema()
This method returns the resource hierarchy of a REST based SOE. |
IGPToolInfos |
getTaskInfos()
Returns the tool information of the available tasks. |
IStringArray |
getTaskNames()
Returns the names of the available tasks. |
IGPToolInfo |
getToolInfo(java.lang.String toolName)
Returns the tool information of the specified tool name. |
IGPToolInfos |
getToolInfos()
Returns the tool information of the available tools. |
IStringArray |
getToolNames()
Returns the names of the available tools. |
java.lang.String |
getTypeName()
Type of the server object (MapServer or GeocodeServer). |
byte[] |
handleBinaryRequest(byte[] request)
Handles a binary request. |
byte[] |
handleBinaryRequest2(java.lang.String capabilities,
byte[] request)
Handles a binary request with explicit capabilities. |
byte[] |
handleRESTRequest(java.lang.String capabilities,
java.lang.String resourceName,
java.lang.String operationName,
java.lang.String operationInput,
java.lang.String outputFormat,
java.lang.String requestProperties,
java.lang.String[] responseProperties)
Handles REST requests for SOE. |
java.lang.String |
handleStringRequest(java.lang.String capabilities,
java.lang.String request)
Handles a SOAP string request. |
int |
hashCode()
the hashcode for this object |
void |
initLogging(ILog log)
Initializes an object with a log. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
release()
Release a GPServer. |
java.lang.String |
submitJob(java.lang.String toolName,
IGPValues values)
Submits the specified tool with the supplied values and options and returns the job id. |
java.lang.String |
submitJob(java.lang.String toolName,
IGPValues values,
IGPResultOptions options,
IPropertySet envValues)
Submits the specified tool with the supplied values and options and returns the job id. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPServer() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problems
java.net.UnknownHostException
- if there are interop problemspublic GPServer(java.lang.Object obj) throws java.io.IOException
GPServer theGPServer = (GPServer) obj;
obj
to GPServer
.
obj
- an object returned from ArcGIS Engine or Server
java.io.IOException
- if there are interop problemsMethod Detail |
---|
public static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public IStringArray getToolNames() throws java.io.IOException, AutomationException
getToolNames
in interface IGPServer
getToolNames
in interface IGPServer2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPToolInfos getToolInfos() throws java.io.IOException, AutomationException
getToolInfos
in interface IGPServer
getToolInfos
in interface IGPServer2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPToolInfo getToolInfo(java.lang.String toolName) throws java.io.IOException, AutomationException
getToolInfo
in interface IGPServer
getToolInfo
in interface IGPServer2
toolName
- The toolName (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getTaskNames() throws java.io.IOException, AutomationException
getTaskNames
in interface IGPServer
getTaskNames
in interface IGPServer2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPToolInfos getTaskInfos() throws java.io.IOException, AutomationException
getTaskInfos
in interface IGPServer
getTaskInfos
in interface IGPServer2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getResultMapServerName() throws java.io.IOException, AutomationException
getResultMapServerName
in interface IGPServer
getResultMapServerName
in interface IGPServer2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPResult execute(java.lang.String toolName, IGPValues values, IGPResultOptions pOptions) throws java.io.IOException, AutomationException
execute
in interface IGPServer
toolName
- The toolName (in)values
- A reference to a com.esri.arcgis.geoprocessing.IGPValues (in)pOptions
- A reference to a com.esri.arcgis.geoprocessing.IGPResultOptions (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String submitJob(java.lang.String toolName, IGPValues values) throws java.io.IOException, AutomationException
submitJob
in interface IGPServer
toolName
- The toolName (in)values
- A reference to a com.esri.arcgis.geoprocessing.IGPValues (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getJobStatus(java.lang.String jobID) throws java.io.IOException, AutomationException
getJobStatus
in interface IGPServer
getJobStatus
in interface IGPServer2
jobID
- The jobID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IJobMessages getJobMessages(java.lang.String jobID) throws java.io.IOException, AutomationException
getJobMessages
in interface IGPServer
getJobMessages
in interface IGPServer2
jobID
- The jobID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPResult getJobResult(java.lang.String jobID, IStringArray parameterNames, IGPResultOptions pOptions) throws java.io.IOException, AutomationException
getJobResult
in interface IGPServer
getJobResult
in interface IGPServer2
jobID
- The jobID (in)parameterNames
- A reference to a com.esri.arcgis.system.IStringArray (in)pOptions
- A reference to a com.esri.arcgis.geoprocessing.IGPResultOptions (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void cancelJob(java.lang.String jobID) throws java.io.IOException, AutomationException
cancelJob
in interface IGPServer
cancelJob
in interface IGPServer2
jobID
- The jobID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getExecutionType() throws java.io.IOException, AutomationException
getExecutionType
in interface IGPServer
getExecutionType
in interface IGPServer2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGDSData getResultWorkspace(java.lang.String jobID, int transportType) throws java.io.IOException, AutomationException
getResultWorkspace
in interface IGPServer
getResultWorkspace
in interface IGPServer2
jobID
- The jobID (in)transportType
- A com.esri.arcgis.geodatabasedistributed.esriGDSTransportType constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void construct(IPropertySet props) throws java.io.IOException, AutomationException
construct
in interface IObjectConstruct
props
- A reference to a com.esri.arcgis.system.IPropertySet (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleBinaryRequest(byte[] request) throws java.io.IOException, AutomationException
handleBinaryRequest
in interface IRequestHandler
request
- An unsigned byte (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String handleStringRequest(java.lang.String capabilities, java.lang.String request) throws java.io.IOException, AutomationException
handleStringRequest
in interface IRequestHandler
capabilities
- The capabilities (in)request
- The request (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleBinaryRequest2(java.lang.String capabilities, byte[] request) throws java.io.IOException, AutomationException
handleBinaryRequest2
in interface IRequestHandler2
capabilities
- The capabilities (in)request
- An unsigned byte (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void activate() throws java.io.IOException, AutomationException
activate
in interface IObjectActivate
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deactivate() throws java.io.IOException, AutomationException
deactivate
in interface IObjectActivate
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initLogging(ILog log) throws java.io.IOException, AutomationException
initLogging
in interface ILogSupport
log
- A reference to a com.esri.arcgis.system.ILog (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getConfigurationName() throws java.io.IOException, AutomationException
getConfigurationName
in interface IServerObject
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getTypeName() throws java.io.IOException, AutomationException
getTypeName
in interface IServerObject
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByCLSID(java.lang.String cLSID) throws java.io.IOException, AutomationException
findExtensionByCLSID
in interface IServerObjectExtensionManager
cLSID
- The cLSID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IServerObjectExtension findExtensionByTypeName(java.lang.String name) throws java.io.IOException, AutomationException
findExtensionByTypeName
in interface IServerObjectExtensionManager
name
- The name (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPResult execute(java.lang.String toolName, IGPValues values, IGPResultOptions options, IPropertySet envValues) throws java.io.IOException, AutomationException
execute
in interface IGPServer2
toolName
- The toolName (in)values
- A reference to a com.esri.arcgis.geoprocessing.IGPValues (in)options
- A reference to a com.esri.arcgis.geoprocessing.IGPResultOptions (in)envValues
- A reference to a com.esri.arcgis.system.IPropertySet (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String submitJob(java.lang.String toolName, IGPValues values, IGPResultOptions options, IPropertySet envValues) throws java.io.IOException, AutomationException
submitJob
in interface IGPServer2
toolName
- The toolName (in)values
- A reference to a com.esri.arcgis.geoprocessing.IGPValues (in)options
- A reference to a com.esri.arcgis.geoprocessing.IGPResultOptions (in)envValues
- A reference to a com.esri.arcgis.system.IPropertySet (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getJobToolName(java.lang.String jobID) throws java.io.IOException, AutomationException
getJobToolName
in interface IGPServer2
jobID
- The jobID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPValues getJobInputValues(java.lang.String jobID, IStringArray parameterNames) throws java.io.IOException, AutomationException
getJobInputValues
in interface IGPServer2
jobID
- The jobID (in)parameterNames
- A reference to a com.esri.arcgis.system.IStringArray (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPResultOptions getJobResultOptions(java.lang.String jobID) throws java.io.IOException, AutomationException
getJobResultOptions
in interface IGPServer2
jobID
- The jobID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getJobEnvironmentValues(java.lang.String jobID) throws java.io.IOException, AutomationException
getJobEnvironmentValues
in interface IGPServer2
jobID
- The jobID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getJobResultMapExtent(java.lang.String jobID) throws java.io.IOException, AutomationException
getJobResultMapExtent
in interface IGPServer2
jobID
- The jobID (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] handleRESTRequest(java.lang.String capabilities, java.lang.String resourceName, java.lang.String operationName, java.lang.String operationInput, java.lang.String outputFormat, java.lang.String requestProperties, java.lang.String[] responseProperties) throws java.io.IOException, AutomationException
This method is invoked by ArcGIS Server's REST handler, which intercepts client's request (in URL form), parses it and passes it on to this method in form of parameter values.
The REST SOE developer must add logic to use these parameter values to determine which resource/operation is being requested and accordingly handle these requests and generate responses in the output format indicated by the "outputFormat" parameter. For more information on developing REST SOEs, please consult the Java ArcObjects Developer Guide.
Developer doc: Developing extensions > Server Object Extensions > SOE Web Services > REST Web Services > Developing SOE REST Web Services
Samples: Samples > Server Object Extensions section
handleRESTRequest
in interface IRESTRequestHandler
capabilities
- The capabilities supported by the SOE. An admin can choose which
capabilities are enabled on a particular SOE (in ArcGIS Manager or ArcCatalog), based on certain criteria such as security roles.
This list of allowed capabilities is then sent to this method, at runtime, as a comma separated list. (in)resourceName
- Name of the resource being addressed. If empty, its assumed
that root resource is being addressed. (in)operationName
- Name of the operation being invoked. If empty, description of
resource is returned. (in)operationInput
- Input parameters, in form of comma separated list, to the operation specified by operationName parameter. (in)outputFormat
- OutputFormat of operation. Possible formats are JSON, HTML, AMF, etc. (in)requestProperties
- The requestProperties (in)responseProperties
- The responseProperties (out)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getSchema() throws java.io.IOException, AutomationException
For an SOE that has a root resource (called "root") with one operation ("operation0"), and 2 sub-resources with one operation each ("operation1" and "operation2" respectively), the schema would look like:
{
"name": "MyRESTSOE",
"description": "My REST SOE with 3 resources and 1 operation each.",
"isCollection": false,
"operations": [
{
"name": "operation0",
"parameters": ["param01"],
"supportedOutputFormats": ["json"]
}
],
"resources": [
{
"name": "subresource1",
"description": "Sub Resource 1",
"isCollection": true,
"operations": [
{
"name": "operation1",
"parameters": ["param10", "param11"],
"supportedOutputFormats": ["json"]
}
]
},
{
"name": "subresource2",
"description": "Sub Resource 2",
"isCollection": true,
"operations": [
{
"name": "operation2",
"parameters": ["param20", "param21"],
"supportedOutputFormats": ["json"]
}
]
}
]
}
getSchema
in interface IRESTRequestHandler
java.io.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 |