org.gridbus.broker.common
Class ServiceMonitor

java.lang.Object
  extended by org.gridbus.broker.common.ServiceMonitor
All Implemented Interfaces:
java.lang.Runnable

public final class ServiceMonitor
extends java.lang.Object
implements java.lang.Runnable

Discovers and Monitors the various services used by the broker such as Compute, Data, Information and Application services.

Author:
Krishna

Constructor Summary
ServiceMonitor(java.lang.String applicationID)
           
 
Method Summary
 java.lang.String getKey()
           
 void run()
          The ServiceMonitor thread repeatedly discovers the following: 1.
 void stop()
          Stops the resource-monitor thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceMonitor

public ServiceMonitor(java.lang.String applicationID)
               throws GridBrokerException
Parameters:
applicationID -
Throws:
GridBrokerException
Method Detail

getKey

public java.lang.String getKey()
Returns:
applicationID

stop

public void stop()
Stops the resource-monitor thread.


run

public void run()
The ServiceMonitor thread repeatedly discovers the following: 1. Service properties for available services (ComputeServers, DataHosts, InformationServices) 2. NetworkLinks between DataHosts and ComputeServers.

Specified by:
run in interface java.lang.Runnable

Copyright © The University of Melbourne. 2006