@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)
Configurable
setConf
in interface Configurable
public Configuration getConf()
Configurable
getConf
in interface Configurable
public int run(String[] args) throws Exception
Tool
public void start() throws IOException
IOException
public 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
InterruptedException
public String getJournalsStatus()
JournalNodeMXBean
getJournalsStatus
in interface JournalNodeMXBean
Copyright © 2013 Apache Software Foundation. All rights reserved.