Class WorkMaker
- java.lang.Object
-
- org.apache.accumulo.master.replication.WorkMaker
-
public class WorkMaker extends Object
Reads replication records from the replication table and creates work records which include target replication system information.
-
-
Constructor Summary
Constructors Constructor Description WorkMaker(AccumuloServerContext context, Connector conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddWorkRecord(org.apache.hadoop.io.Text file, Value v, Map<String,String> targets, String sourceTableId)protected Map<String,String>getReplicationTargets(TableConfiguration tableConf)voidrun()protected voidsetBatchWriter(BatchWriter bw)protected booleanshouldCreateWork(Replication.Status status)
-
-
-
Constructor Detail
-
WorkMaker
public WorkMaker(AccumuloServerContext context, Connector conn)
-
-
Method Detail
-
run
public void run()
-
setBatchWriter
protected void setBatchWriter(BatchWriter bw)
-
getReplicationTargets
protected Map<String,String> getReplicationTargets(TableConfiguration tableConf)
-
shouldCreateWork
protected boolean shouldCreateWork(Replication.Status status)
- Returns:
- Should a Work entry be created for this status
-
-