public class DumpReplicationQueues
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Constructor and Description |
---|
DumpReplicationQueues() |
Modifier and Type | Method and Description |
---|---|
String |
dumpPeersState(ReplicationAdmin replicationAdmin,
Map<String,ReplicationPeerConfig> peerConfigs) |
String |
dumpQueues(ClusterConnection connection,
Set<String> peerIds,
ZooKeeperWatcher zkw,
boolean hdfs) |
String |
dumpReplicationSummary() |
static void |
main(String[] args)
Main
|
protected void |
printUsage() |
protected static void |
printUsage(String message) |
protected static void |
printUsage(String className,
String message) |
protected static void |
printUsageAndExit(String message,
int exitCode) |
int |
run(String[] args) |
public static void main(String[] args) throws Exception
args
- Exception
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
protected void printUsage()
protected static void printUsage(String message)
protected static void printUsageAndExit(String message, int exitCode)
public String dumpReplicationSummary()
public String dumpPeersState(ReplicationAdmin replicationAdmin, Map<String,ReplicationPeerConfig> peerConfigs) throws Exception
Exception
public String dumpQueues(ClusterConnection connection, Set<String> peerIds, ZooKeeperWatcher zkw, boolean hdfs) throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.