ppe
Class Services
java.lang.Object
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.
Constructor Summary |
Services(java.lang.String networkID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
networkID
protected java.lang.String networkID
ec2w
protected Ec2Wrangler ec2w
networkSpec
protected NetworkSpec networkSpec
ompiSpec
protected OmpiSpec ompiSpec
Services
public Services(java.lang.String networkID)
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
-