WSScheduleCommands command group of the AdminTask object
Use the Jython or Jacl scripting languages to manage deployed applications with the wsadmin tool. The commands in the WSScheduleCommands group can be used to manage scheduler settings in the configuration. Schedulers enable J2EE application tasks to run at a requested time.
The WSScheduleCommands command group for the AdminTask objectcommands include:
deleteWSSchedule
Delete the settings of a scheduler from the configuration.
Parameters and return values
- -name
- The name that uniquely identifies the scheduler. (String, required)
Examples
Batch mode example usage:
- Jacl:
$AdminTask deleteWSSchedule {-name testSchedule}
- Jython string:
AdminTask.deleteWSSchedule ('[-name testSchedule]')
- Jython list:
AdminTask.deleteWSSchedule (['-name', 'testSchedule'])
Interactive mode example usage:
- Jacl:
$AdminTask deleteWSSchedule {-interactive}
- Jython string:
AdminTask.deleteWSSchedule ('[-interactive]')
- Jython list:
AdminTask.deleteWSSchedule (['-interactive'])
getWSSchedule
Return the settings of the specified scheduler.
Parameters and return values
- -name
- The name that uniquely identifies the scheduler. (String, required)
Examples
Batch mode example usage:
- Jacl:
$AdminTask getWSSchedule{ -name testSchedule}
- Jython string:
AdminTask.getWSSchedule ('[-name testSchedule]')
- Jython list:
AdminTask.getWSSchedule (['-name', 'testSchedule'])
Interactive mode example usage:
- Jacl:
$AdminTask getWSSchedule {-interactive}
- Jython string:
AdminTask.getWSSchedule ('[-interactive]')
- Jython list:
AdminTask.getWSSchedule (['-interactive'])
listWSSchedules
List the scheduler.
Parameters and return values
- -displayObjectNames
- Set value to true to list the key set configuration objects within the scope. Set value to false to list the strings that contain the key set group name and management scope. (Boolean, optional)
Examples
Batch mode example usage:
- Jacl:
$AdminTask listWSSchedules {-displayObjectNames true}
- Jython string:
AdminTask.listWSSchedules ('[-displayObjectNames true]')
- Jython list:
AdminTask.listWSSchedules (['-displayObjectNames', 'true'])
Interactive mode example usage:
- Jacl:
$AdminTask listWSSchedules {-interactive}
- Jython string:
AdminTask.listWSSchedules ('[-interactive]')
- Jython list:
AdminTask.listWSSchedules (['-interactive'])
modifyWSSchedule
Change the settings of an existing scheduler.
Parameters and return values
- -name
- The name that uniquely identifies the scheduler. (String, required)
- -frequency
- The period of time in days to wait before checking for expired certificates. (Integer, optional)
- -dayOfWeek
- The day of the week to check for expired certificates. (Integer, optional)
- -hour
- The hour of the day to check for expired certificates. (Integer, optional)
- -minute
- The minute to check for expired certificates. Use this parameter with the hour parameter. (Integer, optional)
- -nextStartDate
- The next time, in seconds, to check for expired certificate. (Long, optional)
Examples
Batch mode example usage:
- Jacl:
$AdminTask modifyWSSchedule{ -name testSchedule -frequency 7}
- Jython string:
AdminTask.modifyWSSchedule ('[-name testSchedule -frequency 7]')
- Jython list:
AdminTask.modifyWSSchedule (['-name', 'testSchedule', '-frequency', '7'])
Interactive mode example usage:
- Jacl:
$AdminTask modifyWSSchedule {-interactive}
- Jython string:
AdminTask.modifyWSSchedule ('[-interactive]')
- Jython list:
AdminTask.modifyWSSchedule (['-interactive'])
wsadmin AdminTask Commands for the AdminTask object