@InterfaceAudience.Private public class JournalNode extends Object implements Tool, Configurable, JournalNodeMXBean
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
JournalNode() |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getBoundHttpAddress() |
InetSocketAddress |
getBoundIpcAddress() |
Configuration |
getConf()
Return the configuration used by this object.
|
String |
getJournalsStatus()
Get status information (e.g., whether formatted) of JournalNode's journals.
|
boolean |
isStarted() |
static void |
main(String[] args) |
int |
run(String[] args)
Execute the command with the given arguments.
|
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
void |
start()
Start listening for edits via RPC.
|
void |
stop(int rc)
Stop the daemon with the given status code
|
void |
stopAndJoin(int rc) |
public void setConf(Configuration conf)
ConfigurablesetConf in interface Configurablepublic Configuration getConf()
ConfigurablegetConf in interface Configurablepublic int run(String[] args) throws Exception
Toolpublic void start()
throws IOException
IOExceptionpublic boolean isStarted()
public InetSocketAddress getBoundIpcAddress()
public InetSocketAddress getBoundHttpAddress()
public void stop(int rc)
rc - the status code with which to exit (non-zero
should indicate an error)public void stopAndJoin(int rc)
throws InterruptedException
InterruptedExceptionpublic String getJournalsStatus()
JournalNodeMXBeangetJournalsStatus in interface JournalNodeMXBeanCopyright © 2013 Apache Software Foundation. All rights reserved.