|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IThreadedProcessor
Provides access to a multi-threaded processor that executes multiple jobs in parallel.
| Method Summary | |
|---|---|
void |
cancel()
Cancels current executing jobs. |
void |
execute(IEnumThreadedJobs pJobs,
int numThreads,
ITrackCancel pTrackCancel)
Executes a given number of jobs in specified number of threads. |
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. |
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. |
| Method Detail |
|---|
void execute(IEnumThreadedJobs pJobs,
int numThreads,
ITrackCancel pTrackCancel)
throws IOException,
AutomationException
pJobs - 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.
void setResultHandlerByRef(IThreadedJobResultHandler ppThreadedJobResultHandler)
throws IOException,
AutomationException
ppThreadedJobResultHandler - A reference to a com.esri.arcgis.datasourcesraster.IThreadedJobResultHandler (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IThreadedJobResultHandler getResultHandler()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void cancel()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setTotalWork(int pTotalWork)
throws IOException,
AutomationException
pTotalWork - The pTotalWork (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getTotalWork()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getWorkDone()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setWorkDone(int pWorkDone)
throws IOException,
AutomationException
pWorkDone - The pWorkDone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IErrorInfo getErrorInfo()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getFailedThreadCount()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setStopOnFirstError(boolean pbStopOnFirstError)
throws IOException,
AutomationException
pbStopOnFirstError - The pbStopOnFirstError (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isStopOnFirstError()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setWaitInterval(int pWaitInterval)
throws IOException,
AutomationException
pWaitInterval - The pWaitInterval (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getWaitInterval()
throws IOException,
AutomationException
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 | ||||||||