Products | Versions |
---|---|
TIBCO DataSynapse GridServer | - |
Not Applicable | - |
Resolution:
To run a Batch, you must first create a Batch File, which specifies the schedule used by a Batch and what Services or commands are executed.
To edit a Batch File:
1. In the Administration Tool, go to the Admin tab, and select Batch Editor.
2. Enter a name for your Batch File in the blank box at the bottom of the Batch list and click Add.
3. The Batch Editor dialog box will open. You can enter values for the Batch and Schedule objects, and add additional objects.
For example, to create a simple batch named NightlyBatch that runs a registered Cluster Service at midnight, do the following:
1. In the Batch object, set batchId to NightlyBatch.
2. In the Schedule object, select a type of cron.
3. In the Cron subheading, enter 0 for minute and hour. This specifies a starting time of 00:00 on a daily basis, in cron format. You could change the values here to select a different time pattern, or select a type of absolute to enter times in a string, like Sat, 12 Aug 1995 13:30:00 GMT.
4. In the Add Object list, select ServiceCommand.
5. In the ServiceCommand object, select a Service from the ServiceName list. This is a list of all Services currently registered on your Manager.
6. In the ServiceCommand object, enter a MethodName , __initData__ , inputData , or any other values that will be needed by your Service.
7. Click Save.
8. In the Actions control next to your Batch File in the list, select Schedule Batch File.
9. Your Batch will now be on the Manager and viewable in the Batch Admin page on the Admin tab. It will wait until midnight, and then run the specified Cluster Service.