Class OakClusterViewService
- java.lang.Object
-
- org.apache.sling.discovery.oak.cluster.OakClusterViewService
-
- All Implemented Interfaces:
org.apache.sling.discovery.base.commons.ClusterViewService
public class OakClusterViewService extends Object implements org.apache.sling.discovery.base.commons.ClusterViewService
Oak-based implementation of the ClusterViewService interface.
-
-
Constructor Summary
Constructors Constructor Description OakClusterViewService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
org.apache.sling.discovery.commons.providers.spi.LocalClusterView
getLocalClusterView()
protected org.apache.sling.api.resource.ResourceResolver
getResourceResolver()
String
getSlingId()
static OakClusterViewService
testConstructor(org.apache.sling.settings.SlingSettingsService settingsService, org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory, org.apache.sling.discovery.commons.providers.spi.base.IdMapService idMapService, Config config)
-
-
-
Method Detail
-
testConstructor
public static OakClusterViewService testConstructor(org.apache.sling.settings.SlingSettingsService settingsService, org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory, org.apache.sling.discovery.commons.providers.spi.base.IdMapService idMapService, Config config)
-
activate
public void activate()
-
getSlingId
public String getSlingId()
- Specified by:
getSlingId
in interfaceorg.apache.sling.discovery.base.commons.ClusterViewService
-
getResourceResolver
protected org.apache.sling.api.resource.ResourceResolver getResourceResolver() throws org.apache.sling.api.resource.LoginException
- Throws:
org.apache.sling.api.resource.LoginException
-
getLocalClusterView
public org.apache.sling.discovery.commons.providers.spi.LocalClusterView getLocalClusterView() throws org.apache.sling.discovery.base.commons.UndefinedClusterViewException
- Specified by:
getLocalClusterView
in interfaceorg.apache.sling.discovery.base.commons.ClusterViewService
- Throws:
org.apache.sling.discovery.base.commons.UndefinedClusterViewException
-
-