- All Implemented Interfaces:
- MessageReceiver
public class HeartbeatGenerator
extends Receiver
HeartbeatGenerator as a daemon periodically generates time sequence events
of JMS messages according to predefined policies. It sends them to
the output XQueue with the predefined name and time signatures.
These messages can then be used to trigger other actions down the stream.
In case of non-daemon mode, it only runs once but with the support of Limit.
The Limit is number of copies for the generated messages.
HeartbeatGenerator allows to define a Template or a TemplateFile to build
message body for each Monitor rule. If TemplateFile is an empty string,
it is assumed to use the shared template file. The shared template file
is defined in the property of URI on Receiver level. In this case, make sure
the file exists and is readable. The templates depend on properties of
StringProperty on the container level. Among the variable names in a
template, "name" and "sequence" are two reserved words. Please do not
defined them in the StringProperty on Receiver level.
- Author:
- yannanlu@yahoo.com