org.apache.zookeeper.server.quorum
public class QuorumPeerMain extends Object
Modifier and Type | Field and Description |
---|---|
protected QuorumPeer |
quorumPeer |
Constructor and Description |
---|
QuorumPeerMain() |
Modifier and Type | Method and Description |
---|---|
protected void |
initializeAndRun(String[] args) |
static void |
main(String[] args)
To start the replicated server specify the configuration file name on
the command line.
|
void |
runFromConfig(QuorumPeerConfig config) |
protected QuorumPeer quorumPeer
public static void main(String[] args)
args
- path to the configfileprotected void initializeAndRun(String[] args) throws QuorumPeerConfig.ConfigException, IOException
public void runFromConfig(QuorumPeerConfig config) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation