|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.datasourcesraster.ThreadedProcessor
public class ThreadedProcessor
A threaded processor.
| Constructor Summary | |
|---|---|
ThreadedProcessor()
Constructs a ThreadedProcessor using ArcGIS Engine. |
|
ThreadedProcessor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ThreadedProcessor theThreadedProcessor = (ThreadedProcessor) obj; |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels current executing jobs. |
boolean |
equals(Object o)
Compare this object with another |
void |
execute(IEnumThreadedJobs pJobs,
int numThreads,
ITrackCancel pTrackCancel)
Executes a given number of jobs in specified number of threads. |
static String |
getClsid()
getClsid. |
IErrorInfo |
getErrorInfo()
Get errors from failed execution. |
int |
getFailedThreadCount()
Get number of threads failed. |
IThreadedJobResultHandler |
getResultHandler()
The result handler which, if specified, receives job results from each thread as they become available. |
int |
getTotalWork()
The total amount of work to be done by the processor. |
int |
getWaitInterval()
The duration (in milliseconds) that the main thread waits before continuing to poll busy worker threads for status. |
int |
getWorkDone()
The amount of work done by the processor. |
int |
hashCode()
the hashcode for this object |
boolean |
isStopOnFirstError()
Indicates whether execution should stop as soon as an error is encountered. |
void |
setResultHandlerByRef(IThreadedJobResultHandler ppThreadedJobResultHandler)
The result handler which, if specified, receives job results from each thread as they become available. |
void |
setStopOnFirstError(boolean pbStopOnFirstError)
Indicates whether execution should stop as soon as an error is encountered. |
void |
setTotalWork(int pTotalWork)
The total amount of work to be done by the processor. |
void |
setWaitInterval(int pWaitInterval)
The duration (in milliseconds) that the main thread waits before continuing to poll busy worker threads for status. |
void |
setWorkDone(int pWorkDone)
The amount of work done by the processor. |
| 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 ThreadedProcessor()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public ThreadedProcessor(Object obj)
throws IOException
ThreadedProcessor theThreadedProcessor = (ThreadedProcessor) obj;
obj to ThreadedProcessor.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void execute(IEnumThreadedJobs pJobs,
int numThreads,
ITrackCancel pTrackCancel)
throws IOException,
AutomationException
execute in interface IThreadedProcessorpJobs - A reference to a com.esri.arcgis.datasourcesraster.IEnumThreadedJobs (in)numThreads - The numThreads (in)pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setResultHandlerByRef(IThreadedJobResultHandler ppThreadedJobResultHandler)
throws IOException,
AutomationException
setResultHandlerByRef in interface IThreadedProcessorppThreadedJobResultHandler - A reference to a com.esri.arcgis.datasourcesraster.IThreadedJobResultHandler (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IThreadedJobResultHandler getResultHandler()
throws IOException,
AutomationException
getResultHandler in interface IThreadedProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void cancel()
throws IOException,
AutomationException
cancel in interface IThreadedProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTotalWork(int pTotalWork)
throws IOException,
AutomationException
setTotalWork in interface IThreadedProcessorpTotalWork - The pTotalWork (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTotalWork()
throws IOException,
AutomationException
getTotalWork in interface IThreadedProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWorkDone()
throws IOException,
AutomationException
getWorkDone in interface IThreadedProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWorkDone(int pWorkDone)
throws IOException,
AutomationException
setWorkDone in interface IThreadedProcessorpWorkDone - The pWorkDone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IErrorInfo getErrorInfo()
throws IOException,
AutomationException
getErrorInfo in interface IThreadedProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getFailedThreadCount()
throws IOException,
AutomationException
getFailedThreadCount in interface IThreadedProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStopOnFirstError(boolean pbStopOnFirstError)
throws IOException,
AutomationException
setStopOnFirstError in interface IThreadedProcessorpbStopOnFirstError - The pbStopOnFirstError (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isStopOnFirstError()
throws IOException,
AutomationException
isStopOnFirstError in interface IThreadedProcessorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWaitInterval(int pWaitInterval)
throws IOException,
AutomationException
setWaitInterval in interface IThreadedProcessorpWaitInterval - The pWaitInterval (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWaitInterval()
throws IOException,
AutomationException
getWaitInterval in interface IThreadedProcessorIOException - 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 | ||||||||