Package org.kuali.rice.ksb.impl.bus
Class ServiceBusImpl
java.lang.Object
org.kuali.rice.core.api.lifecycle.BaseLifecycle
org.kuali.rice.ksb.impl.bus.ServiceBusImpl
- All Implemented Interfaces:
Lifecycle,ServiceBus,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public class ServiceBusImpl
extends BaseLifecycle
implements ServiceBus, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()protected Set<RemoteService>filterByApplicationId(String applicationId, Set<RemoteService> remoteServices) getConfiguredEndpoint(ServiceConfiguration serviceConfiguration) getEndpoint(QName serviceName) getEndpoint(QName serviceName, String applicationId) getEndpoints(QName serviceName) getEndpoints(QName serviceName, String applicationId) getLocalEndpoint(QName serviceName) getRemoteEndpoints(QName serviceName) getService(QName serviceName) getService(QName serviceName, String applicationId) protected booleanprotected voidlogCompleteServiceDiff(CompleteServiceDiff serviceDiff) protected voidprocessLocalServiceDiff(LocalServicesDiff localServicesDiff) protected voidprocessRemoteServiceDiff(RemoteServicesDiff remoteServicesDiff) publishService(ServiceDefinition serviceDefinition, boolean synchronize) publishServices(List<ServiceDefinition> serviceDefinitions, boolean synchronize) protected voidrebuildLocalServiceEndpointAfterPublishing(ServiceEndpoint publishedService) protected ServiceEndpointrebuildServiceEndpointForUpdate(ServiceEndpoint originalEndpoint, ServiceInfo registryServiceInfo) booleanremoveService(QName serviceName, boolean synchronize) removeServices(List<QName> serviceNames, boolean synchronize) voidsetDiffCalculator(ServiceRegistryDiffCalculator diffCalculator) voidsetInstanceId(String instanceId) voidsetScheduledPool(KSBScheduledPool scheduledPool) voidsetServiceExportManager(ServiceExportManager serviceExportManager) voidsetServiceRegistry(ServiceRegistry serviceRegistry) voidstart()protected voidprotected voidvoidprotected voidsynchronizeAndProcess(org.kuali.rice.ksb.impl.bus.ServiceBusImpl.SyncProcessor processor) voidvoidMethods inherited from class org.kuali.rice.core.api.lifecycle.BaseLifecycle
isStarted, setStarted, stop
-
Constructor Details
-
ServiceBusImpl
public ServiceBusImpl()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
start
- Specified by:
startin interfaceLifecycle- Overrides:
startin classBaseLifecycle- Throws:
Exception
-
isDevMode
protected boolean isDevMode() -
startSynchronizationThread
protected void startSynchronizationThread() -
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
stopSynchronizationThread
protected void stopSynchronizationThread() -
getInstanceId
- Specified by:
getInstanceIdin interfaceServiceBus
-
setInstanceId
-
getEndpoints
- Specified by:
getEndpointsin interfaceServiceBus
-
getEndpoints
- Specified by:
getEndpointsin interfaceServiceBus
-
getRemoteEndpoints
- Specified by:
getRemoteEndpointsin interfaceServiceBus
-
getLocalEndpoint
- Specified by:
getLocalEndpointin interfaceServiceBus
-
getLocalEndpoints
- Specified by:
getLocalEndpointsin interfaceServiceBus
-
getAllEndpoints
- Specified by:
getAllEndpointsin interfaceServiceBus
-
getEndpoint
- Specified by:
getEndpointin interfaceServiceBus
-
getEndpoint
- Specified by:
getEndpointin interfaceServiceBus
-
filterByApplicationId
protected Set<RemoteService> filterByApplicationId(String applicationId, Set<RemoteService> remoteServices) -
getConfiguredEndpoint
- Specified by:
getConfiguredEndpointin interfaceServiceBus
-
getService
- Specified by:
getServicein interfaceServiceBus
-
getService
- Specified by:
getServicein interfaceServiceBus
-
publishService
public ServiceConfiguration publishService(ServiceDefinition serviceDefinition, boolean synchronize) - Specified by:
publishServicein interfaceServiceBus
-
publishServices
public List<ServiceConfiguration> publishServices(List<ServiceDefinition> serviceDefinitions, boolean synchronize) - Specified by:
publishServicesin interfaceServiceBus
-
removeService
- Specified by:
removeServicein interfaceServiceBus
-
removeServices
- Specified by:
removeServicesin interfaceServiceBus
-
synchronizeAndProcess
protected void synchronizeAndProcess(org.kuali.rice.ksb.impl.bus.ServiceBusImpl.SyncProcessor processor) -
synchronize
public void synchronize()- Specified by:
synchronizein interfaceServiceBus
-
synchronizeRemoteServices
public void synchronizeRemoteServices()- Specified by:
synchronizeRemoteServicesin interfaceServiceBus
-
synchronizeLocalServices
public void synchronizeLocalServices()- Specified by:
synchronizeLocalServicesin interfaceServiceBus
-
logCompleteServiceDiff
-
processRemoteServiceDiff
-
processLocalServiceDiff
-
rebuildServiceEndpointForUpdate
protected ServiceEndpoint rebuildServiceEndpointForUpdate(ServiceEndpoint originalEndpoint, ServiceInfo registryServiceInfo) -
rebuildLocalServiceEndpointAfterPublishing
-
setServiceRegistry
-
setDiffCalculator
-
setServiceExportManager
-
setScheduledPool
-