Watcher is an aglet-based implementation of a utility for watching a file update status. It consists of two aglets, one stationary (Watcher) and one mobile(WatcherNotifier). The latter is dispatched by Watcher to a remote location where it stays and keeps watching of a file being updated. WatcherNotifier usually sleeps and periodically gets up and checks if the file was updated or not. Whenever the file is updated, the WatcherNotifier notifies the Watcher.
To be written.
Run at least two aglet servers in your network (read here how to run an aglet server).
Use the "new aglet" panel of Tahiti to create your Watcher aglet by specifying its class name: "samples.patterns.Watcher"(read Tahiti User's Guide for more information about aglet creation). When the Watcher aglet is created, its dialog window is displayed:
Specify the URL of a remote aglet server in the "Adress" field (or choose one from the AddressBook). This URL should consists of "atp://" followed by the host and domain names. You may specify an additional port number. An example of a URL is:
atp://aglets.trl.ibm.com
or, if your aglet server is running on a port other than the default one (434):
atp://aglets.trl.ibm.com:500
In order to update the AddressBook, click once to display its panel. Then, either select an address and remove it (via the delete button) or add the current address in the "Address" field (via the add button). Click on the close button to hide the AddressBook panel.
Read here about troubleshooting for the sample aglets.