Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- accept(InstanceDescription) - Method in interface org.apache.sling.discovery.InstanceFilter
-
Returns true if this InstanceFilter selects the given InstanceDescription.
C
- ClusterView - Interface in org.apache.sling.discovery
-
A ClusterView represents the instances of a cluster that are up and running and that all can see each other at a certain point in time.
D
- DiscoveryService - Interface in org.apache.sling.discovery
-
The discovery service can be used to get the current topology view.
F
- findInstances(InstanceFilter) - Method in interface org.apache.sling.discovery.TopologyView
-
Searches through this topology and picks those accepted by the provided
InstanceFilter
- and returns them without any particular order
G
- getClusterView() - Method in interface org.apache.sling.discovery.InstanceDescription
-
Returns the ClusterView of which this instance is part of.
- getClusterViews() - Method in interface org.apache.sling.discovery.TopologyView
-
Provides the collection of ClusterViews.
- getId() - Method in interface org.apache.sling.discovery.ClusterView
-
Returns a stable id of the cluster represented by this cluster view.
- getInstances() - Method in interface org.apache.sling.discovery.ClusterView
-
Provides the list of InstanceDescriptions with a stable ordering.
- getInstances() - Method in interface org.apache.sling.discovery.TopologyView
-
Provides the set of InstanceDescriptions in the entire topology, without any particular order
- getLeader() - Method in interface org.apache.sling.discovery.ClusterView
-
Provides the InstanceDescription belonging to the leader instance.
- getLocalInstance() - Method in interface org.apache.sling.discovery.TopologyView
-
Provides the InstanceDescription belonging to this instance.
- getNewView() - Method in class org.apache.sling.discovery.TopologyEvent
-
Returns the view which is currently (i.e. newly) valid.
- getOldView() - Method in class org.apache.sling.discovery.TopologyEvent
-
Returns the view which was valid up until now.
- getProperties() - Method in interface org.apache.sling.discovery.InstanceDescription
-
Returns a Map containing all properties of this instance.
- getProperty(String) - Method in interface org.apache.sling.discovery.InstanceDescription
-
Returns the value of a particular property.
- getProperty(String) - Method in interface org.apache.sling.discovery.PropertyProvider
-
Retrieves a property that is subsequently set on the local instance and broadcast to the
TopologyView
instances. - getSlingId() - Method in interface org.apache.sling.discovery.InstanceDescription
-
The identifier of the running Sling instance.
- getTopology() - Method in interface org.apache.sling.discovery.DiscoveryService
-
Returns the topology that was last discovered by this service.
- getType() - Method in class org.apache.sling.discovery.TopologyEvent
-
Returns the type of this event
H
- handleTopologyEvent(TopologyEvent) - Method in interface org.apache.sling.discovery.TopologyEventListener
-
Inform the service about an event in the topology - or in the discovery of the topology.
I
- InstanceDescription - Interface in org.apache.sling.discovery
-
An InstanceDescription represents and contains information about an instance that is part of a TopologyView.
- InstanceFilter - Interface in org.apache.sling.discovery
-
Used to filter InstanceDescriptions in a TopologyView.
- isCurrent() - Method in interface org.apache.sling.discovery.TopologyView
-
Checks if this TopologyView is currently valid - or if the service knows of a topology change just going on (or another uncertainty about the topology such as IOException etc)
- isLeader() - Method in interface org.apache.sling.discovery.InstanceDescription
-
If an instance is part of a cluster, it can potentially be a leader of that cluster - this information is queried here.
- isLocal() - Method in interface org.apache.sling.discovery.InstanceDescription
-
Determines whether this InstanceDescription is representing the local instance.
O
- org.apache.sling.discovery - package org.apache.sling.discovery
-
Provides a service to interface which may be implemented by applications to get notified on cluster topology changes.
P
- PROPERTIES_CHANGED - Enum constant in enum org.apache.sling.discovery.TopologyEvent.Type
-
One or many properties have been changed on an instance which is part of the topology.
- PROPERTY_DESCRIPTION - Static variable in interface org.apache.sling.discovery.InstanceDescription
-
Property containing a description for the instance.
- PROPERTY_ENDPOINTS - Static variable in interface org.apache.sling.discovery.InstanceDescription
-
Property containing endpoints to connect to the instance.
- PROPERTY_NAME - Static variable in interface org.apache.sling.discovery.InstanceDescription
-
Property containing a name for the instance.
- PROPERTY_PROPERTIES - Static variable in interface org.apache.sling.discovery.PropertyProvider
-
The name of the service registration property containing the names of the properties provided by this provider.
- PropertyProvider - Interface in org.apache.sling.discovery
-
The
PropertyProvider
service interface may be implemented by components that wish to define properties on the local instance which then are broadcast to theTopologyView
instances.
T
- TOPOLOGY_CHANGED - Enum constant in enum org.apache.sling.discovery.TopologyEvent.Type
-
Informs the service about a state change in the topology.
- TOPOLOGY_CHANGING - Enum constant in enum org.apache.sling.discovery.TopologyEvent.Type
-
Informs the service about the fact that a state change was detected in the topology/cluster and that the new state is in the process of being discovered.
- TOPOLOGY_INIT - Enum constant in enum org.apache.sling.discovery.TopologyEvent.Type
-
Informs the service about the initial topology state - this is only sent once at bind-time and is the first one a TopologyEventListener receives (after the implementation bundle was activated).
- TopologyEvent - Class in org.apache.sling.discovery
-
A topology event is sent whenever a change in the topology occurs.
- TopologyEvent(TopologyEvent.Type, TopologyView, TopologyView) - Constructor for class org.apache.sling.discovery.TopologyEvent
- TopologyEvent.Type - Enum in org.apache.sling.discovery
- TopologyEventListener - Interface in org.apache.sling.discovery
-
The
TopologyEventListener
service interface may be implemented by components interested in being made aware of changes in the topology. - TopologyView - Interface in org.apache.sling.discovery
-
A topology view is a cross-cluster list of instances and clusters that have announced themselves with the DiscoveryService.
- toString() - Method in class org.apache.sling.discovery.TopologyEvent
V
- valueOf(String) - Static method in enum org.apache.sling.discovery.TopologyEvent.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.apache.sling.discovery.TopologyEvent.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values