public abstract class AbstractBatchJobChannelProcess extends ThreadPoolExecutor implements com.revolsys.parallel.process.Process, PropertyChangeListener
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
Constructor and Description |
---|
AbstractBatchJobChannelProcess(String jobStatusToProcess) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterExecute(Runnable r,
Throwable t) |
void |
execute(Runnable command) |
BatchJobService |
getBatchJobService()
Get the batch job service used to interact with the database.
|
String |
getBeanName() |
CpfConfig |
getConfig() |
com.revolsys.parallel.channel.Channel<com.revolsys.identifier.Identifier> |
getIn() |
com.revolsys.parallel.process.ProcessNetwork |
getProcessNetwork() |
protected abstract boolean |
processJob(com.revolsys.identifier.Identifier batchJobId) |
void |
run() |
protected void |
run(com.revolsys.parallel.channel.Channel<com.revolsys.identifier.Identifier> in) |
void |
schedule(com.revolsys.identifier.Identifier batchJobId) |
void |
scheduleFromDatabase(String moduleName,
String businessApplicationName) |
void |
setBatchJobService(BatchJobService batchJobService)
Set the batch job service used to interact with the database.
|
void |
setBeanName(String beanName) |
void |
setProcessNetwork(com.revolsys.parallel.process.ProcessNetwork processNetwork) |
String |
toString() |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
propertyChange
public AbstractBatchJobChannelProcess(String jobStatusToProcess)
protected void afterExecute(Runnable r, Throwable t)
afterExecute
in class ThreadPoolExecutor
public void execute(Runnable command)
execute
in interface Executor
execute
in class ThreadPoolExecutor
public BatchJobService getBatchJobService()
public String getBeanName()
getBeanName
in interface com.revolsys.parallel.process.Process
public CpfConfig getConfig()
public com.revolsys.parallel.channel.Channel<com.revolsys.identifier.Identifier> getIn()
public com.revolsys.parallel.process.ProcessNetwork getProcessNetwork()
getProcessNetwork
in interface com.revolsys.parallel.process.Process
protected abstract boolean processJob(com.revolsys.identifier.Identifier batchJobId)
protected void run(com.revolsys.parallel.channel.Channel<com.revolsys.identifier.Identifier> in)
public void schedule(com.revolsys.identifier.Identifier batchJobId)
public void scheduleFromDatabase(String moduleName, String businessApplicationName)
public void setBatchJobService(BatchJobService batchJobService)
batchJobService
- The batch job service used to interact with the
database.public void setBeanName(String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void setProcessNetwork(com.revolsys.parallel.process.ProcessNetwork processNetwork)
setProcessNetwork
in interface com.revolsys.parallel.process.Process
public String toString()
toString
in class ThreadPoolExecutor
Copyright © 2008–2017 Province of British Columbia. All rights reserved.