public interface ReplicaSystem
| Modifier and Type | Method and Description |
|---|---|
void |
configure(String configuration)
Configure the implementation with necessary information from the system configuration
|
Replication.Status |
replicate(org.apache.hadoop.fs.Path p,
Replication.Status status,
ReplicationTarget target,
ReplicaSystemHelper helper)
Replicate the given status to the target peer
|
Replication.Status replicate(org.apache.hadoop.fs.Path p, Replication.Status status, ReplicationTarget target, ReplicaSystemHelper helper)
p - Path to the resource we're reading fromstatus - Information to replicatetarget - The peerhelper - Instance of ReplicaSystemHelpervoid configure(String configuration)
For example, we only need one implementation for Accumulo, but, for each peer, we have a ZK quorum and instance name
Copyright © 2015 Apache Accumulo Project. All rights reserved.