Copyright © TIBCO Software Inc. All rights reserved
Copyright © TIBCO Software Inc. All rights reserved


Chapter 4 Using the Adapter : Using Heartbeat Messages

Using Heartbeat Messages
Heartbeat messages provide an indication that FilePublisher or FileSubscriber is active. These messages can be monitored by TIBCO Hawk. TIBOCO Hawk can send notifications or alerts when FilePublisher or FileSubscriber goes down.
Configuration
To enable heartbeat messages, specify the following elements in the Options section of the FilePublisher or FileSubscriber configuration file:
PUBLISH_HEARTBEAT – To enable heartbeat messages, set this element to true. The default value is false.
HEARTBEAT_TIME – Specifies the interval between heartbeat messages. The default value is 60000 milliseconds, or 60 seconds.
Message Format
The subject on which the adapter publishes heartbeat messages is in the following format:
 
_FILEADAPTER.<adaptername>.HEARTBEAT
 
For FilePublisher, the format of the heartbeat message is FilePublisher start time and current time. For each configured file type, the format is:
For FileSubscriber, the format of the heartbeat message is FileSubscriber start time and current time. Then, for each file type, the format is file prefix and file extension (N/A for IBM i).
 

Copyright © TIBCO Software Inc. All rights reserved
Copyright © TIBCO Software Inc. All rights reserved