Keywords: getstart

Next: 8 Conclusion Up: Getting Started with HAFTA Previous: 6 Overlord Script

# 7 Testing the System

At this point we can now try it out. In one window, you can simply run olrt:

    $ olrt
    $

The overlord will notice that the server isn't running and start it, followed by the client. At this point the client should talk to the server and it should happily print out it's success.

The first test will be to kill the client. In a second window, do a ``ps'' and get the pid of the client. Use this to kill the client. You will notice the overlord reacts by restarting the client.

Next we repeat the same process with the server. This time the client notices and rolls back to reopen the file. Since there is no delay in the client rollback it tries several times before the overlord and restarts the server. Obviously all of this can be tuned to provide the behaviour you would want in your application.

Now we will try something different. Instead of killing the client or server, we will kill olrt. Nothing obvious happens. You can now look to see if it is still running (it shouldn't be). Obviously killing the client or server will make them stop. The trick is you can now restart olrt and because we did such a good job of writing our script, it all just works.

Next: 8 Conclusion Up: Getting Started with HAFTA Previous: 6 Overlord Script