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 registerID)
Remove the service from workflow cache with service id
|
void |
removeService(ServiceDescription description)
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 registerID,
java.lang.String property,
java.lang.Object value)
Update a custom property of a service in service description.
|
void |
updateServiceDescription(ServiceDescription oldDescription,
ServiceDescription newDescription)
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 description)
description - the service descriptionpublic void removeService(int registerID)
registerID - 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 oldDescription, ServiceDescription newDescription)
oldDescription - the old service descriptionnewDescription - the new service descriptionpublic void updateServiceCustomProperty(int registerID,
java.lang.String property,
java.lang.Object value)
registerID - the service idproperty - the property namevalue - the valuepublic void stopRetrying()