com.esri.arcgis.datasourcesraster
Interface IServerThreadedJob

All Superinterfaces:
Serializable
All Known Implementing Classes:
ConvertCacheStorageFormatJob, MapCacheExporterJob, MosaicDatasetJob

public interface IServerThreadedJob
extends Serializable

Executes in parallel and performs the job on the server.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void createContext()
          Create a server context associated with the job.
 IStream getContextStream()
          Returns a server context object serialized into a stream.
 String getHost()
          Server machine name.
 IServerContext getServerContext()
          The server context associated with the job.
 String getService()
          Service name.
 ITrackCancel getTrackCancel()
          Returns a cancel tracker object created on the server context.
 void releaseContext()
          Release the associated server context.
 void setHost(String pHost)
          Server machine name.
 void setService(String pService)
          Service name.
 

Method Detail

getHost

String getHost()
               throws IOException,
                      AutomationException
Server machine name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pHost
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHost

void setHost(String pHost)
             throws IOException,
                    AutomationException
Server machine name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
pHost - The pHost (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getService

String getService()
                  throws IOException,
                         AutomationException
Service name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The pService
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setService

void setService(String pService)
                throws IOException,
                       AutomationException
Service name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
pService - The pService (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createContext

void createContext()
                   throws IOException,
                          AutomationException
Create a server context associated with the job.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

releaseContext

void releaseContext()
                    throws IOException,
                           AutomationException
Release the associated server context.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getServerContext

IServerContext getServerContext()
                                throws IOException,
                                       AutomationException
The server context associated with the job.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.server.IServerContext
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTrackCancel

ITrackCancel getTrackCancel()
                            throws IOException,
                                   AutomationException
Returns a cancel tracker object created on the server context. Fails is no server context is available.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.system.ITrackCancel
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getContextStream

IStream getContextStream()
                         throws IOException,
                                AutomationException
Returns a server context object serialized into a stream.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A reference to a com.esri.arcgis.system.IStream
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.