A B C D E F G H I L M N O P R S T U V W 

A

accept(String, Announcement) - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementFilter
Check if the provided announcement, which was received by the provided slingId can be accepted or not.
accepts(ServletRequest) - Method in class org.apache.sling.discovery.base.connectors.ping.wl.SubnetWhitelistEntry
 
accepts(ServletRequest) - Method in interface org.apache.sling.discovery.base.connectors.ping.wl.WhitelistEntry
 
accepts(ServletRequest) - Method in class org.apache.sling.discovery.base.connectors.ping.wl.WildcardWhitelistEntry
 
activate(ComponentContext) - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
activate() - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
activate(ComponentContext) - Method in class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
activate(ComponentContext) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorServlet
 
activated - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
SLING-2895: avoid heartbeats after deactivation
addAllExcept(Announcement, ClusterView, AnnouncementFilter) - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
Add all registered announcements to the given target announcement that are accepted by the given filter
addAllExcept(Announcement, ClusterView, AnnouncementFilter) - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
addIncomingTopologyAnnouncement(Announcement) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
adds an incoming announcement to this announcement
addInstances(Collection<InstanceDescription>) - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
Adds the given instances to this topology
Announcement - Class in org.apache.sling.discovery.base.connectors.announcement
An announcement is the information exchanged by the topology connector and contains all clusters and instances which both the topology connector client and servlet see (in their part before joining the two worlds).
Announcement(String) - Constructor for class org.apache.sling.discovery.base.connectors.announcement.Announcement
 
Announcement(String, int) - Constructor for class org.apache.sling.discovery.base.connectors.announcement.Announcement
 
AnnouncementFilter - Interface in org.apache.sling.discovery.base.connectors.announcement
Filter used during announcement processing internally
AnnouncementRegistry - Interface in org.apache.sling.discovery.base.connectors.announcement
The announcement registry keeps track of all the announcement that this instance either received by a joined topology connector or that a topology connector inherited from the counterpart (the topology connector servlet)
AnnouncementRegistryImpl - Class in org.apache.sling.discovery.base.connectors.announcement
Default implementation of the AnnouncementRegistry which handles JSON-backed announcements and does so by storing them in a local like /var/discovery/impl/clusterNodes/$slingId/announcement.
AnnouncementRegistryImpl() - Constructor for class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
asJSON() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Convert this announcement into json

B

BaseConfig - Interface in org.apache.sling.discovery.base.connectors
Configuration for discovery.base
BaseDiscoveryService - Class in org.apache.sling.discovery.base.commons
Abstract base class for DiscoveryService implementations which uses the ClusterViewService plus Topology Connectors to calculate the current TopologyView
BaseDiscoveryService() - Constructor for class org.apache.sling.discovery.base.commons.BaseDiscoveryService
 
BaseViewChecker - Class in org.apache.sling.discovery.base.commons
The heartbeat handler is responsible and capable of issuing both local and remote heartbeats and registers a periodic job with the scheduler for doing so.
BaseViewChecker() - Constructor for class org.apache.sling.discovery.base.commons.BaseViewChecker
 
bindHttpService(ServiceReference) - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
Bind a http service

C

CachedAnnouncement - Class in org.apache.sling.discovery.base.connectors.announcement
With SLING-3389 the Announcement itself doesn't use the created (ie timeout) field anymore (it still has it currently for backwards compatibility on the wire-level) - hence that's why there's this small in-memory wrapper object which contains an Announcement and carries a lastHeartbeat property.
checkExpiredAnnouncements() - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
Check for expired announcements and remove any if applicable
checkExpiredAnnouncements() - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
checkView() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
for testing only
checkView() - Method in interface org.apache.sling.discovery.base.commons.ViewChecker
Check the view (without issuing a heartbeat)
ClusterViewHelper - Class in org.apache.sling.discovery.base.commons
Contains some static helper methods around ClusterView
ClusterViewHelper() - Constructor for class org.apache.sling.discovery.base.commons.ClusterViewHelper
 
ClusterViewService - Interface in org.apache.sling.discovery.base.commons
The ClusterViewService is capable of determining the ClusterView of the local cluster (ie of the instances that are all hooked to the same underlying repository).
compareTopology(DefaultTopologyView) - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
Compare this topology with the given one and determine how they compare
ConnectorRegistry - Interface in org.apache.sling.discovery.base.connectors.ping
Registry for topology connector clients
ConnectorRegistryImpl - Class in org.apache.sling.discovery.base.connectors.ping
Default implementation of the ConnectorRegistry which keeps a list of outgoing connectors and is capable of pinging them.
ConnectorRegistryImpl() - Constructor for class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
contains(ClusterView, String) - Static method in class org.apache.sling.discovery.base.commons.ClusterViewHelper
checks whether the cluster view contains a particular sling id
containsAny(ClusterView, Collection<InstanceDescription>) - Static method in class org.apache.sling.discovery.base.commons.ClusterViewHelper
checks whether the cluster contains any of the provided instances
context - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
keep a reference to the component context
correspondsTo(Announcement) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Compare this Announcement with another one, ignoring the 'created' property - which gets added to the JSON object automatically due to SLING-3389 wire-backwards-compatibility - and backoffInterval introduced as part of SLING-3382

D

deactivate() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
deactivate() - Method in class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
deactivate() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorServlet
 
decodeMessage(HttpServletRequest) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Decode a message sent from the client.
decodeMessage(String, HttpResponse) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Decode a response from the server.
DefaultTopologyView - Class in org.apache.sling.discovery.base.commons
Default Implementation of the topology view interface
DefaultTopologyView() - Constructor for class org.apache.sling.discovery.base.commons.DefaultTopologyView
Create a new empty topology
DefaultTopologyView(Collection<InstanceDescription>) - Constructor for class org.apache.sling.discovery.base.commons.DefaultTopologyView
Create a new topology filled with the given list of instances
disconnect() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
Disconnect this connector
doActivate() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
doCheckView() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
Check whether the established view matches the reality, ie matches the heartbeats
doDelete(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorServlet
 
doPut(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorServlet
 

E

encodeMessage(String) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Encodes a request returning the encoded body
endpoints - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
SLING-4765 : store endpoints to /clusterInstances for more verbose duplicate slingId/ghost detection
equals(Object) - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 

F

findInstances(InstanceFilter) - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 
fromJSON(String) - Static method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Create an announcement form json

G

getAnnouncement() - Method in class org.apache.sling.discovery.base.connectors.announcement.CachedAnnouncement
 
getAnnouncementRegistry() - Method in class org.apache.sling.discovery.base.commons.BaseDiscoveryService
 
getAnnouncementRegistry() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
getBackoffInterval() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Gets the backoffInterval which the connector servlets passes back to the client to use as the next heartbeatInterval
getBackoffStableFactor() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the (maximum) backoff factor to be used for stable connectors
getBackoffStandbyFactor() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the backoff factor to be used for standby (loop) connectors
getBackoffStandbyInterval() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the backoff interval for standby (loop) connectors in seconds
getClusterInstancesPath() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the resource path where cluster instance informations are stored.
getClusterViews() - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 
getClusterViewService() - Method in class org.apache.sling.discovery.base.commons.BaseDiscoveryService
 
getConnectorConfig() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
getConnectorPingInterval() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the interval (in seconds) in which connectors are pinged
getConnectorPingTimeout() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the timeout (in seconds) after which a connector ping is considered invalid/timed out
getConnectorRegistry() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
getConnectorUrl() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getConnectorUrl() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
the endpoint url where this connector is connecting to
getEndpointsAsString() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
getFirstPing() - Method in class org.apache.sling.discovery.base.connectors.announcement.CachedAnnouncement
 
getId() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getId() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
the unique id of this connector
getInstances() - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 
getKeyInterval() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
 
getLastPing() - Method in class org.apache.sling.discovery.base.connectors.announcement.CachedAnnouncement
 
getLastPingSent() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getLastPingSent() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
the unix-millis when the last heartbeat was sent
getLastRequestEncoding() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getLastRequestEncoding() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
the Content-Encoding of the last request
getLastResponseEncoding() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getLastResponseEncoding() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
the Content-Encoding of the last response
getLocalClusterSyncTokenId() - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 
getLocalClusterView() - Method in interface org.apache.sling.discovery.base.commons.ClusterViewService
Returns the current, local cluster view - throwing an UndefinedClusterViewException if it cannot determine a clusterView at the moment.
getLocalInstance() - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 
getMinEventDelay() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
The minEventDelay to apply to the ViewStateManager
getNextPingDue() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getNextPingDue() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
the seconds until the next heartbeat is due
getOldView() - Method in class org.apache.sling.discovery.base.commons.BaseDiscoveryService
 
getOriginallyCreatedAt() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
 
getOwnerId() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Returns the slingid of the owner of this announcement.
getPrimaryKey() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
the key which is unique to this announcement
getProtocolVersion() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Returns the protocolVersion of this announcement
getReason() - Method in exception org.apache.sling.discovery.base.commons.UndefinedClusterViewException
 
getReceivedAt() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
 
getRemoteSlingId() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getRemoteSlingId() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
the sling id of the remote end
getResetBackoff() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
gets the resetBackoff flag
getResourceResolverFactory() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
getScheduler() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
getSecondsUntilTimeout() - Method in class org.apache.sling.discovery.base.connectors.announcement.CachedAnnouncement
Returns the second until the next heartbeat is expected, otherwise the timeout will hit
getServerInfo() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
the information about the server where this announcement came from
getSharedKey() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
 
getSlingId() - Method in interface org.apache.sling.discovery.base.commons.ClusterViewService
the sling id of the local instance
getSlingSettingsService() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
getSocketConnectTimeout() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the socket connect() timeout used by the topology connector, 0 disables the timeout
getSoTimeout() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the socket read timeout (SO_TIMEOUT) used by the topology connector, 0 disables the timeout
getStatusCode() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getStatusCode() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
return the http status code of the last post to the servlet, -1 if no post was ever done
getStatusDetails() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
getStatusDetails() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
provides more details about connection failures
getTopology() - Method in class org.apache.sling.discovery.base.commons.BaseDiscoveryService
 
getTopologyConnectorURLs() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns the URLs to which to open a topology connector - or null/empty if no topology connector is configured (default is null)
getTopologyConnectorWhitelist() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
Returns a comma separated list of hostnames and/or ip addresses which are allowed as remote hosts to open connections to the topology connector servlet

H

handleIsolatedFromTopology() - Method in class org.apache.sling.discovery.base.commons.BaseDiscoveryService
 
hasActiveAnnouncement(String) - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
Whether or not the given owner has an active (ie not expired) announcement registered
hasActiveAnnouncement(String) - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
hasExpired() - Method in class org.apache.sling.discovery.base.connectors.announcement.CachedAnnouncement
 
HASH_HEADER - Static variable in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
 
hashCode() - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 
heartbeatAndCheckView() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
heartbeatAndCheckView() - Method in interface org.apache.sling.discovery.base.commons.ViewChecker
Issue a heartbeat and check the view

I

isAutoStopLocalLoopEnabled() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
 
isAutoStopped() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
isAutoStopped() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
SLING-3316 : whether or not this connector was auto-stopped
isConnected() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
isConnected() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
whether or not this connector was able to successfully connect
isCorrectVersion() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
check whether this is announcement contains the valid protocol version
isEncryptionEnabled() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
 
isGzipConnectorRequestsEnabled() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
 
isHmacEnabled() - Method in interface org.apache.sling.discovery.base.connectors.BaseConfig
 
isInherited() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Returns the inherited flag - if true this means that this announcement is the response of a topology connect
isLoop() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Returns the loop flag - set when this announcement represents a loop detected in the topology connectors
isStopped() - Method in class org.apache.sling.discovery.base.commons.PeriodicBackgroundJob
 
isStopping() - Method in class org.apache.sling.discovery.base.commons.PeriodicBackgroundJob
 
issueConnectorPings() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
Issue a remote heartbeat using the topology connectors
issueHeartbeat() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
Issue a heartbeat.
isTrusted(HttpServletRequest) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Is the request from the client trusted, based on the signature headers.
isTrusted(HttpResponse) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Is the response from the server to be trusted by the client.
isValid() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
check whether this is a valid announcement, containing the minimal information

L

listAnnouncementsInSameCluster(ClusterView) - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
list all announcements that were received by instances in the local cluster
listAnnouncementsInSameCluster(ClusterView) - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
listInstances() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Returns the list of instances that are contained in this announcement
listInstances(ClusterView) - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
Returns the list of instances contained in all non-expired announcements of this registry
listInstances(ClusterView) - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
listLocalAnnouncements() - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
list all announcements that were received (incoming or inherited) by this instance
listLocalAnnouncements() - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
listLocalIncomingAnnouncements() - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
list all announcements that this instance received (incoming)
listLocalIncomingAnnouncements() - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
listOutgoingConnectors() - Method in interface org.apache.sling.discovery.base.connectors.ping.ConnectorRegistry
Lists all outgoing topology connectors
listOutgoingConnectors() - Method in class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
lock - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
lock object for synchronizing the run method
logger - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
 

M

matchesWildcard(String, String) - Static method in class org.apache.sling.discovery.base.connectors.ping.wl.WildcardHelper
Compare a given string (comparee) against a pattern that contains wildcards and return true if it matches.

N

NAME - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
the name used for the period job with the scheduler

O

org.apache.sling.discovery.base.commons - package org.apache.sling.discovery.base.commons
Provides some common classes for discovery implementors that choose to extend from discovery.base
org.apache.sling.discovery.base.connectors - package org.apache.sling.discovery.base.connectors
Provides topology connector related classes for discovery implementors that choose to extend from discovery.base
org.apache.sling.discovery.base.connectors.announcement - package org.apache.sling.discovery.base.connectors.announcement
Provides topology announcement implementations for discovery implementors that choose to extend from discovery.base
org.apache.sling.discovery.base.connectors.ping - package org.apache.sling.discovery.base.connectors.ping
Provides topology connector implementations for discovery implementors that choose to extend from discovery.base
org.apache.sling.discovery.base.connectors.ping.wl - package org.apache.sling.discovery.base.connectors.ping.wl
Provides whitelist-related classes for discovery implementors that choose to extend from discovery.base

P

PeriodicBackgroundJob - Class in org.apache.sling.discovery.base.commons
Simple executor of a background job that periodically invokes a particular runnable - catching RuntimeExceptions that might throw - but not catching Errors (that terminates the BackgroundJob).
PeriodicBackgroundJob(long, String, Runnable) - Constructor for class org.apache.sling.discovery.base.commons.PeriodicBackgroundJob
 
periodicPingJob - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
persistTo(Resource) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Persists this announcement using the given 'announcements' resource, under which a node with the primary key is created
pingOutgoingConnectors(boolean) - Method in interface org.apache.sling.discovery.base.connectors.ping.ConnectorRegistry
ping all outgoing topology connectors
pingOutgoingConnectors(boolean) - Method in class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
PROPERTY_ID_ENDPOINTS - Static variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
PROPERTY_ID_RUNTIME - Static variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
PROPERTY_ID_SLING_HOME_PATH - Static variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
 

R

registerAnnouncement(Announcement) - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
Register the given announcement - and returns the backoff interval (in seconds) for stable connectors - or -1 if the registration was not successful (likely indicating a loop)
registerAnnouncement(Announcement) - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
registerOutgoingConnector(ClusterViewService, URL) - Method in interface org.apache.sling.discovery.base.connectors.ping.ConnectorRegistry
Register an outgoing topology connector using the provided endpoint url
registerOutgoingConnector(ClusterViewService, URL) - Method in class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
registerPing(Announcement) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
 
removeInherited(String) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Remove all announcements that match the given owner Id
representsLoop() - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
 
representsLoop() - Method in interface org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClientInformation
whether or not the counterpart of this connector has detected a loop in the topology connectors
run() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 
run() - Method in class org.apache.sling.discovery.base.commons.PeriodicBackgroundJob
 
runtimeId - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
SLING-2901: the runtimeId is a unique id, set on activation, used for robust duplicate sling.id detection

S

setBackoffInterval(long) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Sets the backoffInterval which the connector servlets passes back to the client to use as the next heartbeatInterval
setInherited(boolean) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
set the inherited flag - if true this means this announcement is the response of a topology connect
setLocalCluster(ClusterView) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
sets the local clusterview
setLocalClusterView(LocalClusterView) - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
Adds the instances of the given ClusterView to this topology
setLoop(boolean) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
Sets the loop falg - set true when this announcement should represent a loop detected in the topology connectors
setOldView(DefaultTopologyView) - Method in class org.apache.sling.discovery.base.commons.BaseDiscoveryService
 
setResetBackoff(boolean) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
sets the resetBackoff flag
setServerInfo(String) - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
sets the information about the server where this announcement came from
SIG_HEADER - Static variable in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
 
slingId - Variable in class org.apache.sling.discovery.base.commons.BaseViewChecker
the sling id of the local instance
stop() - Method in class org.apache.sling.discovery.base.commons.PeriodicBackgroundJob
 
SubnetWhitelistEntry - Class in org.apache.sling.discovery.base.connectors.ping.wl
Implementation of a WhitelistEntry which accepts cidr and ip mask notations.
SubnetWhitelistEntry(String) - Constructor for class org.apache.sling.discovery.base.connectors.ping.wl.SubnetWhitelistEntry
 
SubnetWhitelistEntry(String, String) - Constructor for class org.apache.sling.discovery.base.connectors.ping.wl.SubnetWhitelistEntry
 

T

testConstructor(ResourceResolverFactory, SlingSettingsService, BaseConfig) - Static method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
testConstructor(AnnouncementRegistry, BaseConfig) - Static method in class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
testConstructorAndActivate(ResourceResolverFactory, SlingSettingsService, BaseConfig) - Static method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
TopologyConnectorClient - Class in org.apache.sling.discovery.base.connectors.ping
A topology connector client is used for sending (pinging) a remote topology connector servlet and exchanging announcements with it
TopologyConnectorClientInformation - Interface in org.apache.sling.discovery.base.connectors.ping
provides information about a topology connector client
TopologyConnectorServlet - Class in org.apache.sling.discovery.base.connectors.ping
Servlet which receives topology announcements at /libs/sling/topology/connector* without authorization (authorization is handled either via hmac-signature with a shared key or via a flexible whitelist)
TopologyConnectorServlet() - Constructor for class org.apache.sling.discovery.base.connectors.ping.TopologyConnectorServlet
 
TopologyRequestValidator - Class in org.apache.sling.discovery.base.connectors.ping
Request Validator helper.
TopologyRequestValidator(BaseConfig) - Constructor for class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Create a TopologyRequestValidator.
toString() - Method in class org.apache.sling.discovery.base.commons.DefaultTopologyView
 
toString() - Method in class org.apache.sling.discovery.base.connectors.announcement.Announcement
 
triggerAsyncConnectorPing() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
Trigger the issuance of the next heartbeat asap instead of at next heartbeat interval
trustMessage(HttpUriRequest, String) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Trust a message on the client before sending, only if trust is enabled.
trustMessage(HttpServletResponse, HttpServletRequest, String) - Method in class org.apache.sling.discovery.base.connectors.ping.TopologyRequestValidator
Trust a response message sent from the server to the client.

U

unbindHttpService(ServiceReference) - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
Unbind a http service
UndefinedClusterViewException - Exception in org.apache.sling.discovery.base.commons
This exception is thrown when the ClusterViewService does not have a cluster view that is valid.
UndefinedClusterViewException(UndefinedClusterViewException.Reason) - Constructor for exception org.apache.sling.discovery.base.commons.UndefinedClusterViewException
 
UndefinedClusterViewException(UndefinedClusterViewException.Reason, String) - Constructor for exception org.apache.sling.discovery.base.commons.UndefinedClusterViewException
 
UndefinedClusterViewException.Reason - Enum in org.apache.sling.discovery.base.commons
 
unregisterAnnouncement(String) - Method in interface org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistry
Unregister the announcement owned by the given slingId
unregisterAnnouncement(String) - Method in class org.apache.sling.discovery.base.connectors.announcement.AnnouncementRegistryImpl
 
unregisterOutgoingConnector(String) - Method in interface org.apache.sling.discovery.base.connectors.ping.ConnectorRegistry
Unregister an outgoing topology connector identified by the given (connector) id
unregisterOutgoingConnector(String) - Method in class org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
 
updateProperties() - Method in class org.apache.sling.discovery.base.commons.BaseViewChecker
 

V

valueOf(String) - Static method in enum org.apache.sling.discovery.base.commons.UndefinedClusterViewException.Reason
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.sling.discovery.base.commons.UndefinedClusterViewException.Reason
Returns an array containing the constants of this enum type, in the order they are declared.
ViewChecker - Interface in org.apache.sling.discovery.base.commons
A ViewChecker is capable of issuing a heartbeat and subsequently checking the resulting, current view in the local cluster.

W

WhitelistEntry - Interface in org.apache.sling.discovery.base.connectors.ping.wl
A WhitelistEntry is capable of accepting certain requests depending on a configuration.
wildcardAsRegex(String) - Static method in class org.apache.sling.discovery.base.connectors.ping.wl.WildcardHelper
converts a string containing wildcards (* and ?)
WildcardHelper - Class in org.apache.sling.discovery.base.connectors.ping.wl
Helper class for wildcards
WildcardHelper() - Constructor for class org.apache.sling.discovery.base.connectors.ping.wl.WildcardHelper
 
WildcardWhitelistEntry - Class in org.apache.sling.discovery.base.connectors.ping.wl
Implementation of a WhitelistEntry which can accept wildcards (* and ?)
WildcardWhitelistEntry(String) - Constructor for class org.apache.sling.discovery.base.connectors.ping.wl.WildcardWhitelistEntry
 
A B C D E F G H I L M N O P R S T U V W 

Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.