public class ReplicationUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
STATUS_FORMATTER_CLASS_NAME |
| Constructor and Description |
|---|
ReplicationUtil(AccumuloServerContext context) |
ReplicationUtil(AccumuloServerContext context,
ZooCache cache,
ReplicaSystemFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsolutePath(Connector conn,
String workQueuePath,
String queueKey)
Fetches the absolute path of the file to be replicated.
|
int |
getMaxReplicationThreads(MasterMonitorInfo mmi) |
Map<String,String> |
getPeers()
Extract replication peers from system configuration
|
Set<org.apache.hadoop.fs.Path> |
getPendingReplicationPaths() |
Map<ReplicationTarget,Long> |
getPendingReplications() |
String |
getProgress(Connector conn,
String path,
ReplicationTarget target)
Compute a progress string for the replication of the given WAL
|
Set<ReplicationTarget> |
getReplicationTargets() |
Map<String,String> |
invert(Map<String,String> map) |
public static final String STATUS_FORMATTER_CLASS_NAME
public ReplicationUtil(AccumuloServerContext context)
public ReplicationUtil(AccumuloServerContext context, ZooCache cache, ReplicaSystemFactory factory)
public int getMaxReplicationThreads(MasterMonitorInfo mmi)
public Map<String,String> getPeers()
public Set<ReplicationTarget> getReplicationTargets()
public Map<ReplicationTarget,Long> getPendingReplications()
public Set<org.apache.hadoop.fs.Path> getPendingReplicationPaths()
public String getAbsolutePath(Connector conn, String workQueuePath, String queueKey)
conn - Accumulo ConnectorworkQueuePath - Root path for the Replication WorkQueuequeueKey - The Replication work queue keypublic String getProgress(Connector conn, String path, ReplicationTarget target)
conn - Accumulo Connectorpath - Absolute path to a WAL, or nulltarget - ReplicationTarget the WAL is being replicated toCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.