public class ChainingServiceRegistry extends AbstractServiceRegistry
ChainingServiceRegistry
.Constructor and Description |
---|
ChainingServiceRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(RegisteredService registeredService)
Remove the service from the data store.
|
RegisteredService |
findServiceByExactServiceId(java.lang.String id)
Find a service by an exact match of the service id.
|
RegisteredService |
findServiceByExactServiceName(java.lang.String name)
Find a service by an exact match of the service name.
|
RegisteredService |
findServiceById(long id)
Find service by the numeric id.
|
RegisteredService |
findServiceById(java.lang.String id)
Find service by the service id.
|
java.lang.String |
getName()
Returns the friendly name of this registry.
|
java.util.List<RegisteredService> |
load()
Retrieve the services from the data store.
|
RegisteredService |
save(RegisteredService registeredService)
Persist the service in the data store.
|
long |
size()
Return number of records held in this service registry.
|
publishEvent
public RegisteredService save(RegisteredService registeredService)
ServiceRegistry
registeredService
- the service to persist.public boolean delete(RegisteredService registeredService)
ServiceRegistry
registeredService
- the service to remove.public java.util.List<RegisteredService> load()
ServiceRegistry
public RegisteredService findServiceById(long id)
ServiceRegistry
id
- the idpublic RegisteredService findServiceById(java.lang.String id)
ServiceRegistry
id
- the idpublic RegisteredService findServiceByExactServiceId(java.lang.String id)
ServiceRegistry
id
- the idpublic RegisteredService findServiceByExactServiceName(java.lang.String name)
ServiceRegistry
name
- the namepublic long size()
ServiceRegistry
public java.lang.String getName()
ServiceRegistry
getName
in interface ServiceRegistry
getName
in class AbstractServiceRegistry