@Service(value={DiscoveryService.class,OakDiscoveryService.class}) public class OakDiscoveryService extends BaseDiscoveryService
Constructor and Description |
---|
OakDiscoveryService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext)
Activate this service
|
protected void |
bindPropertyProvider(PropertyProvider propertyProvider,
java.util.Map<java.lang.String,java.lang.Object> props)
Bind a new property provider.
|
protected void |
bindTopologyEventListener(TopologyEventListener eventListener)
bind a topology event listener
|
void |
checkForTopologyChange()
Check the current topology for any potential change
|
protected void |
deactivate()
Deactivate this service
|
protected AnnouncementRegistry |
getAnnouncementRegistry() |
protected ClusterViewService |
getClusterViewService() |
ViewStateManager |
getViewStateManager()
for testing only
|
protected void |
handleIsolatedFromTopology() |
void |
handleTopologyChanging()
Handle the fact that the topology has started to change - inform the listeners asap
|
static OakDiscoveryService |
testConstructor(SlingSettingsService settingsService,
AnnouncementRegistry announcementRegistry,
ConnectorRegistry connectorRegistry,
ClusterViewService clusterViewService,
Config config,
OakViewChecker connectorPinger,
Scheduler scheduler,
IdMapService idMapService,
OakBacklogClusterSyncService oakBacklogClusterSyncService,
SyncTokenService syncTokenService,
ResourceResolverFactory factory) |
protected void |
unbindPropertyProvider(PropertyProvider propertyProvider,
java.util.Map<java.lang.String,java.lang.Object> props)
Unbind a property provider
|
protected void |
unbindTopologyEventListener(TopologyEventListener eventListener)
Unbind a topology event listener
|
protected void |
updatedPropertyProvider(PropertyProvider propertyProvider,
java.util.Map<java.lang.String,java.lang.Object> props)
Update a property provider.
|
void |
updateProperties()
Update the properties and sent a topology event if applicable
|
getOldView, getTopology, setOldView
public static OakDiscoveryService testConstructor(SlingSettingsService settingsService, AnnouncementRegistry announcementRegistry, ConnectorRegistry connectorRegistry, ClusterViewService clusterViewService, Config config, OakViewChecker connectorPinger, Scheduler scheduler, IdMapService idMapService, OakBacklogClusterSyncService oakBacklogClusterSyncService, SyncTokenService syncTokenService, ResourceResolverFactory factory)
protected void handleIsolatedFromTopology()
handleIsolatedFromTopology
in class BaseDiscoveryService
@Activate protected void activate(org.osgi.framework.BundleContext bundleContext)
@Deactivate protected void deactivate()
protected void bindTopologyEventListener(TopologyEventListener eventListener)
protected void unbindTopologyEventListener(TopologyEventListener eventListener)
protected void bindPropertyProvider(PropertyProvider propertyProvider, java.util.Map<java.lang.String,java.lang.Object> props)
protected void updatedPropertyProvider(PropertyProvider propertyProvider, java.util.Map<java.lang.String,java.lang.Object> props)
protected void unbindPropertyProvider(PropertyProvider propertyProvider, java.util.Map<java.lang.String,java.lang.Object> props)
public void updateProperties()
public void checkForTopologyChange()
public void handleTopologyChanging()
protected ClusterViewService getClusterViewService()
getClusterViewService
in class BaseDiscoveryService
protected AnnouncementRegistry getAnnouncementRegistry()
getAnnouncementRegistry
in class BaseDiscoveryService
public ViewStateManager getViewStateManager()
Copyright © 2022 The Apache Software Foundation. All rights reserved.