public class ElasticsearchReindex extends AbstractSchedTaskJobDelegate
Modifier and Type | Field and Description |
---|---|
protected AnyObjectDAO |
anyObjectDAO |
protected org.elasticsearch.client.RestHighLevelClient |
client |
protected GroupDAO |
groupDAO |
protected ElasticsearchIndexManager |
indexManager |
protected UserDAO |
userDAO |
protected ElasticsearchUtils |
utils |
auditManager, entityFactory, interrupt, interrupted, LOG, notificationManager, publisher, task, taskDAO, taskDataBinder, taskExecDAO
Constructor and Description |
---|
ElasticsearchReindex() |
Modifier and Type | Method and Description |
---|---|
protected org.elasticsearch.xcontent.XContentBuilder |
anyObjectMapping() |
protected org.elasticsearch.xcontent.XContentBuilder |
anyObjectSettings() |
protected org.elasticsearch.xcontent.XContentBuilder |
auditMapping() |
protected org.elasticsearch.xcontent.XContentBuilder |
auditSettings() |
protected String |
doExecute(boolean dryRun,
org.quartz.JobExecutionContext context)
The actual execution, delegated to child classes.
|
protected org.elasticsearch.xcontent.XContentBuilder |
groupMapping() |
protected org.elasticsearch.xcontent.XContentBuilder |
groupSettings() |
protected boolean |
hasToBeRegistered(TaskExec execution)
Template method to determine whether this job's task execution has to be persisted or not.
|
protected org.elasticsearch.xcontent.XContentBuilder |
userMapping() |
protected org.elasticsearch.xcontent.XContentBuilder |
userSettings() |
execute, interrupt, isInterrupted, register, setStatus
@Autowired protected org.elasticsearch.client.RestHighLevelClient client
@Autowired protected ElasticsearchIndexManager indexManager
@Autowired protected ElasticsearchUtils utils
@Autowired protected UserDAO userDAO
@Autowired protected GroupDAO groupDAO
@Autowired protected AnyObjectDAO anyObjectDAO
protected org.elasticsearch.xcontent.XContentBuilder userSettings() throws IOException
IOException
protected org.elasticsearch.xcontent.XContentBuilder groupSettings() throws IOException
IOException
protected org.elasticsearch.xcontent.XContentBuilder anyObjectSettings() throws IOException
IOException
protected org.elasticsearch.xcontent.XContentBuilder auditSettings() throws IOException
IOException
protected org.elasticsearch.xcontent.XContentBuilder userMapping() throws IOException
IOException
protected org.elasticsearch.xcontent.XContentBuilder groupMapping() throws IOException
IOException
protected org.elasticsearch.xcontent.XContentBuilder anyObjectMapping() throws IOException
IOException
protected org.elasticsearch.xcontent.XContentBuilder auditMapping() throws IOException
IOException
protected String doExecute(boolean dryRun, org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
AbstractSchedTaskJobDelegate
doExecute
in class AbstractSchedTaskJobDelegate
dryRun
- whether to actually touch the datacontext
- Quartz' execution context, can be used to pass parameters to the joborg.quartz.JobExecutionException
- if anything goes wrongprotected boolean hasToBeRegistered(TaskExec execution)
AbstractSchedTaskJobDelegate
hasToBeRegistered
in class AbstractSchedTaskJobDelegate
execution
- task executionCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.