|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperationalString
An OperationalString represents a collection of application and/or infrastructure software services that when put together provide a coarse-grained service, typically distributed through the network.
The OperationalString is the unit of deployment in Rio, and provides the capability to declare, monitor and manage the availability of enclosed services.
| Field Summary | |
|---|---|
static int |
BROKEN
Indicates the OperationalString is deployed and is broken, where all required services are not available |
static int |
COMPROMISED
Indicates the OperationalString is deployed and is compromised, where some specified services are not available |
static int |
DEPLOYED
Indicates the OperationalString is deployed |
static int |
INTACT
Indicates the OperationalString is deployed and is intact, where all specified services are available |
static int |
SCHEDULED
Indicates the OperationalString is scheduled for deployment |
static int |
UNDEPLOYED
Indicates the OperationalString is not deployed |
| Method Summary | |
|---|---|
void |
addService(ServiceElement sElem)
Add a ServiceElement to the OperationalString. |
String |
getName()
All OperationalString instances have a descriptive name. |
OperationalString[] |
getNestedOperationalStrings()
An OperationalString may contain other OperationalString instances. |
Schedule |
getSchedule()
Get the Schedule for the OperationalString
Scheduling of an OperationalString is part of the OperationalString itself,
the schedule is an optional declarative attribute, and if not declared the
OperationalString will be deployed immediately. |
ServiceElement[] |
getServices()
Get all services contained by this OperationalString as an array of ServiceElement objects |
int |
getStatus()
Get the status of the OperationalString |
URL |
loadedFrom()
Get the location the OperationalString was loaded from. |
void |
removeService(ServiceElement sElem)
Remove a ServiceElement from the OperationalString. |
void |
setDeployed(int deployed)
Set the OperationalString as being scheduled, deployed or undeployed |
| Field Detail |
|---|
static final int UNDEPLOYED
static final int SCHEDULED
static final int DEPLOYED
static final int BROKEN
static final int COMPROMISED
static final int INTACT
| Method Detail |
|---|
int getStatus()
UNDEPLOYED. If the OperationalString is
DEPLOYED, then the status
will represent the 'weakest link in the chain', that is if this
OperationalString has nested OperationalString instances whose state is
of lesser fidelity (lesser fidelity reflecting a
BROKEN status, highest
fidelity representing an INTACT state) then the
status of this OperationalString must reflect the weakest status. If no nested
OperationalString instances are found, or the OperationalString itself
has a lesser fidelity then it's nested OperationalString instances, the
status is determined by the inspecting ServiceElement instance
availabilityvoid setDeployed(int deployed)
deployed - Either SCHEDULED,
DEPLOYED or UNDEPLOYED
IllegalStateException - if the deployed parameter is not
SCHEDULED, DEPLOYED or
UNDEPLOYEDString getName()
OperationalString[] getNestedOperationalStrings()
ServiceElement[] getServices()
ServiceElement objects
void addService(ServiceElement sElem)
ServiceElement to the OperationalString.
sElem - The ServiceElement to addvoid removeService(ServiceElement sElem)
ServiceElement from the OperationalString.
sElem - The ServiceElement to removeURL loadedFrom()
Schedule getSchedule()
Schedule for the OperationalString
Scheduling of an OperationalString is part of the OperationalString itself, the schedule is an optional declarative attribute, and if not declared the OperationalString will be deployed immediately. The following properties describe the Schedule :
This DeploymentSchedule produces the following:
Once the DeploymentSchedule element is parsed, a Schedule object is created
and set to the enclosing OperationalString object.
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||