org.apache.sling.discovery.impl.common
Class DefaultClusterViewImpl

java.lang.Object
  extended by org.apache.sling.discovery.impl.common.DefaultClusterViewImpl
All Implemented Interfaces:
org.apache.sling.discovery.ClusterView
Direct Known Subclasses:
EstablishedClusterView

public class DefaultClusterViewImpl
extends Object
implements org.apache.sling.discovery.ClusterView

Default implementation of the ClusterView interface.


Constructor Summary
DefaultClusterViewImpl(String id)
           
 
Method Summary
 void addInstanceDescription(DefaultInstanceDescriptionImpl instance)
          Add the given instance to this cluster and set the cluster on the instance (back pointer)
 boolean equals(Object obj)
           
 String getId()
           
 List<org.apache.sling.discovery.InstanceDescription> getInstances()
           
 org.apache.sling.discovery.InstanceDescription getLeader()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClusterViewImpl

public DefaultClusterViewImpl(String id)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getId

public String getId()
Specified by:
getId in interface org.apache.sling.discovery.ClusterView

addInstanceDescription

public void addInstanceDescription(DefaultInstanceDescriptionImpl instance)
Add the given instance to this cluster and set the cluster on the instance (back pointer)

Parameters:
instance - the instance to add to this cluster

getInstances

public List<org.apache.sling.discovery.InstanceDescription> getInstances()
Specified by:
getInstances in interface org.apache.sling.discovery.ClusterView

getLeader

public org.apache.sling.discovery.InstanceDescription getLeader()
Specified by:
getLeader in interface org.apache.sling.discovery.ClusterView


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.