com.norbl.cbp.ppe
Class Services

java.lang.Object
  extended by com.norbl.cbp.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  java.lang.String networkID
           
 
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()
           
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
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()

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 -