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 service,
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 service)
Remove service from cache
|
void |
removeService(ServiceDescription service,
java.lang.String opName)
Remove service from cache with service description and operation name
|
void |
updateServiceDescription(ServiceDescription oldService,
ServiceDescription newService)
Update service description
|
public CacheEffector(CompositeService compositeService)
compositeService - which composite service to be affectedpublic void removeService(ServiceDescription service)
service - the service descriptionpublic void removeService(int registerId)
registerId - the unique register idpublic void removeService(ServiceDescription service, java.lang.String opName)
service - 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 service, java.lang.String opName)
service - the service descriptionopName - the operation namepublic void updateServiceDescription(ServiceDescription oldService, ServiceDescription newService)
oldService - the old service descriptionnewService - the new service descriptionpublic ServiceDescription getService(int registerId)
registerId - registerId the service register id