- get() - Method in class org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
-
Return the collection of InstanceDescription
instances that have not been filtered out.
- getActiveIds() - Method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
Returns the 'active' field of the discovery-lite descriptor
- getClusterSyncHistory() - Method in class org.apache.sling.discovery.commons.providers.spi.base.SyncTokenService
-
- getClusterSyncServiceIntervalMillis() - Method in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
-
Returns the interval (in milliseconds) to be used when waiting for the sync tokens or id mapping
- getClusterSyncServiceTimeoutMillis() - Method in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
-
Returns the timeout (in milliseconds) to be used when waiting for the sync tokens or id mapping
- getClusterView() - Method in class org.apache.sling.discovery.commons.providers.DefaultInstanceDescription
-
- getCommonsConfig() - Method in class org.apache.sling.discovery.commons.providers.spi.base.OakBacklogClusterSyncService
-
- getConsistencyHistory() - Method in class org.apache.sling.discovery.commons.providers.spi.base.OakBacklogClusterSyncService
-
- getDeactivatingIds() - Method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
Returns the 'deactivating' field of the discovery-lite descriptor
- getDescriptorFrom(ResourceResolver) - Static method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
{"seq":8,"final":true,"id":"aae34e9a-b08d-409e-be10-9ff4106e5387","me":4,"active":[4],"deactivating":[],"inactive":[1,2,3]}
- getDescriptorStr() - Method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
Returns the raw toString of the underlying descriptor
- getId() - Method in class org.apache.sling.discovery.commons.providers.DefaultClusterView
-
- getIdMapPath() - Method in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
-
Returns the configured path to store the idMap to
- getInstance(String) - Method in class org.apache.sling.discovery.commons.providers.BaseTopologyView
-
Simple getter for a particular slingId
- getInstances() - Method in class org.apache.sling.discovery.commons.providers.DefaultClusterView
-
- getLeader() - Method in class org.apache.sling.discovery.commons.providers.DefaultClusterView
-
- getLocalClusterSyncTokenId() - Method in class org.apache.sling.discovery.commons.providers.BaseTopologyView
-
Returns the id that shall be used in the syncToken
by the ClusterSyncService.
- getLocalClusterSyncTokenId() - Method in class org.apache.sling.discovery.commons.providers.spi.LocalClusterView
-
- getLocalInstance() - Method in class org.apache.sling.discovery.commons.providers.DefaultClusterView
-
Returns the local InstanceDescription or null if no local instance is listed
- getMyId() - Method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
Returns the 'me' field of the discovery-lite descriptor
- getMyId() - Method in class org.apache.sling.discovery.commons.providers.spi.base.IdMapService
-
- getOrCreateResource(ResourceResolver, String) - Static method in class org.apache.sling.discovery.commons.providers.util.ResourceHelper
-
- getProperties() - Method in class org.apache.sling.discovery.commons.providers.DefaultInstanceDescription
-
- getPropertiesForLogging(Resource) - Static method in class org.apache.sling.discovery.commons.providers.util.ResourceHelper
-
Compile a string builder containing the properties of a resource - used for logging
- getProperty(String) - Method in class org.apache.sling.discovery.commons.providers.DefaultInstanceDescription
-
- getResourceResolver() - Method in class org.apache.sling.discovery.commons.providers.spi.base.OakBacklogClusterSyncService
-
Get or create a ResourceResolver
- getResourceResolver() - Method in class org.apache.sling.discovery.commons.providers.spi.base.SyncTokenService
-
Get or create a ResourceResolver
- getSeqNum() - Method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
- getSettingsService() - Method in class org.apache.sling.discovery.commons.providers.spi.base.OakBacklogClusterSyncService
-
- getSlingId() - Method in class org.apache.sling.discovery.commons.providers.DefaultInstanceDescription
-
- getSyncHistory() - Method in class org.apache.sling.discovery.commons.providers.spi.base.ClusterSyncHistory
-
- getSyncHistory() - Method in class org.apache.sling.discovery.commons.providers.spi.base.OakBacklogClusterSyncService
-
- getSyncTokenPath() - Method in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
-
Returns the configured path to store the syncTokens to
- getViewId() - Method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
Returns the 'id' field of the discovery-lite descriptor
- IdMapService - Class in org.apache.sling.discovery.commons.providers.spi.base
-
The IdMapService is responsible for storing a slingId-clusterNodeId
pair to the repository and given all other instances in the cluster
do the same can map clusterNodeIds to slingIds (or vice-versa)
- IdMapService() - Constructor for class org.apache.sling.discovery.commons.providers.spi.base.IdMapService
-
- InitDelayingTopologyEventListener - Class in org.apache.sling.discovery.commons
-
This listener facade applies a 'startup delay' to a topology event handler,
that is, it allows to specify a startup time during which any topology events
will be queued and processing only starts after this time.
- InitDelayingTopologyEventListener(long, TopologyEventListener) - Constructor for class org.apache.sling.discovery.commons.InitDelayingTopologyEventListener
-
Creates a new init-delaying listener with the given delay, delegate and scheduler.
- InitDelayingTopologyEventListener(long, TopologyEventListener, Logger) - Constructor for class org.apache.sling.discovery.commons.InitDelayingTopologyEventListener
-
Creates a new init-delaying listener with the given delay, delegate, scheduler and optinoal logger.
- InitDelayingTopologyEventListener(long, TopologyEventListener, Scheduler) - Constructor for class org.apache.sling.discovery.commons.InitDelayingTopologyEventListener
-
- InitDelayingTopologyEventListener(long, TopologyEventListener, Scheduler, Logger) - Constructor for class org.apache.sling.discovery.commons.InitDelayingTopologyEventListener
-
- installMinEventDelayHandler(DiscoveryService, Scheduler, long) - Method in class org.apache.sling.discovery.commons.providers.base.ViewStateManagerImpl
-
- installMinEventDelayHandler(DiscoveryService, Scheduler, long) - Method in interface org.apache.sling.discovery.commons.providers.ViewStateManager
-
Installs an optional 'min event delay handler' which, using the given scheduler,
delays sending TOPOLOGY_CHANGED event after receiving a handleNewView - with the
idea as to limit the number of toggling between view states.
- InstancesDiff - Class in org.apache.sling.discovery.commons
-
The InstancesDiff
allows to combine and filter two collections of InstanceDescription
instances,
an "old" collection and a "new" collection.
- InstancesDiff(TopologyEvent) - Constructor for class org.apache.sling.discovery.commons.InstancesDiff
-
Create a new InstancesDiff
based on the instances from the old and
new TopologyView
topology views contained in the TopologyEvent
event provided.
- InstancesDiff(TopologyView, TopologyView) - Constructor for class org.apache.sling.discovery.commons.InstancesDiff
-
Create a new InstancesDiff
based on the instances from the old and
new TopologyView
topology views provided.
- InstancesDiff(ClusterView, ClusterView) - Constructor for class org.apache.sling.discovery.commons.InstancesDiff
-
Create a new InstancesDiff
based on the instances from the old and
new ClusterView
cluster views provided.
- InstancesDiff(Collection<T>, Collection<T>) - Constructor for class org.apache.sling.discovery.commons.InstancesDiff
-
Create a new InstancesDiff
based on the provided old and
new Collection
collections of instances.
- InstancesDiff.InstanceCollection - Class in org.apache.sling.discovery.commons
-
The InstanceCollection
collection allows to filter the instances using a set of custom filter
either implementing InstanceFilter
or pre-defined ones.
- isCurrent() - Method in class org.apache.sling.discovery.commons.providers.BaseTopologyView
- isFinal() - Method in class org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteDescriptor
-
- isInClusterView(ClusterView) - Method in class org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
-
Keep only the instances that are contained in the same ClusterView
cluster view
as the one provided.
- isInitialized() - Method in class org.apache.sling.discovery.commons.providers.spi.base.IdMapService
-
- isLeader() - Method in class org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
-
Keep only the leader instances (see InstanceDescription.isLeader()
.
- isLeader() - Method in class org.apache.sling.discovery.commons.providers.DefaultInstanceDescription
-
- isLocal() - Method in class org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
-
Keep only the local instance (see InstanceDescription.isLocal()
.
- isLocal() - Method in class org.apache.sling.discovery.commons.providers.DefaultInstanceDescription
-
- isNotInClusterView(ClusterView) - Method in class org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
-
Filter out the instances that are contained in the same ClusterView
cluster view
as the one provided.
- isNotLeader() - Method in class org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
-
Filter out the leader instances (see InstanceDescription.isLeader()
.
- isNotLocal() - Method in class org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
-
Filter out the local instances (see InstanceDescription.isLocal()
.
- isValidPropertyName(String) - Static method in class org.apache.sling.discovery.commons.providers.util.PropertyNameHelper
-
SLING-2883 : properly test for valid property names