|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.discovery.impl.common.ViewHelper
public class ViewHelper
helper for views
Constructor Summary | |
---|---|
ViewHelper()
|
Method Summary | |
---|---|
static Set<String> |
determineLiveInstances(org.apache.sling.api.resource.Resource clusterInstancesResource,
Config config)
Return the list of cluster instances that are 'live', ie that have sent a heartbeat within the configured heartbeat timeout |
static boolean |
establishedViewMatches(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config,
Set<String> view)
Check if the established view matches the given set of slingIds |
static View |
getEstablishedView(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config)
Return the currently established cluster view - or null if there is no cluster view established at the moment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewHelper()
Method Detail |
---|
public static Set<String> determineLiveInstances(org.apache.sling.api.resource.Resource clusterInstancesResource, Config config)
clusterInstancesResource
- config
-
public static View getEstablishedView(org.apache.sling.api.resource.ResourceResolver resourceResolver, Config config)
resourceResolver
-
public static boolean establishedViewMatches(org.apache.sling.api.resource.ResourceResolver resourceResolver, Config config, Set<String> view)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |