Package org.kuali.rice.ksb.impl.registry
Class ServiceRegistryImpl
java.lang.Object
org.kuali.rice.ksb.impl.registry.ServiceRegistryImpl
- All Implemented Interfaces:
ServiceRegistry
Reference implementation of the
ServiceRegistry which is backed by a
data access object that handles reading and writing data related to registry
entries from a backend datastore.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllServicesForApplication(String applicationId) getAllServicesForInstance(String instanceId) getOnlineServicesByName(QName serviceName) getServiceDescriptor(String serviceDescriptorId) getServiceDescriptors(List<String> serviceDescriptorIds) publishService(ServiceEndpoint serviceEndpoint) publishServices(List<ServiceEndpoint> serviceEndpoints) removeAndPublish(List<String> removeServiceIds, List<ServiceEndpoint> publishServiceEndpoints) removeServiceEndpoint(String serviceId) removeServiceEndpoints(List<String> serviceIds) voidsetDataObjectService(DataObjectService dataObjectService) voidtakeInstanceOffline(String instanceId) booleanupdateStatus(String serviceId, ServiceEndpointStatus status) updateStatuses(List<String> serviceIds, ServiceEndpointStatus status)
-
Constructor Details
-
ServiceRegistryImpl
public ServiceRegistryImpl()
-
-
Method Details
-
getOnlineServicesByName
public List<ServiceInfo> getOnlineServicesByName(QName serviceName) throws RiceIllegalArgumentException - Specified by:
getOnlineServicesByNamein interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
getAllOnlineServices
- Specified by:
getAllOnlineServicesin interfaceServiceRegistry
-
getAllServices
- Specified by:
getAllServicesin interfaceServiceRegistry
-
getAllServicesForInstance
public List<ServiceInfo> getAllServicesForInstance(String instanceId) throws RiceIllegalArgumentException - Specified by:
getAllServicesForInstancein interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
getAllServicesForApplication
public List<ServiceInfo> getAllServicesForApplication(String applicationId) throws RiceIllegalArgumentException - Specified by:
getAllServicesForApplicationin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
getServiceDescriptor
public ServiceDescriptor getServiceDescriptor(String serviceDescriptorId) throws RiceIllegalArgumentException - Specified by:
getServiceDescriptorin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
getServiceDescriptors
public List<ServiceDescriptor> getServiceDescriptors(List<String> serviceDescriptorIds) throws RiceIllegalArgumentException - Specified by:
getServiceDescriptorsin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
publishService
public ServiceEndpoint publishService(ServiceEndpoint serviceEndpoint) throws RiceIllegalArgumentException - Specified by:
publishServicein interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
publishServices
public List<ServiceEndpoint> publishServices(List<ServiceEndpoint> serviceEndpoints) throws RiceIllegalArgumentException - Specified by:
publishServicesin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
removeServiceEndpoint
- Specified by:
removeServiceEndpointin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
removeServiceEndpoints
public List<ServiceEndpoint> removeServiceEndpoints(List<String> serviceIds) throws RiceIllegalArgumentException - Specified by:
removeServiceEndpointsin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
removeAndPublish
public RemoveAndPublishResult removeAndPublish(List<String> removeServiceIds, List<ServiceEndpoint> publishServiceEndpoints) - Specified by:
removeAndPublishin interfaceServiceRegistry
-
updateStatus
public boolean updateStatus(String serviceId, ServiceEndpointStatus status) throws RiceIllegalArgumentException - Specified by:
updateStatusin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
updateStatuses
public List<String> updateStatuses(List<String> serviceIds, ServiceEndpointStatus status) throws RiceIllegalArgumentException - Specified by:
updateStatusesin interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
takeInstanceOffline
- Specified by:
takeInstanceOfflinein interfaceServiceRegistry- Throws:
RiceIllegalArgumentException
-
getDataObjectService
-
setDataObjectService
-