@InterfaceAudience.Private public abstract class HAAdmin extends Configured implements Tool
Modifier and Type | Field and Description |
---|---|
protected PrintStream |
errOut
Output stream for errors, for use in tests
|
protected PrintStream |
out |
Constructor and Description |
---|
HAAdmin() |
Modifier and Type | Method and Description |
---|---|
protected String |
getServiceAddr(String serviceId)
Return the serviceId as is, we are assuming it was
given as a service address of form
|
protected String |
getUsageString() |
protected void |
printUsage(PrintStream errOut) |
protected abstract HAServiceTarget |
resolveTarget(String string) |
int |
run(String[] argv)
Execute the command with the given arguments.
|
protected int |
runCmd(String[] argv) |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
getConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf
protected PrintStream errOut
protected PrintStream out
protected abstract HAServiceTarget resolveTarget(String string)
protected String getUsageString()
protected void printUsage(PrintStream errOut)
protected String getServiceAddr(String serviceId)
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
setConf
in class Configured
public int run(String[] argv) throws Exception
Tool
Copyright © 2013 Apache Software Foundation. All rights reserved.