Class AbstractProvisioningJobDelegate<T extends ProvisioningTask<T>>

    • Constructor Detail

      • AbstractProvisioningJobDelegate

        public AbstractProvisioningJobDelegate()
    • Method Detail

      • generate

        protected String generate​(Collection<ProvisioningReport> results,
                                  TraceLevel level)
        Helper method to invoke logging per provisioning result, for the given trace level.
        Parameters:
        results - provisioning results
        level - trace level
        Returns:
        report as string
      • createReport

        protected String createReport​(Collection<ProvisioningReport> provResults,
                                      ExternalResource resource,
                                      boolean dryRun)
        Create a textual report of the provisioning operation, based on the trace level.
        Parameters:
        provResults - Provisioning results
        resource - Provisioning resource
        dryRun - dry run?
        Returns:
        report as string
      • getConnector

        protected Connector getConnector​(T provisioningTask)
                                  throws org.quartz.JobExecutionException
        Throws:
        org.quartz.JobExecutionException
      • doExecute

        protected String doExecute​(boolean dryRun,
                                   String executor,
                                   org.quartz.JobExecutionContext context)
                            throws org.quartz.JobExecutionException
        Description copied from class: AbstractSchedTaskJobDelegate
        The actual execution, delegated to child classes.
        Specified by:
        doExecute in class AbstractSchedTaskJobDelegate<T extends ProvisioningTask<T>>
        Parameters:
        dryRun - whether to actually touch the data
        executor - the user executing this task
        context - Quartz' execution context, can be used to pass parameters to the job
        Returns:
        the task execution status to be set
        Throws:
        org.quartz.JobExecutionException - if anything goes wrong
      • doExecuteProvisioning

        protected abstract String doExecuteProvisioning​(T task,
                                                        Connector connector,
                                                        boolean dryRun,
                                                        String executor,
                                                        org.quartz.JobExecutionContext context)
                                                 throws org.quartz.JobExecutionException
        Throws:
        org.quartz.JobExecutionException
      • getTaskClassReference

        protected Class<T> getTaskClassReference()