public class ClusterReader extends Object
Constructor and Description |
---|
ClusterReader(org.apache.sling.api.resource.ResourceResolver resourceResolver,
Config config,
org.apache.sling.discovery.commons.providers.spi.base.IdMapService idMapService,
Map<Integer,InstanceInfo> seenLocalInstances) |
Modifier and Type | Method and Description |
---|---|
InstanceReadResult |
readInstance(int clusterNodeId,
boolean failOnMissingSyncToken,
long seqNum)
Reads all discovery.oak related data for clusterNodeId
and fills the internal structure with the resulting info -
or remembers that the clusterNode was incomplete (partially started)
|
public ClusterReader(org.apache.sling.api.resource.ResourceResolver resourceResolver, Config config, org.apache.sling.discovery.commons.providers.spi.base.IdMapService idMapService, Map<Integer,InstanceInfo> seenLocalInstances)
public InstanceReadResult readInstance(int clusterNodeId, boolean failOnMissingSyncToken, long seqNum) throws org.apache.sling.api.resource.PersistenceException
clusterNodeId
- the clusterNodeId to be readorg.apache.sling.api.resource.PersistenceException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.