@InterfaceAudience.Public public class QuorumPeerMain extends Object
Modifier and Type | Field and Description |
---|---|
protected QuorumPeer |
quorumPeer |
Constructor and Description |
---|
QuorumPeerMain() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shutdowns properly the service, this method is not a public API.
|
protected QuorumPeer |
getQuorumPeer() |
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) |
String |
toString() |
protected QuorumPeer quorumPeer
public static void main(String[] args)
args
- path to the configfileprotected void initializeAndRun(String[] args) throws QuorumPeerConfig.ConfigException, IOException, AdminServer.AdminServerException
public void runFromConfig(QuorumPeerConfig config) throws IOException, AdminServer.AdminServerException
protected QuorumPeer getQuorumPeer() throws SaslException
SaslException
public void close()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.