ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/java/JavaHost.java
Revision: 1.2
Committed: Mon Nov 27 20:36:20 2000 UTC (24 years ago) by ab11
Branch: MAIN
Changes since 1.1: +53 -25 lines
Log Message:
changed the layout so it conforms to the Templateclass.java

File Contents

# Content
1 //---PACKAGE DECLARATION---
2
3 //---IMPORTS---
4
5 /**
6 * A small efficient JavaHost
7 * Designed to be used as a working design to build the C++ hosts on.
8 * Hopefully fully functional and thus can be used as part of a test rig.
9 *
10 * @author $Author: ab11 $
11 * @version $Id: JavaHost.java,v 1.1 2000/11/27 20:19 ab11 Exp $
12 */
13 class JavaHost {
14
15 //---FINAL ATTRIBUTES---
16
17 //---STATIC METHODS---
18
19 //---CONSTRUCTORS---
20
21 /**
22 * Constructor for the class. Takes in the hostname and port number
23 * of the Configuration Manager.
24 *
25 */
26 public JavaHost( String serverName, int port ){
27 // create a connection to the configurator
28 Config config = new Config(serverName, port);
29 // the config class knows what values it wants to get from
30 // the configurator
31
32 // create a SystemMonitor object and pass the confifurator
33 // as a param so it knows what to do!
34 SystemMonitor sysMon = new SystemMonitor(config);
35
36 while ( true ){
37 // keep going for ever and ever ;)
38 // send a udp packet to the filter declared in config
39 // send it the xml packet created by getInfo()
40 LowLevelNet.sendUDPPacket(config, sysMon.getInfo());
41 }
42
43 } // public javahost
44
45
46 //---PUBLIC METHODS---
47
48 //---PRIVATE METHODS---
49
50 //---ACCESSOR/MUTATOR METHODS---
51
52 //---ATTRIBUTES---
53
54 //---STATIC ATTRIBUTES---
55
56 } // class