ppe
Class Services

java.lang.Object
  extended by ppe.Services
Direct Known Subclasses:
OmpiConfigServices

public abstract class Services
extends java.lang.Object

Services specifies operations to performed on a network after its ec2 instances are running, such as configuring Open MPI. The Services object is used to determine the state of the services - this is used for building the state field in the gui network table.

Note that a Services object exists for each network, whether or not the service is running.

Every NetworkInfo object has a Services object.

This class maintains a static hash table of Services objects, keyed by network ID.


Field Summary
protected  Ec2Wrangler ec2w
           
protected  java.lang.String networkID
           
protected  NetworkSpec networkSpec
           
protected  OmpiSpec ompiSpec
           
 
Constructor Summary
Services(java.lang.String networkID)
           
 
Method Summary
static Services createServices(java.lang.String networkID)
          Creates the service object for networkID and stores it in the hash table (keyed by networkID.
abstract  java.lang.String getStateTitle()
           
abstract  boolean inNilState()
           
abstract  boolean isPending()
           
abstract  boolean isRunning()
           
abstract  void launch()
           
abstract  boolean notRunning()
           
 void set(Ec2Wrangler ec2w, NetworkSpec networkSpec, OmpiSpec ompiSpec)
          Sets objects needed to start services.
static void setServicesClass(java.lang.Class servicesClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

networkID

protected java.lang.String networkID

ec2w

protected Ec2Wrangler ec2w

networkSpec

protected NetworkSpec networkSpec

ompiSpec

protected OmpiSpec ompiSpec
Constructor Detail

Services

public Services(java.lang.String networkID)
Method Detail

launch

public abstract void launch()

getStateTitle

public abstract java.lang.String getStateTitle()

isRunning

public abstract boolean isRunning()

isPending

public abstract boolean isPending()

notRunning

public abstract boolean notRunning()

inNilState

public abstract boolean inNilState()

set

public void set(Ec2Wrangler ec2w,
                NetworkSpec networkSpec,
                OmpiSpec ompiSpec)
Sets objects needed to start services.

Parameters:
ec2w -
networkSpec -
ompiConfig -

setServicesClass

public static void setServicesClass(java.lang.Class servicesClass)

createServices

public static Services createServices(java.lang.String networkID)
Creates the service object for networkID and stores it in the hash table (keyed by networkID.

Parameters:
networkID -