Class MockReplicaSystem
- java.lang.Object
-
- org.apache.accumulo.test.replication.MockReplicaSystem
-
- All Implemented Interfaces:
ReplicaSystem
public class MockReplicaSystem extends Object implements ReplicaSystem
Fake ReplicaSystem which returns that the data was fully replicated after some sleep period (in milliseconds)Default sleep amount is 0ms
-
-
Constructor Summary
Constructors Constructor Description MockReplicaSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(ServerContext context, String configuration)
Replication.Status
replicate(org.apache.hadoop.fs.Path p, Replication.Status status, ReplicationTarget target, ReplicaSystemHelper helper)
-
-
-
Method Detail
-
replicate
public Replication.Status replicate(org.apache.hadoop.fs.Path p, Replication.Status status, ReplicationTarget target, ReplicaSystemHelper helper)
- Specified by:
replicate
in interfaceReplicaSystem
-
configure
public void configure(ServerContext context, String configuration)
- Specified by:
configure
in interfaceReplicaSystem
-
-