| Constructor and Description |
|---|
AbstractBatch() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute(Map<String,Object> parameters)
The main execution method.
|
String |
getBatchId()
Id a the batch (used to register the job in Quartz scheduler).
|
abstract String |
getJobScheduling()
Define the cron used to run the batch periodically
|
boolean |
isRunningOnMasterOnly()
Set true if this job should not run on all nodes of the cluster
|
void |
setBatchId(String batchId)
Id a the batch (used to register the job in Quartz scheduler).
|
public String getBatchId()
BatchgetBatchId in interface Batchpublic void setBatchId(String batchId)
BatchsetBatchId in interface BatchbatchId - the identifier of the batchpublic boolean isRunningOnMasterOnly()
BatchisRunningOnMasterOnly in interface Batchpublic abstract String getJobScheduling()
BatchgetJobScheduling in interface Batchpublic abstract void execute(Map<String,Object> parameters) throws PortalException
Batchexecute in interface BatchPortalExceptionCopyright © 2020. All rights reserved.