org.apache.sling.discovery.impl.cluster
Interface ClusterViewService

All Known Implementing Classes:
ClusterViewServiceImpl

public interface ClusterViewService

The ClusterViewService is responsible and provides access to the view established in a JcR cluster.


Method Summary
 boolean contains(String slingId)
          checks whether the cluster view contains a particular sling id
 boolean containsAny(Collection<org.apache.sling.discovery.InstanceDescription> listInstances)
          checks whether the cluster contains any of the provided instances
 org.apache.sling.discovery.ClusterView getClusterView()
          the current cluster view
 String getIsolatedClusterViewId()
          the view id of the cluster view when isolated - ie before any view is established
 String getSlingId()
          the sling id of the local instance
 

Method Detail

getSlingId

String getSlingId()
the sling id of the local instance


getClusterView

org.apache.sling.discovery.ClusterView getClusterView()
the current cluster view


getIsolatedClusterViewId

String getIsolatedClusterViewId()
the view id of the cluster view when isolated - ie before any view is established


contains

boolean contains(String slingId)
checks whether the cluster view contains a particular sling id


containsAny

boolean containsAny(Collection<org.apache.sling.discovery.InstanceDescription> listInstances)
checks whether the cluster contains any of the provided instances



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