public class WorkflowEffector extends AbstractEffector
| Constructor and Description |
|---|
WorkflowEffector(CompositeService compositeService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
refreshAllServices()
Clear the workflow cache
|
void |
refreshAllServices(java.lang.String serviceType,
java.lang.String opName)
Clear the workflow cache
|
void |
removeService(int serviceId)
Remove the service from workflow cache with service id
|
void |
removeService(ServiceDescription sd)
Remove the service from workflow cache
|
void |
stopRetrying()
If a service failed and composite service is retrying, this method will effect to stop retrying for that service.
|
void |
updateServiceCustomProperty(int serviceId,
java.lang.String propertyName,
java.lang.Object value)
Update a custom property of a service in service description.
|
void |
updateServiceDescription(ServiceDescription oldService,
ServiceDescription newService)
Update the service description in the workflow cache
|
void |
updateWorkflow(java.lang.String workflow)
Update the workflow
|
getCompositeServicepublic WorkflowEffector(CompositeService compositeService)
compositeService - which composite service to be affectedpublic void updateWorkflow(java.lang.String workflow)
workflow - new workflow contentpublic void removeService(ServiceDescription sd)
sd - the service descriptionpublic void removeService(int serviceId)
serviceId - the service idpublic void refreshAllServices()
public void refreshAllServices(java.lang.String serviceType,
java.lang.String opName)
serviceType - the service typeopName - the operation namepublic void updateServiceDescription(ServiceDescription oldService, ServiceDescription newService)
oldService - the old service descriptionnewService - the new service descriptionpublic void updateServiceCustomProperty(int serviceId,
java.lang.String propertyName,
java.lang.Object value)
serviceId - the service idpropertyName - the property namevalue - the valuepublic void stopRetrying()