@Singleton @RegistryStrategy public class DefaultRegistrySynchronizationStrategy extends DefaultServiceSynchronizationStrategy implements IRegistrySynchronizationStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static long |
HEARTBEAT_SERVICE_PERIOD |
HEARTBEAT_REGISTRY_PERIOD| Modifier | Constructor and Description |
|---|---|
protected |
DefaultRegistrySynchronizationStrategy()
Constructor.
|
protected |
DefaultRegistrySynchronizationStrategy(RegistryCache registryCache,
MulticastRegistryDiscoverer registryDiscoverer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRegistry(RegistryDescriptor newRegistryDescriptor) |
void |
addService(ServiceDescriptor serviceDescriptor) |
void |
close() |
static DefaultRegistrySynchronizationStrategy |
create()
Creates a new
DefaultRegistrySynchronizationStrategy. |
protected IMarshaller |
determineCommonMimeType(RegistryDescriptor registryDescriptor)
Determine which mime-type and corresponding marshaller is mutually
supported by this lookup and the registry-server.
|
ServiceCache |
getServiceCache() |
void |
initialize() |
void |
removeRegistry(RegistryDescriptor oldRegistryDescriptor) |
void |
removeService(ServiceDescriptor serviceDescriptor) |
callHeartbeat, getRegistryCache, getTimer, removeServices, requestAllRegistriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveServices, requestAllRegistriesprotected static final long HEARTBEAT_SERVICE_PERIOD
protected DefaultRegistrySynchronizationStrategy()
protected DefaultRegistrySynchronizationStrategy(RegistryCache registryCache, MulticastRegistryDiscoverer registryDiscoverer)
public static DefaultRegistrySynchronizationStrategy create() throws ServiceException
DefaultRegistrySynchronizationStrategy.ServiceException@PostConstruct public void initialize()
initialize in class DefaultServiceSynchronizationStrategypublic void addService(ServiceDescriptor serviceDescriptor) throws ServiceException
addService in interface IServiceSynchronizationStrategyaddService in class DefaultServiceSynchronizationStrategyServiceExceptionpublic void removeService(ServiceDescriptor serviceDescriptor) throws ServiceException
removeService in interface IServiceSynchronizationStrategyremoveService in class DefaultServiceSynchronizationStrategyServiceExceptionpublic void addRegistry(RegistryDescriptor newRegistryDescriptor) throws ServiceException
addRegistry in interface IRegistrySynchronizationStrategyServiceExceptionpublic void removeRegistry(RegistryDescriptor oldRegistryDescriptor) throws ServiceException
removeRegistry in interface IRegistrySynchronizationStrategyServiceExceptionprotected IMarshaller determineCommonMimeType(RegistryDescriptor registryDescriptor) throws ServiceException
determineCommonMimeType in class DefaultServiceSynchronizationStrategyregistryDescriptor - the RegistryDescriptorIMarshaller or nullServiceExceptionpublic ServiceCache getServiceCache()
getServiceCache in interface IRegistrySynchronizationStrategypublic void close()
close in interface IServiceSynchronizationStrategyclose in interface Closeableclose in interface AutoCloseableclose in class DefaultServiceSynchronizationStrategyCopyright © 2016. All rights reserved.