@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.
|
getConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfprotected 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)
ConfigurablesetConf in interface ConfigurablesetConf in class Configuredpublic int run(String[] argv) throws Exception
ToolCopyright © 2013 Apache Software Foundation. All rights reserved.