public class SubmissionsPortionExecutionThread
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
SubmissionsPortionExecutionThread(int batchNumber,
java.util.List<SubmissionDto> submissions,
RunDto run,
CampaignDto campaign,
javax.sql.DataSource dataSource,
com.freedomoss.crowdcontrol.webharvest.policy.ExecutionManager executionManager,
MachineWorkerPool workerPool,
java.util.concurrent.atomic.AtomicBoolean automatedRunInfoUpdated,
IWebharvestTaskExecutor webharvestTaskExecutor,
java.util.Map<java.lang.String,java.lang.String> includedConfigs,
DatabaseProperties dataStoreProperties,
RetryTemplate failedLockRetryTemplate,
int processingCount,
com.freedomoss.requester.properties.ApplicationPropertiesBean applicationProperties,
boolean wait,
java.lang.String secureStorePassword,
MachineServiceHolder serviceHolder)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
forceStop()
Force stop execution of this thread
|
int |
getBatchNumber() |
java.lang.Thread |
getExecutingThread() |
RunDto |
getRun() |
java.util.List<java.lang.Long> |
getSubmissionIds() |
boolean |
isFinished()
Return true if execution of thread was finished
|
boolean |
isStarted() |
void |
run() |
void |
setStatus(SubmissionsPortionExecutionThreadStatus status) |
java.lang.String |
toString() |
public SubmissionsPortionExecutionThread(int batchNumber,
java.util.List<SubmissionDto> submissions,
RunDto run,
CampaignDto campaign,
javax.sql.DataSource dataSource,
com.freedomoss.crowdcontrol.webharvest.policy.ExecutionManager executionManager,
MachineWorkerPool workerPool,
java.util.concurrent.atomic.AtomicBoolean automatedRunInfoUpdated,
IWebharvestTaskExecutor webharvestTaskExecutor,
java.util.Map<java.lang.String,java.lang.String> includedConfigs,
DatabaseProperties dataStoreProperties,
RetryTemplate failedLockRetryTemplate,
int processingCount,
com.freedomoss.requester.properties.ApplicationPropertiesBean applicationProperties,
boolean wait,
java.lang.String secureStorePassword,
MachineServiceHolder serviceHolder)
batchNumber - number of the portionworkerPool - machine workers poolpublic void run()
run in interface java.lang.Runnablepublic void setStatus(SubmissionsPortionExecutionThreadStatus status)
public int getBatchNumber()
public RunDto getRun()
public boolean isFinished()
public boolean isStarted()
public void forceStop()
public java.util.List<java.lang.Long> getSubmissionIds()
public java.lang.Thread getExecutingThread()
public java.lang.String toString()
toString in class java.lang.Object