public class RunExecutionThread
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
RunExecutionThread(java.lang.Long runId,
javax.sql.DataSource dataSource,
java.lang.Integer batchSize,
com.freedomoss.crowdcontrol.webharvest.policy.ExecutionManager executionManager,
com.freedomoss.requester.properties.ApplicationPropertiesBean propertiesBean,
MachineWorkerPool workerPool,
java.util.concurrent.ExecutorService executorService,
java.lang.Long campaignSourceId,
IWebharvestTaskExecutor webharvestTaskExecutor,
com.freedomoss.requester.service.datastore.IDataStoreAccessor dataStoreAccessor,
RetryTemplate failedLockRetryTemplate,
long period,
long delay,
java.lang.String secureStorePassword,
MachineServiceHolder serviceHolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishRunThread() |
void |
forceStop()
Force eagerly stop execution of all threads
|
java.util.Timer |
getCheckingTimer() |
java.lang.Long |
getRunId() |
java.util.List<SubmissionsPortionExecutionThread> |
getThreadList() |
void |
handleError(java.lang.Throwable t) |
boolean |
isFinished()
Tell if execution of this thread finished
|
void |
purgeTimer() |
void |
run() |
java.lang.String |
toString() |
public RunExecutionThread(java.lang.Long runId,
javax.sql.DataSource dataSource,
java.lang.Integer batchSize,
com.freedomoss.crowdcontrol.webharvest.policy.ExecutionManager executionManager,
com.freedomoss.requester.properties.ApplicationPropertiesBean propertiesBean,
MachineWorkerPool workerPool,
java.util.concurrent.ExecutorService executorService,
java.lang.Long campaignSourceId,
IWebharvestTaskExecutor webharvestTaskExecutor,
com.freedomoss.requester.service.datastore.IDataStoreAccessor dataStoreAccessor,
RetryTemplate failedLockRetryTemplate,
long period,
long delay,
java.lang.String secureStorePassword,
MachineServiceHolder serviceHolder)
public void run()
run in interface java.lang.Runnablepublic void purgeTimer()
public boolean isFinished()
public void forceStop()
public java.util.List<SubmissionsPortionExecutionThread> getThreadList()
public java.util.Timer getCheckingTimer()
public void finishRunThread()
public java.lang.Long getRunId()
public java.lang.String toString()
toString in class java.lang.Objectpublic void handleError(java.lang.Throwable t)