public abstract class MetaDataFetcher extends Object
MetaDataGenerator
.
This class is abstract to provide different implementations on client and member sides.
Constructor and Description |
---|
MetaDataFetcher(ILogger logger) |
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<Map.Entry<Integer,UUID>> |
assignAndGetUuids()
Gets or assigns partition-uuids before start of
RepairingTask and returns a list of partition-id,
partition-uuid pairs. |
void |
fetchMetadata(ConcurrentMap<String,RepairingHandler> handlers) |
protected abstract void |
process(InternalCompletableFuture future,
ConcurrentMap<String,RepairingHandler> handlers) |
protected void |
repairSequences(Collection<Map.Entry<String,List<Map.Entry<Integer,Long>>>> namePartitionSequenceList,
ConcurrentMap<String,RepairingHandler> handlers) |
protected void |
repairUuids(Collection<Map.Entry<Integer,UUID>> uuids,
ConcurrentMap<String,RepairingHandler> handlers) |
protected abstract List<InternalCompletableFuture> |
scanMembers(List<String> names) |
protected final ILogger logger
public MetaDataFetcher(ILogger logger)
protected abstract List<InternalCompletableFuture> scanMembers(List<String> names)
protected abstract void process(InternalCompletableFuture future, ConcurrentMap<String,RepairingHandler> handlers)
protected abstract Collection<Map.Entry<Integer,UUID>> assignAndGetUuids() throws Exception
RepairingTask
and returns a list of partition-id,
partition-uuid pairs.
This method is likely to be called only one time during the life-cycle of a client.
Exception
- possible exceptions raised by remote callspublic final void fetchMetadata(ConcurrentMap<String,RepairingHandler> handlers)
protected void repairUuids(Collection<Map.Entry<Integer,UUID>> uuids, ConcurrentMap<String,RepairingHandler> handlers)
protected void repairSequences(Collection<Map.Entry<String,List<Map.Entry<Integer,Long>>>> namePartitionSequenceList, ConcurrentMap<String,RepairingHandler> handlers)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.