org.gridbus.broker.protocol
Class MonitorEngine

java.lang.Object
  extended byorg.gridbus.broker.protocol.MonitorEngine
All Implemented Interfaces:
java.lang.Runnable

public class MonitorEngine
extends java.lang.Object
implements java.lang.Runnable

This class is the main entry point for the broker, when it is started up in Monitoring mode.

Author:
Krishna Nadiminti (kna@unimelb.edu.au)

Constructor Summary
MonitorEngine(GridbusFarmingEngine fr, boolean startListening)
          Sets up the monitoring engine
 
Method Summary
 int getPort()
          Returns the port on which the monitoring engine is listening for clients
 void ListenForClients()
          Makes the monitor engine listen for clients
 void run()
          This method starts the monitoring engine, which listens for clients on the specified port
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorEngine

public MonitorEngine(GridbusFarmingEngine fr,
                     boolean startListening)
              throws java.lang.Exception
Sets up the monitoring engine

Parameters:
fr -
startListening -
Throws:
java.lang.Exception
Method Detail

ListenForClients

public void ListenForClients()
Makes the monitor engine listen for clients


getPort

public int getPort()
Returns the port on which the monitoring engine is listening for clients

Returns:
int

run

public void run()
This method starts the monitoring engine, which listens for clients on the specified port

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()