7. Utilities

7.1. Probe

Probe is your swiss army knife as an Ivy java developper. Use it to try your regular expressions, to check the installation of the system, to log the messages, etc. To use it, either run fr.dgac.ivy.Probe, or run the jar file directly with $ java -jar ivy.jar

The command line options ( available with the -h command line switch ) are the following:

The run time commands are preceded by a single dot (.) at the beginning of the line. Issue ".help" at the prompt ( without the double quotes ) to have the list of availables comands. If the lines does not begin with a dot, jprobe tries to send the message to the other agents, if their subscriptions allows it. The dot commands are the following

7.2. IvyDaemon

As the launching and quitting of an ivy bus is a bit slow, it is not convenient to spawn an Ivy client each time we want to send a simple message. To do so, we can use the IvyDaemon, which is a TCP daemon sitting and waiting on the port 3456, and also connected on the default bus. Each time a remote application connects to this port, every line read until EOF will be forwarded on the bus. The standard port and bus domain can be overriden by command line switches ( use $ java fr.dgac.ivy.IvyDaemon -h ). First, spawn an ivy Damon: $ java fr.dgac.ivy.IvyDaemon then, within your shell scripts, use a short tcp connexion ( for instance netcat ): $ echo "hello world" | nc -q 0 localhost 3456 The "hello world" message will be sent on the default Ivy Bus to anyone having subscribe to a matching pattern