public class ServiceBusImpl extends BaseLifecycle implements ServiceBus, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
ServiceBusImpl() |
isStarted, setStarted, stoppublic ServiceBusImpl()
public void afterPropertiesSet() throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void start() throws Exception
start in interface Lifecyclestart in class BaseLifecycleExceptionprotected boolean isDevMode()
protected void startSynchronizationThread()
public void destroy() throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionprotected void stopSynchronizationThread()
public String getInstanceId()
getInstanceId in interface ServiceBuspublic void setInstanceId(String instanceId)
public List<Endpoint> getEndpoints(QName serviceName)
getEndpoints in interface ServiceBuspublic List<Endpoint> getEndpoints(QName serviceName, String applicationId)
getEndpoints in interface ServiceBuspublic List<Endpoint> getRemoteEndpoints(QName serviceName)
getRemoteEndpoints in interface ServiceBuspublic Endpoint getLocalEndpoint(QName serviceName)
getLocalEndpoint in interface ServiceBuspublic Map<QName,Endpoint> getLocalEndpoints()
getLocalEndpoints in interface ServiceBuspublic List<Endpoint> getAllEndpoints()
getAllEndpoints in interface ServiceBuspublic Endpoint getEndpoint(QName serviceName)
getEndpoint in interface ServiceBuspublic Endpoint getEndpoint(QName serviceName, String applicationId)
getEndpoint in interface ServiceBusprotected Set<RemoteService> filterByApplicationId(String applicationId, Set<RemoteService> remoteServices)
public Endpoint getConfiguredEndpoint(ServiceConfiguration serviceConfiguration)
getConfiguredEndpoint in interface ServiceBuspublic Object getService(QName serviceName)
getService in interface ServiceBuspublic Object getService(QName serviceName, String applicationId)
getService in interface ServiceBuspublic ServiceConfiguration publishService(ServiceDefinition serviceDefinition, boolean synchronize)
publishService in interface ServiceBuspublic List<ServiceConfiguration> publishServices(List<ServiceDefinition> serviceDefinitions, boolean synchronize)
publishServices in interface ServiceBuspublic boolean removeService(QName serviceName, boolean synchronize)
removeService in interface ServiceBuspublic List<Boolean> removeServices(List<QName> serviceNames, boolean synchronize)
removeServices in interface ServiceBusprotected void synchronizeAndProcess(org.kuali.rice.ksb.impl.bus.ServiceBusImpl.SyncProcessor processor)
public void synchronize()
synchronize in interface ServiceBuspublic void synchronizeRemoteServices()
synchronizeRemoteServices in interface ServiceBuspublic void synchronizeLocalServices()
synchronizeLocalServices in interface ServiceBusprotected void logCompleteServiceDiff(CompleteServiceDiff serviceDiff)
protected void processRemoteServiceDiff(RemoteServicesDiff remoteServicesDiff)
protected void processLocalServiceDiff(LocalServicesDiff localServicesDiff)
protected ServiceEndpoint rebuildServiceEndpointForUpdate(ServiceEndpoint originalEndpoint, ServiceInfo registryServiceInfo)
protected void rebuildLocalServiceEndpointAfterPublishing(ServiceEndpoint publishedService)
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setDiffCalculator(ServiceRegistryDiffCalculator diffCalculator)
public void setServiceExportManager(ServiceExportManager serviceExportManager)
public void setScheduledPool(KSBScheduledPool scheduledPool)
Copyright © 2005–2017 The Kuali Foundation. All rights reserved.