- 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
- 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