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.impl.topology.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.impl.topology.connector.wl.SubnetWhitelistEntry
 
accepts(ServletRequest) - Method in interface org.apache.sling.discovery.impl.topology.connector.wl.WhitelistEntry
 
accepts(ServletRequest) - Method in class org.apache.sling.discovery.impl.topology.connector.wl.WildcardWhitelistEntry
 
activate(ComponentContext) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingHandler
 
activate(ComponentContext) - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
 
activate(Map<String, Object>) - Method in class org.apache.sling.discovery.impl.Config
 
activate() - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Activate this service
activate(ComponentContext) - Method in class org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
 
activate(ComponentContext) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorServlet
 
activate(ComponentContext) - Method in class org.apache.sling.discovery.impl.topology.TopologyChangeHandler
 
activate(BundleContext) - Method in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
addAllExcept(Announcement, ClusterView, AnnouncementFilter) - Method in interface org.apache.sling.discovery.impl.topology.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.impl.topology.announcement.AnnouncementRegistryImpl
 
addIncomingTopologyAnnouncement(Announcement) - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
adds an incoming announcement to this announcement
addInstanceDescription(DefaultInstanceDescriptionImpl) - Method in class org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
Add the given instance to this cluster and set the cluster on the instance (back pointer)
addInstances(Collection<InstanceDescription>) - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
analyzeVotings(ResourceResolver) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingHandler
Analyze any ongoing voting in the repository.
Announcement - Class in org.apache.sling.discovery.impl.topology.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.impl.topology.announcement.Announcement
 
Announcement(String, int) - Constructor for class org.apache.sling.discovery.impl.topology.announcement.Announcement
 
AnnouncementFilter - Interface in org.apache.sling.discovery.impl.topology.announcement
Filter used during announcement processing internally
AnnouncementRegistry - Interface in org.apache.sling.discovery.impl.topology.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.impl.topology.announcement
 
AnnouncementRegistryImpl() - Constructor for class org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl
 
asJSON() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Convert this announcement into json
asJSONObject() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Convert this announcement into a json object

B

bindPropertyProvider(PropertyProvider, Map<String, Object>) - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Bind a new property provider.
bindTopologyEventListener(TopologyEventListener) - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
bind a topology event listener

C

CachedAnnouncement - Class in org.apache.sling.discovery.impl.topology.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.impl.topology.announcement.AnnouncementRegistry
Check for expired announcements and remove any if applicable
checkExpiredAnnouncements() - Method in class org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl
 
cleanupTimedoutVotings(ResourceResolver) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingHandler
 
ClusterViewService - Interface in org.apache.sling.discovery.impl.cluster
The ClusterViewService is responsible and provides access to the view established in a JcR cluster.
ClusterViewServiceImpl - Class in org.apache.sling.discovery.impl.cluster
Default implementation of the ClusterViewService interface.
ClusterViewServiceImpl() - Constructor for class org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl
 
compareTopology(TopologyViewImpl) - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
Compare this topology with the given one and determine how they compare
Config - Class in org.apache.sling.discovery.impl
Configuration object used as a central config point for the discovery service implementation
Config() - Constructor for class org.apache.sling.discovery.impl.Config
 
configure(Map<String, Object>) - Method in class org.apache.sling.discovery.impl.Config
 
CONNECTION_TIMEOUT_KEY - Static variable in class org.apache.sling.discovery.impl.Config
 
ConnectorRegistry - Interface in org.apache.sling.discovery.impl.topology.connector
Registry for topology connector clients
ConnectorRegistryImpl - Class in org.apache.sling.discovery.impl.topology.connector
 
ConnectorRegistryImpl() - Constructor for class org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
 
contains(String) - Method in interface org.apache.sling.discovery.impl.cluster.ClusterViewService
checks whether the cluster view contains a particular sling id
contains(String) - Method in class org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl
 
containsAny(Collection<InstanceDescription>) - Method in interface org.apache.sling.discovery.impl.cluster.ClusterViewService
checks whether the cluster contains any of the provided instances
containsAny(Collection<InstanceDescription>) - Method in class org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl
 
correspondsTo(Announcement) - Method in class org.apache.sling.discovery.impl.topology.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
createResource(ResourceResolver, String) - Static method in class org.apache.sling.discovery.impl.common.resource.ResourceHelper
Deprecated. use ResourceHelper.getOrCreateResource(ResourceResolver, String) instead

D

deactivate() - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
 
deactivate() - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Deactivate this service
deactivate() - Method in class org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
 
deactivate() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorServlet
 
deactivate() - Method in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
decodeMessage(HttpServletRequest) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
Decode a message sent from the client.
decodeMessage(HttpMethod) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
Decode a response from the server.
DEFAULT_CONNECTION_TIMEOUT - Static variable in class org.apache.sling.discovery.impl.Config
Configure the socket connect timeout for topology connectors.
DEFAULT_HEARTBEAT_INTERVAL - Static variable in class org.apache.sling.discovery.impl.Config
Configure the interval (in seconds) according to which the heartbeats are exchanged in the topology.
DEFAULT_HEARTBEAT_TIMEOUT - Static variable in class org.apache.sling.discovery.impl.Config
Configure the timeout (in seconds) after which an instance is considered dead/crashed.
DEFAULT_MIN_EVENT_DELAY - Static variable in class org.apache.sling.discovery.impl.Config
Configure the time (in seconds) which must be passed at minimum between sending TOPOLOGY_CHANGING/_CHANGED (avoid flooding).
DEFAULT_SO_TIMEOUT - Static variable in class org.apache.sling.discovery.impl.Config
Configure the socket read timeout (SO_TIMEOUT) for topology connectors.
DefaultClusterViewImpl - Class in org.apache.sling.discovery.impl.common
Default implementation of the ClusterView interface.
DefaultClusterViewImpl(String) - Constructor for class org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
 
DefaultInstanceDescriptionImpl - Class in org.apache.sling.discovery.impl.common
Base implementation for the InstanceDescription interface.
DefaultInstanceDescriptionImpl(DefaultClusterViewImpl, boolean, boolean, String, Map<String, String>) - Constructor for class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
deleteResource(ResourceResolver, String) - Static method in class org.apache.sling.discovery.impl.common.resource.ResourceHelper
 
determineLiveInstances(Resource, Config) - Static method in class org.apache.sling.discovery.impl.common.ViewHelper
Return the list of cluster instances that are 'live', ie that have sent a heartbeat within the configured heartbeat timeout
disconnect() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
Disconnect this connector
DISCOVERY_RESOURCE_PATH_KEY - Static variable in class org.apache.sling.discovery.impl.Config
 
DiscoveryServiceImpl - Class in org.apache.sling.discovery.impl
This implementation of the cross-cluster service uses the view manager implementation for detecting changes in a cluster and only supports one cluster (of which this instance is part of).
DiscoveryServiceImpl() - Constructor for class org.apache.sling.discovery.impl.DiscoveryServiceImpl
 
doDelete(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorServlet
 
doPut(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorServlet
 

E

encodeMessage(String) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
Encodes a request returning the encoded body
equals(Object) - Method in class org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
 
equals(Object) - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
equals(Object) - Method in class org.apache.sling.discovery.impl.common.View
 
equals(Object) - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
EstablishedClusterView - Class in org.apache.sling.discovery.impl.common.resource
A ClusterView which represents an established view and contains all members as stored in the repository at the according location
EstablishedClusterView(Config, View, String) - Constructor for class org.apache.sling.discovery.impl.common.resource.EstablishedClusterView
Construct a new established cluster view
EstablishedInstanceDescription - Class in org.apache.sling.discovery.impl.common.resource
An InstanceDescription which reads the properties from the according location in the repository
EstablishedInstanceDescription(DefaultClusterViewImpl, Resource, String, boolean, boolean) - Constructor for class org.apache.sling.discovery.impl.common.resource.EstablishedInstanceDescription
 
establishedViewMatches(ResourceResolver, Config, Set<String>) - Static method in class org.apache.sling.discovery.impl.common.ViewHelper
Check if the established view matches the given set of slingIds

F

findInstances(InstanceFilter) - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
forcedShutdown() - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
SLING-2901 : send a TOPOLOGY_CHANGING event and shutdown the service thereafter
fromJSON(String) - Static method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Create an announcement form json

G

getAnnouncement() - Method in class org.apache.sling.discovery.impl.topology.announcement.CachedAnnouncement
 
getBackoffInterval() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Gets the backoffInterval which the connector servlets passes back to the client to use as the next heartbeatInterval
getBackoffStableFactor() - Method in class org.apache.sling.discovery.impl.Config
Returns the (maximum) backoff factor to be used for stable connectors
getBackoffStandbyFactor() - Method in class org.apache.sling.discovery.impl.Config
Returns the backoff factor to be used for standby (loop) connectors
getBackoffStandbyInterval() - Method in class org.apache.sling.discovery.impl.Config
Returns the backoff interval for standby (loop) connectors in seconds
getClusterInstancesPath() - Method in class org.apache.sling.discovery.impl.Config
Returns the resource path where cluster instance informations are stored.
getClusterView() - Method in interface org.apache.sling.discovery.impl.cluster.ClusterViewService
the current cluster view
getClusterView() - Method in class org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl
 
getClusterView() - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
getClusterViews() - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
getConnectionTimeout() - Method in class org.apache.sling.discovery.impl.Config
Returns the socket connect() timeout used by the topology connector, 0 disables the timeout
getConnectorUrl() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getConnectorUrl() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
the endpoint url where this connector is connecting to
getEstablishedView(ResourceResolver, Config) - Static method in class org.apache.sling.discovery.impl.common.ViewHelper
Return the currently established cluster view - or null if there is no cluster view established at the moment.
getEstablishedViewPath() - Method in class org.apache.sling.discovery.impl.Config
Returns the resource path where the established view is stored.
getHeartbeatInterval() - Method in class org.apache.sling.discovery.impl.Config
Returns the interval (in seconds) in which heartbeats are sent
getHeartbeatTimeout() - Method in class org.apache.sling.discovery.impl.Config
Returns the timeout (in seconds) after which an instance or voting is considered invalid/timed out
getHeartbeatTimeoutMillis() - Method in class org.apache.sling.discovery.impl.Config
Returns the timeout (in milliseconds) after which an instance or voting is considered invalid/timed out
getId() - Method in class org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
 
getId() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getId() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
the unique id of this connector
getInstances() - Method in class org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
 
getInstances() - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
getIsolatedClusterViewId() - Method in interface org.apache.sling.discovery.impl.cluster.ClusterViewService
the view id of the cluster view when isolated - ie before any view is established
getIsolatedClusterViewId() - Method in class org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl
 
getKeyInterval() - Method in class org.apache.sling.discovery.impl.Config
 
getLabel() - Method in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
getLastHeartbeat() - Method in class org.apache.sling.discovery.impl.topology.announcement.CachedAnnouncement
 
getLastHeartbeatSent() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getLastHeartbeatSent() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
the unix-millis when the last heartbeat was sent
getLastRequestEncoding() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getLastRequestEncoding() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
the Content-Encoding of the last request
getLastResponseEncoding() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getLastResponseEncoding() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
the Content-Encoding of the last response
getLeader() - Method in class org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
 
getLeaderElectionRepositoryDescriptor() - Method in class org.apache.sling.discovery.impl.Config
Returns the repository descriptor key which is to be included in the cluster leader election - or null.
getLocalInstance() - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
getMinEventDelay() - Method in class org.apache.sling.discovery.impl.Config
Returns the minimum time (in seconds) between sending TOPOLOGY_CHANGING/_CHANGED events - to avoid flooding
getNextHeartbeatDue() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getNextHeartbeatDue() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
the seconds until the next heartbeat is due
getOngoingVotingsPath() - Method in class org.apache.sling.discovery.impl.Config
Returns the resource path where ongoing votings are stored.
getOrCreateResource(ResourceResolver, String) - Static method in class org.apache.sling.discovery.impl.common.resource.ResourceHelper
 
getOwnerId() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Returns the slingid of the owner of this announcement.
getPreviousViewPath() - Method in class org.apache.sling.discovery.impl.Config
Returns the resource path where the previous view is stored.
getPrimaryKey() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
the key which is unique to this announcement
getProperties() - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
getPropertiesForLogging(Resource) - Static method in class org.apache.sling.discovery.impl.common.resource.ResourceHelper
Compile a string builder containing the properties of a resource - used for logging
getProperty(String) - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
getProtocolVersion() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Returns the protocolVersion of this announcement
getRemoteSlingId() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getRemoteSlingId() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
the sling id of the remote end
getResetBackoff() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
gets the resetBackoff flag
getResource() - Method in class org.apache.sling.discovery.impl.common.View
Returns the underlying resource of this view.
getSecondsUntilTimeout() - Method in class org.apache.sling.discovery.impl.topology.announcement.CachedAnnouncement
Returns the second until the next heartbeat is expected, otherwise the timeout will hit
getServerInfo() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
the information about the server where this announcement came from
getSharedKey() - Method in class org.apache.sling.discovery.impl.Config
 
getSlingId() - Method in interface org.apache.sling.discovery.impl.cluster.ClusterViewService
the sling id of the local instance
getSlingId() - Method in class org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl
 
getSlingId() - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
getSoTimeout() - Method in class org.apache.sling.discovery.impl.Config
Returns the socket read timeout (SO_TIMEOUT) used by the topology connector, 0 disables the timeout
getStatusCode() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
getStatusCode() - Method in interface org.apache.sling.discovery.impl.topology.connector.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.impl.topology.connector.TopologyConnectorClient
 
getStatusDetails() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
provides more details about connection failures
getTitle() - Method in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
getTopology() - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
 
getTopologyConnectorURLs() - Method in class org.apache.sling.discovery.impl.Config
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 class org.apache.sling.discovery.impl.Config
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
getViewId() - Method in class org.apache.sling.discovery.impl.common.View
Returns the id of this view.
getWinningVoting(ResourceResolver, Config) - Static method in class org.apache.sling.discovery.impl.cluster.voting.VotingHelper
Return the still valid (ongoing) and winning (received a yes vote from everybody) voting
getYesVotingOf(ResourceResolver, Config, String) - Static method in class org.apache.sling.discovery.impl.cluster.voting.VotingHelper
Returns the voting for which the given slingId has vote yes or was the initiator (which is equal to yes).

H

handleEvent(Event) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingHandler
handle repository changes and react to ongoing votings
handleEvent(Event) - Method in class org.apache.sling.discovery.impl.topology.TopologyChangeHandler
Handle osgi events from the repository and take note when the established view, properties or announcements change - and inform the DiscoveryServiceImpl in those cases.
handleTopologyChanged() - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Handle the fact that the topology has likely changed
handleTopologyEvent(TopologyEvent) - Method in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
keep a truncated history of the log events for information purpose (to be shown in the webconsole)
hasActiveAnnouncement(String) - Method in interface org.apache.sling.discovery.impl.topology.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.impl.topology.announcement.AnnouncementRegistryImpl
 
hasExpired() - Method in class org.apache.sling.discovery.impl.topology.announcement.CachedAnnouncement
 
HASH_HEADER - Static variable in class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
 
hashCode() - Method in class org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
 
hashCode() - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
hashCode() - Method in class org.apache.sling.discovery.impl.common.View
 
hashCode() - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
hasNoVotes() - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Checks whether there are any no votes on this voting
hasVotedOrIsInitiator(String) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Checks whether the given slingId has voted yes or is the initiator of this voting
HEARTBEAT_INTERVAL_KEY - Static variable in class org.apache.sling.discovery.impl.Config
 
HEARTBEAT_TIMEOUT_KEY - Static variable in class org.apache.sling.discovery.impl.Config
 
HeartbeatHandler - Class in org.apache.sling.discovery.impl.common.heartbeat
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.
HeartbeatHandler() - Constructor for class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
 

I

IncomingInstanceDescription - Class in org.apache.sling.discovery.impl.topology.announcement
InstanceDescription which represents an instance that was announced through the topology connector - and hence is by definition a remote instance.
IncomingInstanceDescription(DefaultClusterViewImpl, boolean, String, Map<String, String>) - Constructor for class org.apache.sling.discovery.impl.topology.announcement.IncomingInstanceDescription
 
inform(StartupMode, boolean) - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
 
initialize(DiscoveryServiceImpl, String) - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
The initialize method is called by the DiscoveryServiceImpl.activate as we require the discoveryService (and the discoveryService has a reference on us - but we cant have circular references in osgi).
isAutoStopLocalLoopEnabled() - Method in class org.apache.sling.discovery.impl.Config
 
isAutoStopped() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
isAutoStopped() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
SLING-3316 : whether or not this connector was auto-stopped
isConnected() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
isConnected() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
whether or not this connector was able to successfully connect
isCorrectVersion() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
check whether this is announcement contains the valid protocol version
isCurrent() - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
isEncryptionEnabled() - Method in class org.apache.sling.discovery.impl.Config
 
isGzipConnectorRequestsEnabled() - Method in class org.apache.sling.discovery.impl.Config
 
isHmacEnabled() - Method in class org.apache.sling.discovery.impl.Config
 
isInherited() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Returns the inherited flag - if true this means that this announcement is the response of a topology connect
isInitiatedBy(String) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Checks whether this voting was initiated by the given slingId
isLeader() - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
isLocal() - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
isLoop() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Returns the loop flag - set when this announcement represents a loop detected in the topology connectors
IsolatedInstanceDescription - Class in org.apache.sling.discovery.impl.common.resource
InstanceDescription which is used at bootstrap time when there is no established view yet - hence the instance is considered to be in 'isolated' state.
IsolatedInstanceDescription(Resource, String, String) - Constructor for class org.apache.sling.discovery.impl.common.resource.IsolatedInstanceDescription
 
isOngoingVoting(Config) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Checks whether this voting is still ongoing - that is, whether a valid votingStart is set and whether that's within the heartbeat timeout configured
isTimedoutVoting(Config) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Checks whether this voting has timed out - that is, whether there is a valid votingStart set and whether that has timed out
isTrusted(HttpServletRequest) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
Is the request from the client trusted, based on the signature headers.
isTrusted(HttpMethod) - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
Is the response from the server to be trusted by the client.
isValid() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
check whether this is a valid announcement, containing the minimal information
isValidPropertyName(String) - Static method in class org.apache.sling.discovery.impl.common.resource.ResourceHelper
SLING-2883 : properly test for valid property names
isWinning() - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Checks whether this voting is winning - winning is when it has votes from each of the members and all are yes votes

L

LABEL - Static variable in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
LEADER_ELECTION_REPOSITORY_DESCRIPTOR_NAME_KEY - Static variable in class org.apache.sling.discovery.impl.Config
Name of the repository descriptor to be taken into account for leader election: those instances have preference to become leader which have the corresponding descriptor value of 'false'
listAnnouncementsInSameCluster(ClusterView) - Method in interface org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistry
list all announcements that were received by instances in the local cluster
listAnnouncementsInSameCluster(ClusterView) - Method in class org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl
 
listInstances() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Returns the list of instances that are contained in this announcement
listInstances(ClusterView) - Method in interface org.apache.sling.discovery.impl.topology.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.impl.topology.announcement.AnnouncementRegistryImpl
 
listLocalAnnouncements() - Method in interface org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistry
list all announcements that were received (incoming or inherited) by this instance
listLocalAnnouncements() - Method in class org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl
 
listLocalIncomingAnnouncements() - Method in interface org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistry
list all announcements that this instance received (incoming)
listLocalIncomingAnnouncements() - Method in class org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl
 
listOpenNonWinningVotings(ResourceResolver, Config) - Static method in class org.apache.sling.discovery.impl.cluster.voting.VotingHelper
List all the votings that are currently 'open' but 'not winning'.
listOutgoingConnectors() - Method in interface org.apache.sling.discovery.impl.topology.connector.ConnectorRegistry
Lists all outgoing topology connectors
listOutgoingConnectors() - Method in class org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
 
listTimedoutVotings(ResourceResolver, Config) - Static method in class org.apache.sling.discovery.impl.cluster.voting.VotingHelper
List all the votings that have timed out

M

markOld() - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
Mark this topology as old
matches(Set<String>) - Method in class org.apache.sling.discovery.impl.common.View
Compare this view with the given set of slingIds
matchesLiveView(Config) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Checks if this voting matches the current live view
matchesLiveView(Resource, Config) - Method in class org.apache.sling.discovery.impl.common.View
Checks whether this view matches the 'live view' as represented in the clusterInstances resource
matchesWildcard(String, String) - Static method in class org.apache.sling.discovery.impl.common.WildcardHelper
Compare a given string (comparee) against a pattern that contains wildcards and return true if it matches.
MIN_EVENT_DELAY_KEY - Static variable in class org.apache.sling.discovery.impl.Config
 
moveResource(Resource, String) - Static method in class org.apache.sling.discovery.impl.common.resource.ResourceHelper
 

N

newVoting(ResourceResolver, Config, String, String, Set<String>) - Static method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
Create a new voting with the given list of instances, the given voting/view id and the given slingid of the initiator.

O

org.apache.sling.discovery.impl - package org.apache.sling.discovery.impl
 
org.apache.sling.discovery.impl.cluster - package org.apache.sling.discovery.impl.cluster
 
org.apache.sling.discovery.impl.cluster.voting - package org.apache.sling.discovery.impl.cluster.voting
 
org.apache.sling.discovery.impl.common - package org.apache.sling.discovery.impl.common
 
org.apache.sling.discovery.impl.common.heartbeat - package org.apache.sling.discovery.impl.common.heartbeat
 
org.apache.sling.discovery.impl.common.resource - package org.apache.sling.discovery.impl.common.resource
 
org.apache.sling.discovery.impl.topology - package org.apache.sling.discovery.impl.topology
 
org.apache.sling.discovery.impl.topology.announcement - package org.apache.sling.discovery.impl.topology.announcement
 
org.apache.sling.discovery.impl.topology.connector - package org.apache.sling.discovery.impl.topology.connector
 
org.apache.sling.discovery.impl.topology.connector.wl - package org.apache.sling.discovery.impl.topology.connector.wl
 

P

persistTo(Resource) - Method in class org.apache.sling.discovery.impl.topology.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.impl.topology.connector.ConnectorRegistry
ping all outgoing topology connectors
pingOutgoingConnectors(boolean) - Method in class org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
 
printConfiguration(PrintWriter) - Method in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 

R

registerAnnouncement(Announcement) - Method in interface org.apache.sling.discovery.impl.topology.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.impl.topology.announcement.AnnouncementRegistryImpl
 
registerOutgoingConnector(ClusterViewService, URL) - Method in interface org.apache.sling.discovery.impl.topology.connector.ConnectorRegistry
Register an outgoing topology connector using the provided endpoint url
registerOutgoingConnector(ClusterViewService, URL) - Method in class org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
 
remove() - Method in class org.apache.sling.discovery.impl.common.View
Delete this view from the repository
removeInherited(String) - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Remove all announcements that match the given owner Id
renderContent(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
representsLoop() - Method in class org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
 
representsLoop() - Method in interface org.apache.sling.discovery.impl.topology.connector.TopologyConnectorClientInformation
whether or not the counterpart of this connector has detected a loop in the topology connectors
ResourceHelper - Class in org.apache.sling.discovery.impl.common.resource
Some helper methods surrounding resources
ResourceHelper() - Constructor for class org.apache.sling.discovery.impl.common.resource.ResourceHelper
 
run() - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
 

S

setBackoffInterval(long) - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Sets the backoffInterval which the connector servlets passes back to the client to use as the next heartbeatInterval
setClusterView(ClusterView) - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
Sets the cluster on this instance
setInherited(boolean) - Method in class org.apache.sling.discovery.impl.topology.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.impl.topology.announcement.Announcement
sets the local clusterview
setLoop(boolean) - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
Sets the loop falg - set true when this announcement should represent a loop detected in the topology connectors
setProperties(Map<String, String>) - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
Sets the properties of this instance
setResetBackoff(boolean) - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
sets the resetBackoff flag
setServerInfo(String) - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
sets the information about the server where this announcement came from
SIG_HEADER - Static variable in class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
 
SO_TIMEOUT_KEY - Static variable in class org.apache.sling.discovery.impl.Config
 
startupFinished(StartupMode) - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
 
startupProgress(float) - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
 
SubnetWhitelistEntry - Class in org.apache.sling.discovery.impl.topology.connector.wl
Implementation of a WhitelistEntry which accepts cidr and ip mask notations.
SubnetWhitelistEntry(String) - Constructor for class org.apache.sling.discovery.impl.topology.connector.wl.SubnetWhitelistEntry
 
SubnetWhitelistEntry(String, String) - Constructor for class org.apache.sling.discovery.impl.topology.connector.wl.SubnetWhitelistEntry
 

T

TITLE - Static variable in class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
TOPOLOGY_CONNECTOR_URLS_KEY - Static variable in class org.apache.sling.discovery.impl.Config
URLs where to join a topology, eg http://localhost:4502/libs/sling/topology/connector
TOPOLOGY_CONNECTOR_WHITELIST_KEY - Static variable in class org.apache.sling.discovery.impl.Config
 
TopologyChangeHandler - Class in org.apache.sling.discovery.impl.topology
osgi event handler which takes note when the established view changes in the repository - or when an announcement changed in one of the instances
TopologyChangeHandler() - Constructor for class org.apache.sling.discovery.impl.topology.TopologyChangeHandler
 
TopologyConnectorClient - Class in org.apache.sling.discovery.impl.topology.connector
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.impl.topology.connector
provides information about a topology connector client
TopologyConnectorServlet - Class in org.apache.sling.discovery.impl.topology.connector
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.impl.topology.connector.TopologyConnectorServlet
 
TopologyRequestValidator - Class in org.apache.sling.discovery.impl.topology.connector
Request Validator helper.
TopologyRequestValidator(Config) - Constructor for class org.apache.sling.discovery.impl.topology.connector.TopologyRequestValidator
Create a TopologyRequestValidator.
TopologyViewImpl - Class in org.apache.sling.discovery.impl.topology
Implementation of the topology view
TopologyViewImpl() - Constructor for class org.apache.sling.discovery.impl.topology.TopologyViewImpl
Create a new empty topology
TopologyViewImpl(Collection<InstanceDescription>) - Constructor for class org.apache.sling.discovery.impl.topology.TopologyViewImpl
Create a new topology filled with the given list of instances
TopologyWebConsolePlugin - Class in org.apache.sling.discovery.impl
Simple webconsole which gives an overview of the topology visible by the discovery service
TopologyWebConsolePlugin() - Constructor for class org.apache.sling.discovery.impl.TopologyWebConsolePlugin
 
toString() - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
 
toString() - Method in class org.apache.sling.discovery.impl.common.DefaultInstanceDescriptionImpl
 
toString() - Method in class org.apache.sling.discovery.impl.topology.announcement.Announcement
 
toString() - Method in class org.apache.sling.discovery.impl.topology.TopologyViewImpl
 
triggerHeartbeat() - Method in class org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler
Trigger the issuance of the next heartbeat asap instead of at next heartbeat interval
trustMessage(HttpMethod, String) - Method in class org.apache.sling.discovery.impl.topology.connector.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.impl.topology.connector.TopologyRequestValidator
Trust a response message sent from the server to the client.

U

unbindPropertyProvider(PropertyProvider, Map<String, Object>) - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Unbind a property provider
unbindTopologyEventListener(TopologyEventListener) - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Unbind a topology event listener
unregisterAnnouncement(String) - Method in interface org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistry
Unregister the announcement owned by the given slingId
unregisterAnnouncement(String) - Method in class org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl
 
unregisterOutgoingConnector(String) - Method in interface org.apache.sling.discovery.impl.topology.connector.ConnectorRegistry
Unregister an outgoing topology connector identified by the given (connector) id
unregisterOutgoingConnector(String) - Method in class org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
 
updatedPropertyProvider(PropertyProvider, Map<String, Object>) - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Update a property provider.
updateProperties() - Method in class org.apache.sling.discovery.impl.DiscoveryServiceImpl
Update the properties and sent a topology event if applicable

V

View - Class in org.apache.sling.discovery.impl.common
DAO for a view stored in the repository.
View(Resource) - Constructor for class org.apache.sling.discovery.impl.common.View
 
VIEW_PROPERTY_CLUSTER_ID - Static variable in class org.apache.sling.discovery.impl.common.View
 
VIEW_PROPERTY_CLUSTER_ID_DEFINED_AT - Static variable in class org.apache.sling.discovery.impl.common.View
 
VIEW_PROPERTY_CLUSTER_ID_DEFINED_BY - Static variable in class org.apache.sling.discovery.impl.common.View
 
ViewHelper - Class in org.apache.sling.discovery.impl.common
helper for views
ViewHelper() - Constructor for class org.apache.sling.discovery.impl.common.ViewHelper
 
vote(String, Boolean) - Method in class org.apache.sling.discovery.impl.cluster.voting.VotingView
add a vote from the given slingId to this voting
VotingHandler - Class in org.apache.sling.discovery.impl.cluster.voting
The osgi event handler responsible for following any votings and vote accordingly
VotingHandler() - Constructor for class org.apache.sling.discovery.impl.cluster.voting.VotingHandler
 
VotingHelper - Class in org.apache.sling.discovery.impl.cluster.voting
Helper class for voting
VotingHelper() - Constructor for class org.apache.sling.discovery.impl.cluster.voting.VotingHelper
 
VotingView - Class in org.apache.sling.discovery.impl.cluster.voting
DAO for an ongoing voting, providing a few helper methods
VotingView(Resource) - Constructor for class org.apache.sling.discovery.impl.cluster.voting.VotingView
Construct a voting view based on the given resource

W

WhitelistEntry - Interface in org.apache.sling.discovery.impl.topology.connector.wl
A WhitelistEntry is capable of accepting certain requests depending on a configuration.
wildcardAsRegex(String) - Static method in class org.apache.sling.discovery.impl.common.WildcardHelper
converts a string containing wildcards (* and ?) into a valid regex
WildcardHelper - Class in org.apache.sling.discovery.impl.common
Helper class for wildcards
WildcardHelper() - Constructor for class org.apache.sling.discovery.impl.common.WildcardHelper
 
WildcardWhitelistEntry - Class in org.apache.sling.discovery.impl.topology.connector.wl
Implementation of a WhitelistEntry which can accept wildcards (* and ?) in both IP and hostname
WildcardWhitelistEntry(String) - Constructor for class org.apache.sling.discovery.impl.topology.connector.wl.WildcardWhitelistEntry
 

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

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