@Service(value=ClusterViewService.class) public class OakClusterViewService extends java.lang.Object implements ClusterViewService
Constructor and Description |
---|
OakClusterViewService() |
Modifier and Type | Method and Description |
---|---|
LocalClusterView |
getLocalClusterView()
Returns the current, local cluster view - throwing an
UndefinedClusterViewException if it cannot determine
a clusterView at the moment.
|
protected ResourceResolver |
getResourceResolver() |
java.lang.String |
getSlingId()
the sling id of the local instance
|
static OakClusterViewService |
testConstructor(SlingSettingsService settingsService,
ResourceResolverFactory resourceResolverFactory,
IdMapService idMapService,
Config config) |
public static OakClusterViewService testConstructor(SlingSettingsService settingsService, ResourceResolverFactory resourceResolverFactory, IdMapService idMapService, Config config)
public java.lang.String getSlingId()
ClusterViewService
getSlingId
in interface ClusterViewService
protected ResourceResolver getResourceResolver() throws LoginException
LoginException
public LocalClusterView getLocalClusterView() throws UndefinedClusterViewException
ClusterViewService
getLocalClusterView
in interface ClusterViewService
UndefinedClusterViewException
- thrown when
the ClusterView cannot be determined at the moment
(also contains more details as to why exactly)Copyright © 2022 The Apache Software Foundation. All rights reserved.