Class ConfigureManagedJobs

  • All Implemented Interfaces:
    AdminCommand

    @Service(name="configure-managed-jobs")
    @PerLookup
    @CommandLock(NONE)
    public class ConfigureManagedJobs
    extends Object
    implements AdminCommand
    This command manages configured jobs Managed jobs are commands which are annotated with @ManagedJob ,@Progress or running with --detach You can configure the job retention period, job inactivity period,initial-delay,poll-interval persisting options for those jobs which will be used by the Job Manager to purge the jobs according to the criteria specified. Definition of parameters: job-retention-period - Time period to store the jobs. Defaults 24 hours. job-inactivity-period -Time period after which we expire an inactive, non responsive command initial-delay - Initial delay after which the cleanup service should start purging This is useful when the server restarts will provide some time for the Job Manager to bootstrap poll-interval - The time interval after which the JobCleanupService should poll for expired jobs
    Author:
    Bhakti Mehta
    • Constructor Detail

      • ConfigureManagedJobs

        public ConfigureManagedJobs()
    • Method Detail

      • execute

        public void execute​(AdminCommandContext context)
        Description copied from interface: AdminCommand
        Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
        Specified by:
        execute in interface AdminCommand
        Parameters:
        context - information