public abstract class AbstractProvisioningJobDelegate<T extends ProvisioningTask> extends AbstractSchedTaskJobDelegate
Modifier and Type | Field and Description |
---|---|
protected String |
adminUser |
protected AnyTypeDAO |
anyTypeDAO
AnyTypeDAO DAO
|
protected ConnectorFactory |
connFactory
ConnInstance loader.
|
protected Optional<ProvisionSorter> |
perContextProvisionSorter |
protected PolicyDAO |
policyDAO
Policy DAO.
|
protected ExternalResourceDAO |
resourceDAO
Resource DAO.
|
auditManager, entityFactory, interrupt, interrupted, LOG, notificationManager, publisher, task, taskDAO, taskDataBinder, taskExecDAO
Constructor and Description |
---|
AbstractProvisioningJobDelegate() |
Modifier and Type | Method and Description |
---|---|
protected String |
createReport(Collection<ProvisioningReport> provResults,
ExternalResource resource,
boolean dryRun)
Create a textual report of the provisionig operation, based on the trace level.
|
protected String |
doExecute(boolean dryRun,
org.quartz.JobExecutionContext context)
The actual execution, delegated to child classes.
|
protected abstract String |
doExecuteProvisioning(T task,
Connector connector,
boolean dryRun,
org.quartz.JobExecutionContext context) |
static String |
generate(Collection<ProvisioningReport> results,
TraceLevel level)
Helper method to invoke logging per provisioning result, for the given trace level.
|
protected Connector |
getConnector(T provisioningTask) |
protected ProvisionSorter |
getProvisionSorter(T task) |
protected Class<T> |
getTaskClassReference() |
protected boolean |
hasToBeRegistered(TaskExec execution)
Template method to determine whether this job's task execution has to be persisted or not.
|
execute, interrupt, isInterrupted, register, setStatus
protected String adminUser
@Autowired protected ConnectorFactory connFactory
@Autowired protected AnyTypeDAO anyTypeDAO
@Autowired protected ExternalResourceDAO resourceDAO
@Autowired protected PolicyDAO policyDAO
protected Optional<ProvisionSorter> perContextProvisionSorter
public static String generate(Collection<ProvisioningReport> results, TraceLevel level)
results
- provisioning resultslevel
- trace levelprotected ProvisionSorter getProvisionSorter(T task)
protected String createReport(Collection<ProvisioningReport> provResults, ExternalResource resource, boolean dryRun)
provResults
- Provisioning resultsresource
- Provisioning resourcedryRun
- dry run?protected Connector getConnector(T provisioningTask) throws org.quartz.JobExecutionException
org.quartz.JobExecutionException
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 abstract String doExecuteProvisioning(T task, Connector connector, boolean dryRun, org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
org.quartz.JobExecutionException
protected boolean hasToBeRegistered(TaskExec execution)
AbstractSchedTaskJobDelegate
hasToBeRegistered
in class AbstractSchedTaskJobDelegate
execution
- task executionCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.