Interface ReplicaSystem
-
public interface ReplicaSystemEncapsulation of a remote system which Accumulo can replicate data to
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(ServerContext context, String configuration)Configure the implementation with necessary information from the system configurationReplication.Statusreplicate(org.apache.hadoop.fs.Path p, Replication.Status status, ReplicationTarget target, ReplicaSystemHelper helper)Replicate the given status to the target peer
-
-
-
Method Detail
-
replicate
Replication.Status replicate(org.apache.hadoop.fs.Path p, Replication.Status status, ReplicationTarget target, ReplicaSystemHelper helper)
Replicate the given status to the target peer- Parameters:
p- Path to the resource we're reading fromstatus- Information to replicatetarget- The peerhelper- Instance of ReplicaSystemHelper- Returns:
- A new Status for the progress that was made
-
configure
void configure(ServerContext context, String configuration)
Configure the implementation with necessary information from the system configurationFor example, we only need one implementation for Accumulo, but, for each peer, we have a ZK quorum and instance name
-
-