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 Summary
ConstructorsConstructorDescriptionPlanComponent(NavuNode service, String name, String componentType) Creation of a plan component.PlanComponent(NavuNode service, String name, String componentType, ConfObjectRef serviceReference)  - 
Method Summary
Modifier 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
- 
appendState
This 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
 - 
appendState
public PlanComponent appendState(String stateName, String createMonitor, String createTriggerExpr) throws NavuException - Throws:
 NavuException
 - 
appendState
public PlanComponent appendState(String stateName, String createMonitor, String createTriggerExpr, String deleteMonitor, String deleteTriggerExpr) throws NavuException - Throws:
 NavuException
 - 
setNotReached
Setting status to ncs:not-reached for a specific state in the plan component- Parameters:
 stateName-- Returns:
 - PlanComponent
 - Throws:
 NavuException
 - 
setReached
Setting status to ncs:reached for a specific state in the plan component- Parameters:
 stateName-- Returns:
 - PlanComponent
 - Throws:
 NavuException
 - 
setFailed
Setting status to ncs:failed for a specific state in the plan component- Parameters:
 stateName-- Returns:
 - PlanComponent
 - Throws:
 NavuException
 - 
backTrack
- Throws:
 NavuException
 - 
backTrack
- Throws:
 NavuException
 
 -