appl.parallel.services
Class GlobalDiscoveryService

java.lang.Object
  extended by appl.parallel.services.GlobalDiscoveryService
All Implemented Interfaces:
Service

public class GlobalDiscoveryService
extends Object
implements Service

This class is responsible for discovering Resources. For this it first starts all known DiscoveryServices and queries them for known Computing Resources.

This class starts all DiscoveryServices registered with the following property in the XuluConfig:

DiscoveryServices.activeServices

Register DiscoveryServices with their fully qualified java name because Class.forName will be called on that String.

Author:
Dominik Appl

Constructor Summary
GlobalDiscoveryService()
          Looks up all services from the config file, loads them and also starts them.
 
Method Summary
 Vector<ComputingResourceContainer> getRemoteResources()
           
 boolean isRunning()
           
 void startService()
          Starts the service
 void stopService()
          Stops the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalDiscoveryService

public GlobalDiscoveryService()
Looks up all services from the config file, loads them and also starts them.

Method Detail

getRemoteResources

public Vector<ComputingResourceContainer> getRemoteResources()
Returns:
all active RemoteResources in a container class with meta in the a ComputingResourceContainer Object. They are queried from all known Discovery Services. Do not query more than necessary!

isRunning

public boolean isRunning()
Specified by:
isRunning in interface Service
Returns:
true, if the service is running

startService

public void startService()
Description copied from interface: Service
Starts the service

Specified by:
startService in interface Service

stopService

public void stopService()
Description copied from interface: Service
Stops the service

Specified by:
stopService in interface Service