public class ReplicationProcessor extends Object implements DistributedWorkQueue.Processor
Constructor and Description |
---|
ReplicationProcessor(ClientContext context,
AccumuloConfiguration conf,
VolumeManager fs) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doesFileExist(org.apache.hadoop.fs.Path filePath,
ReplicationTarget target) |
protected ReplicaSystemHelper |
getHelper() |
protected String |
getPeerType(String peerName) |
protected ReplicaSystem |
getReplicaSystem(ReplicationTarget target) |
protected Replication.Status |
getStatus(String file,
ReplicationTarget target) |
ReplicationProcessor |
newProcessor() |
void |
process(String workID,
byte[] data) |
public ReplicationProcessor(ClientContext context, AccumuloConfiguration conf, VolumeManager fs)
public ReplicationProcessor newProcessor()
newProcessor
in interface DistributedWorkQueue.Processor
public void process(String workID, byte[] data)
process
in interface DistributedWorkQueue.Processor
protected ReplicaSystemHelper getHelper()
protected ReplicaSystem getReplicaSystem(ReplicationTarget target)
protected boolean doesFileExist(org.apache.hadoop.fs.Path filePath, ReplicationTarget target) throws IOException
IOException
protected Replication.Status getStatus(String file, ReplicationTarget target) throws ReplicationTableOfflineException, AccumuloException, AccumuloSecurityException, com.google.protobuf.InvalidProtocolBufferException
ReplicationTableOfflineException
AccumuloException
AccumuloSecurityException
com.google.protobuf.InvalidProtocolBufferException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.