org.apache.sling.discovery.impl.common
Class DefaultClusterViewImpl
java.lang.Object
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.
DefaultClusterViewImpl
public DefaultClusterViewImpl(String id)
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.