@ProviderType
public interface DiscoveryService
The discovery service is in charge of managing live instances that have announced themselves as being part of a topology view. The exact details of how this announcement occurs is implementation dependent.
Note that the discovery service fails if it detects a situation where more than one instance with the same sling.id exists in a cluster.
Modifier and Type | Method and Description |
---|---|
TopologyView |
getTopology()
Returns the topology that was last discovered by this service.
|
TopologyView getTopology()
If for some reason the service is currently not able to do topology discovery
it will return the last valid topology marked with
Note that this call is synchronized with false
in the call
to TopologyEventListener.handleTopologyEvent()
calls: ie if calls to TopologyEventListener.handleTopologyEvent()
are currently
ongoing, then the call to this method will block until all TopologyEventListener
s
have been called. Be careful not to cause deadlock situations.
Copyright © 2015 The Apache Software Foundation. All rights reserved.