org.ourgrid.gridmachine.services
Class GumSpecServices

java.lang.Object
  extended by org.ourgrid.gridmachine.services.GumSpecServices

public class GumSpecServices
extends java.lang.Object

This class is responsible for validating a given GuMSpec for creating a GuM according to a GuMSpec.


Constructor Summary
GumSpecServices()
           
 
Method Summary
static Gum createGum(GumSpec gumSpec)
          Creates a GuM according to the GuMSpec passed as the constructor parameter.
static boolean isSpecValid(GumSpec spec)
          Verifies if the GuMSpec used in the constructor is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GumSpecServices

public GumSpecServices()
Method Detail

isSpecValid

public static boolean isSpecValid(GumSpec spec)
Verifies if the GuMSpec used in the constructor is valid.

Returns:
true if the GuMSpec is valid and false,otherwise.
Throws:
GumSpecificationException

createGum

public static Gum createGum(GumSpec gumSpec)
                     throws GumSpecificationException,
                            java.net.MalformedURLException,
                            java.rmi.RemoteException,
                            java.rmi.NotBoundException
Creates a GuM according to the GuMSpec passed as the constructor parameter.

Returns:
a GridMachine.
Throws:
GumSpecificationException - if the GuMSpec is not valid.
java.rmi.NotBoundException
java.rmi.RemoteException
java.net.MalformedURLException