public class DefaultTopologyView
extends org.apache.sling.discovery.commons.providers.BaseTopologyView
Constructor and Description |
---|
DefaultTopologyView()
Create a new empty topology
|
DefaultTopologyView(Collection<org.apache.sling.discovery.InstanceDescription> instances)
Create a new topology filled with the given list of instances
|
Modifier and Type | Method and Description |
---|---|
void |
addInstances(Collection<org.apache.sling.discovery.InstanceDescription> instances)
Adds the given instances to this topology
|
org.apache.sling.discovery.TopologyEvent.Type |
compareTopology(DefaultTopologyView other)
Compare this topology with the given one and determine how they compare
|
boolean |
equals(Object obj) |
Set<org.apache.sling.discovery.InstanceDescription> |
findInstances(org.apache.sling.discovery.InstanceFilter picker) |
Set<org.apache.sling.discovery.ClusterView> |
getClusterViews() |
Set<org.apache.sling.discovery.InstanceDescription> |
getInstances() |
String |
getLocalClusterSyncTokenId() |
org.apache.sling.discovery.InstanceDescription |
getLocalInstance() |
int |
hashCode() |
void |
setLocalClusterView(org.apache.sling.discovery.commons.providers.spi.LocalClusterView localClusterView)
Adds the instances of the given ClusterView to this topology
|
String |
toString() |
public DefaultTopologyView()
public DefaultTopologyView(Collection<org.apache.sling.discovery.InstanceDescription> instances)
public org.apache.sling.discovery.TopologyEvent.Type compareTopology(DefaultTopologyView other)
other
- the other topology against which to compareTopologyEvent.Type
public org.apache.sling.discovery.InstanceDescription getLocalInstance()
TopologyView.getLocalInstance()
public Set<org.apache.sling.discovery.InstanceDescription> getInstances()
TopologyView.getInstances()
public void setLocalClusterView(org.apache.sling.discovery.commons.providers.spi.LocalClusterView localClusterView)
public void addInstances(Collection<org.apache.sling.discovery.InstanceDescription> instances)
public Set<org.apache.sling.discovery.InstanceDescription> findInstances(org.apache.sling.discovery.InstanceFilter picker)
TopologyView.findInstances(org.apache.sling.discovery.InstanceFilter)
public Set<org.apache.sling.discovery.ClusterView> getClusterViews()
TopologyView.getClusterViews()
public String getLocalClusterSyncTokenId()
getLocalClusterSyncTokenId
in class org.apache.sling.discovery.commons.providers.BaseTopologyView
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.