Class ReplicationProcessor
- java.lang.Object
-
- org.apache.accumulo.tserver.replication.ReplicationProcessor
-
- All Implemented Interfaces:
DistributedWorkQueue.Processor
public class ReplicationProcessor extends Object implements DistributedWorkQueue.Processor
Transmit the given data to a peer
-
-
Constructor Summary
Constructors Constructor Description ReplicationProcessor(ServerContext context, AccumuloConfiguration conf, VolumeManager fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
ReplicationProcessor
public ReplicationProcessor(ServerContext context, AccumuloConfiguration conf, VolumeManager fs)
-
-
Method Detail
-
newProcessor
public ReplicationProcessor newProcessor()
- Specified by:
newProcessor
in interfaceDistributedWorkQueue.Processor
-
process
public void process(String workID, byte[] data)
- Specified by:
process
in interfaceDistributedWorkQueue.Processor
-
getHelper
protected ReplicaSystemHelper getHelper()
-
getReplicaSystem
protected ReplicaSystem getReplicaSystem(ReplicationTarget target)
-
doesFileExist
protected boolean doesFileExist(org.apache.hadoop.fs.Path filePath, ReplicationTarget target) throws IOException
- Throws:
IOException
-
getStatus
protected Replication.Status getStatus(String file, ReplicationTarget target) throws ReplicationTableOfflineException, com.google.protobuf.InvalidProtocolBufferException
- Throws:
ReplicationTableOfflineException
com.google.protobuf.InvalidProtocolBufferException
-
-