Right Java tools for J2EE, Web Service, Grid and more
|Home | Products | Documents | Downloads | Purchase | Support | Company | Partners | Contact |

Set Trigger Tour

This is a side tour of the SuperWatchdog tutorial. If you have not taken the SuperWatchdog tour, please do so first.

Trigger is the event object of a Task. When the trigger is activated, the task will run.


Overview

When you set the trigger for a task, you need to choose a trigger type and define parameters for the trigger.  Each trigger type has its own parameters.

First, we need to open Set Trigger Panel by going to the main menu and click Module > SuperWatchdog > Watchdog Doer > Add. The Task Panel appears.

Then click the Set Trigger button. The Set Job Panel appears. 
  There are a list of trigger types shown on the Type JComboBox. Each trigger type has its own parameters, so the related GUIs are different. When the type changes, this panel looks different. To set a trigger, select the trigger type. Then set parameters.

When you click on the Ok button, you go back to the Task panel. You will see a brief information about the trigger.

 

Note for imported data

Some triggers are imported. In that case, when the trigger is created, it reads the original data file and save a private copy of the data with the task. From that time on, the two copies of data are independent. When the watch item runs, it gets data from the private copy in task database. The original data file is not needed for execution. Any change on the original data will not be seen by the task. If you want to modify the trigger, you need to modify it from Set Trigger Panel. Of course, anything changed here will not affect the original data file.


JMS trigger

JMS trigger replaces both JMS queue and JMS topic, using unified, common interface.

Click on the Set Trigger button of the Task Panel. Set Trigger Panel appears. When JMS is selected on Type, the panel looks like:

Let's click on the Browse button. The Browse JMS window appears.

If you have done the JMS tutorial, there will be a file JmsExampleTopic.trigger exported. Highlight the file and click on the Ok button.

We have come to the Edit JMS Trigger Panel by clicking on the Browse button. Actually, you have another choice: click on the Detail button, which will display a new Edit JMS Trigger Panel, without pre-saved parameter.

When you click on the Ok button, you go back to the Task panel. You will see a brief information about the trigger.

JMS queue and topic trigger

JMS connection factories for SuperScheduler and SuperWatchdog are required. If they have no been set, please do so. See Setup JMS connection factories for SuperScheduler and SuperWatchdog for more information.

Click on the Set Trigger button of the Task Panel. Set Trigger Panel appears. Let's input the following values:

Type is JMS queue.

JMS queue name is EasyJmsQueue.

JMS queue text is anything, as an example. 

Click on the Ok button and go back to the Task panel.

We can see there is brief information about the trigger on the Trigger field. Click on the Ok button to close this panel.

 

Mbean trigger

Please see EasyJMX tutorial.

 


   © Copyright 1999-2008 Acelet Corporation. All rights reserved.