|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.discovery.impl.topology.TopologyViewImpl
public class TopologyViewImpl
Implementation of the topology view
Constructor Summary | |
---|---|
TopologyViewImpl()
Create a new empty topology |
|
TopologyViewImpl(Collection<org.apache.sling.discovery.InstanceDescription> instances)
Create a new topology filled with the given list of instances |
Method Summary | |
---|---|
void |
addInstances(Collection<org.apache.sling.discovery.InstanceDescription> instances)
|
org.apache.sling.discovery.TopologyEvent.Type |
compareTopology(TopologyViewImpl 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()
|
org.apache.sling.discovery.InstanceDescription |
getLocalInstance()
|
int |
hashCode()
|
boolean |
isCurrent()
|
void |
markOld()
Mark this topology as old |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TopologyViewImpl()
public TopologyViewImpl(Collection<org.apache.sling.discovery.InstanceDescription> instances)
Method Detail |
---|
public org.apache.sling.discovery.TopologyEvent.Type compareTopology(TopologyViewImpl other)
other
- the other topology against which to compare
TopologyEvent.Type
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isCurrent()
isCurrent
in interface org.apache.sling.discovery.TopologyView
TopologyView.isCurrent()
public void markOld()
public org.apache.sling.discovery.InstanceDescription getLocalInstance()
getLocalInstance
in interface org.apache.sling.discovery.TopologyView
TopologyView.getLocalInstance()
public Set<org.apache.sling.discovery.InstanceDescription> getInstances()
getInstances
in interface org.apache.sling.discovery.TopologyView
TopologyView.getInstances()
public void addInstances(Collection<org.apache.sling.discovery.InstanceDescription> instances)
public Set<org.apache.sling.discovery.InstanceDescription> findInstances(org.apache.sling.discovery.InstanceFilter picker)
findInstances
in interface org.apache.sling.discovery.TopologyView
TopologyView.findInstances(org.apache.sling.discovery.InstanceFilter)
public Set<org.apache.sling.discovery.ClusterView> getClusterViews()
getClusterViews
in interface org.apache.sling.discovery.TopologyView
TopologyView.getClusterViews()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |