Package com.tailf.ncs
Class PlanComponent
Object
com.tailf.ncs.PlanComponent
This class represents a plan component with its states.
 The usage of this class in in conjunction with a service that
 uses a reactive fastmap pattern.
 With a plan the service states can be tracked and controlled.
 A service plan can consist of one or many PlanComponents.
 This is operational data that is stored together with the service config.
- 
Constructor SummaryConstructorsConstructorDescriptionPlanComponent(NavuNode service, String name, String componentType) Creation of a plan component.PlanComponent(NavuNode service, String name, String componentType, ConfObjectRef serviceReference) 
- 
Method SummaryModifier and TypeMethodDescriptionappendState(String stateName) This method supplies a state to the specific component.appendState(String stateName, String createMonitor, String createTriggerExpr) appendState(String stateName, String createMonitor, String createTriggerExpr, String deleteMonitor, String deleteTriggerExpr) backTrack(boolean isBacktracking) Setting status to ncs:failed for a specific state in the plan componentsetNotReached(String stateName) Setting status to ncs:not-reached for a specific state in the plan componentsetReached(String stateName) Setting status to ncs:reached for a specific state in the plan component
- 
Constructor Details
- 
Method Details- 
appendStateThis method supplies a state to the specific component. The initial status for this state can be ncs:reached or ncs:not-reached and is indicated by setting the reached boolean to true or false respectively- Parameters:
- stateName-
- Returns:
- PlanComponent
- Throws:
- NavuException
 
- 
appendStatepublic PlanComponent appendState(String stateName, String createMonitor, String createTriggerExpr) throws NavuException - Throws:
- NavuException
 
- 
appendStatepublic PlanComponent appendState(String stateName, String createMonitor, String createTriggerExpr, String deleteMonitor, String deleteTriggerExpr) throws NavuException - Throws:
- NavuException
 
- 
setNotReachedSetting status to ncs:not-reached for a specific state in the plan component- Parameters:
- stateName-
- Returns:
- PlanComponent
- Throws:
- NavuException
 
- 
setReachedSetting status to ncs:reached for a specific state in the plan component- Parameters:
- stateName-
- Returns:
- PlanComponent
- Throws:
- NavuException
 
- 
setFailedSetting status to ncs:failed for a specific state in the plan component- Parameters:
- stateName-
- Returns:
- PlanComponent
- Throws:
- NavuException
 
- 
backTrack- Throws:
- NavuException
 
- 
backTrack- Throws:
- NavuException
 
 
-