Home

 

Manage the scheduler


Overview

Use administrative commands to manage the scheduled jobs.

Before using administrative commands to run a job, determine which scheduler you want the job to run on. You can accept the default schedulers or you can define a job's scheduler by editing the configuration property associated with the task that you want to perform. The names of configuration properties that specify a job's scheduler end in "scheduler"

Use one of the following values for the schedulerName parameter:

To run administrative commands, use wsadmin to access the Activities configuration file:

If prompted to specify which server to connect to, type 1.

The information about which server to connect to is only used by wsadmin when you are running administrative commands to collect statistics.


Tasks

  1. List all available schedulers:

      Scheduler.listSchedulerNames()

  2. List jobs a specified scheduler is handling:

      Scheduler.listJobs(java.lang.String schedulerName)

  3. Find the current state of a specified scheduler:

      Scheduler.isRunning(java.lang.String schedulerName)

  4. Get information about a job:

      Scheduler.getJobDetails(java.lang.String schedulerName,java.lang.String jobName)

  5. Pause a job:

      Scheduler.pauseJob(java.lang.String schedulerName,java.lang.String jobName)

  6. Resume the execution of a paused job:

      Scheduler.resumeJob(java.lang.String schedulerName,java.lang.String jobName)

  7. Stop a scheduler:

      Scheduler.stop(java.lang.String schedulerName)

  8. Remove all jobs from a scheduler:

      Scheduler.purgeJobs(java.lang.String schedulerName)

  9. Start a scheduler:

      Scheduler.start(java.lang.String schedulerName)

 

Related tasks

Administer Activities
Choosing a scheduler for a job
Start wsadmin
Activities configuration properties

+

Search Tips   |   Advanced Search