20 |
|
|
21 |
|
/** |
22 |
|
* Constructor for the class. Takes in the hostname and port number |
23 |
< |
* of the Configuration Manager. |
23 |
> |
* of the Filter Manager. |
24 |
|
* |
25 |
|
*/ |
26 |
|
public JavaHost( String serverName, int port ){ |
27 |
< |
// create a connection to the configurator |
28 |
< |
System.out.println("Creating connection with Configurtator"); |
27 |
> |
// create a connection to the filter manager |
28 |
> |
System.out.println("Creating connection with Filter Manager"); |
29 |
|
Config config = new Config(serverName, port); |
30 |
|
// the config class knows what values it wants to get from |
31 |
< |
// the configurator |
31 |
> |
// the configuration system |
32 |
|
|
33 |
< |
// create a SystemMonitor object and pass the confifurator |
33 |
> |
// create a SystemMonitor object and pass the config |
34 |
|
// as a param so it knows what to do! |
35 |
|
System.out.println("Creating System Monitor"); |
36 |
|
SystemMonitor sysMon = new SystemMonitor(config); |