Class ClusterViewHelper
java.lang.Object
org.apache.sling.discovery.base.commons.ClusterViewHelper
Contains some static helper methods around ClusterView
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
contains
(ClusterView clusterView, String slingId) checks whether the cluster view contains a particular sling idstatic boolean
containsAny
(ClusterView clusterView, Collection<InstanceDescription> listInstances) checks whether the cluster contains any of the provided instances
-
Constructor Details
-
ClusterViewHelper
public ClusterViewHelper()
-
-
Method Details
-
contains
public static boolean contains(ClusterView clusterView, String slingId) throws UndefinedClusterViewException checks whether the cluster view contains a particular sling id- Throws:
UndefinedClusterViewException
-
containsAny
public static boolean containsAny(ClusterView clusterView, Collection<InstanceDescription> listInstances) throws UndefinedClusterViewException checks whether the cluster contains any of the provided instances- Throws:
UndefinedClusterViewException
-