public class CacheEffector
extends java.lang.Object
| Constructor and Description |
|---|
CacheEffector(CompositeService compositeService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
getAllServices(java.lang.String serviceType,
java.lang.String opName)
Return all services with same type and operation
|
ServiceDescription |
getService(int registerID)
Returns a service description by its registration id
|
void |
refreshCache()
Refresh the cache
all services will be removed.
|
java.util.List<ServiceDescription> |
refreshCache(ServiceDescription description,
java.lang.String opName)
Remove all services with same service description and operation
|
void |
removeService(int registerID)
Remove service from cache with register id
|
void |
removeService(ServiceDescription description)
Remove service from cache
|
void |
removeService(ServiceDescription description,
java.lang.String opName)
Remove service from cache with service description and operation name
|
void |
updateServiceDescription(ServiceDescription oldDescription,
ServiceDescription newDescription)
Update service description
|
public CacheEffector(CompositeService compositeService)
compositeService - which composite service to be affectedpublic void removeService(ServiceDescription description)
description - the service descriptionpublic void removeService(int registerID)
registerID - the unique register idpublic void removeService(ServiceDescription description, java.lang.String opName)
description - the service descriptionopName - the operation namepublic void refreshCache()
public void getAllServices(java.lang.String serviceType,
java.lang.String opName)
serviceType - the service typeopName - the operation namepublic java.util.List<ServiceDescription> refreshCache(ServiceDescription description, java.lang.String opName)
description - the service descriptionopName - the operation namepublic void updateServiceDescription(ServiceDescription oldDescription, ServiceDescription newDescription)
oldDescription - the old service descriptionnewDescription - the new service descriptionpublic ServiceDescription getService(int registerID)
registerID - registerId the service register id