@Service(value=IdMapService.class) public class IdMapService extends AbstractServiceWithBackgroundCheck implements org.apache.sling.api.resource.observation.ResourceChangeListener
backgroundCheckRunnable, logger
Constructor and Description |
---|
IdMapService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext) |
void |
clearCache() |
protected void |
deactivate() |
long |
getMyId() |
boolean |
isInitialized() |
void |
onChange(List<org.apache.sling.api.resource.observation.ResourceChange> changes) |
static IdMapService |
testConstructor(DiscoveryLiteConfig commonsConfig,
org.apache.sling.settings.SlingSettingsService settingsService,
org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory)
test-only constructor
|
String |
toSlingId(int clusterNodeId,
org.apache.sling.api.resource.ResourceResolver resourceResolver) |
boolean |
waitForInit(long timeout)
for testing only
|
cancelPreviousBackgroundCheck, startBackgroundCheck, triggerBackgroundCheck
public static IdMapService testConstructor(DiscoveryLiteConfig commonsConfig, org.apache.sling.settings.SlingSettingsService settingsService, org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory)
@Activate protected void activate(org.osgi.framework.BundleContext bundleContext)
@Deactivate protected void deactivate()
public long getMyId()
public boolean waitForInit(long timeout)
public boolean isInitialized()
public void clearCache()
public String toSlingId(int clusterNodeId, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws org.apache.sling.api.resource.PersistenceException
org.apache.sling.api.resource.PersistenceException
public void onChange(List<org.apache.sling.api.resource.observation.ResourceChange> changes)
onChange
in interface org.apache.sling.api.resource.observation.ResourceChangeListener
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.