|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl
@Service(value=ClusterViewService.class) public class ClusterViewServiceImpl
Default implementation of the ClusterViewService interface.
This class is a reader only - it accesses the repository to read the currently established view
Constructor Summary | |
---|---|
ClusterViewServiceImpl()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterViewServiceImpl()
Method Detail |
---|
public String getIsolatedClusterViewId()
ClusterViewService
getIsolatedClusterViewId
in interface ClusterViewService
public String getSlingId()
ClusterViewService
getSlingId
in interface ClusterViewService
public boolean contains(String slingId)
ClusterViewService
contains
in interface ClusterViewService
public boolean containsAny(Collection<org.apache.sling.discovery.InstanceDescription> listInstances)
ClusterViewService
containsAny
in interface ClusterViewService
public org.apache.sling.discovery.ClusterView getClusterView()
ClusterViewService
getClusterView
in interface ClusterViewService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |