public class CouchDbServiceRegistry extends AbstractServiceRegistry
CouchDbServiceRegistry
.Constructor and Description |
---|
CouchDbServiceRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(RegisteredService service)
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.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.
|
getName, publishEvent
public RegisteredService save(RegisteredService registeredService)
ServiceRegistry
registeredService
- the service to persist.public boolean delete(RegisteredService service)
ServiceRegistry
service
- 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