--- projects/cms/source/host/java/JavaHost.java 2000/11/27 20:36:20 1.2 +++ projects/cms/source/host/java/JavaHost.java 2000/11/30 04:08:25 1.3 @@ -8,7 +8,7 @@ * Hopefully fully functional and thus can be used as part of a test rig. * * @author $Author: ab11 $ - * @version $Id: JavaHost.java,v 1.2 2000/11/27 20:36:20 ab11 Exp $ + * @version $Id: JavaHost.java,v 1.3 2000/11/30 04:08:25 ab11 Exp $ */ class JavaHost { @@ -25,21 +25,30 @@ class JavaHost { */ public JavaHost( String serverName, int port ){ // create a connection to the configurator + System.out.println("Creating connection with Configurtator"); Config config = new Config(serverName, port); // the config class knows what values it wants to get from // the configurator // create a SystemMonitor object and pass the confifurator // as a param so it knows what to do! + System.out.println("Creating System Monitor"); SystemMonitor sysMon = new SystemMonitor(config); while ( true ){ // keep going for ever and ever ;) // send a udp packet to the filter declared in config // send it the xml packet created by getInfo() - LowLevelNet.sendUDPPacket(config, sysMon.getInfo()); - } + System.out.println("Sending UDP Packet"); + LowLevelNet.sendUDPPacket(config, sysMon.getInfo()); + config.sendHeartBeat(); + if ( config.reloadConfig() ){ + System.out.println("Resarting System"); + break; + } + } // while + } // public javahost