public class ZookeeperProcessHelper extends ProcessHelper
PurgeTxnLog must be used to periodically release snapshots and
their associated logs which are no longer required for service restart., periodic purge of snapshots and logs, etc.
|Modifier and Type||Field and Description|
|Constructor and Description|
|Modifier and Type||Method and Description|
Extended to send the
(Re-)starts any zookeeper server(s) for the localhost that are identified in the
consumeOutput, equals, exitValue, exitValue, getCommandString, getEnvironment, interruptWhenProcessDies, toString
protected final int clientPort
protected static java.net.InetAddress thisInetAddr
public ZookeeperProcessHelper(java.lang.String name, java.lang.ProcessBuilder builder, IServiceListener listener, int clientPort) throws java.io.IOException
clientPort- The zookeeper client port.
public int kill(boolean immediateShutdown) throws java.lang.InterruptedException
killmessage to the local zookeeper instance.
Note: killing zookeeper requires sending a
from the host on which it is executing. zookeeper appears to fork a
process which is the "real" zookeeper, so just killing the outer process
does not do what we want.
Note: Due to how zookeeper peers work, we don't really know which instance is answering requests for the clientPort. It could be any instance in the ensemble. Therefore, DO NOT run multiple zookeeper instances on the same host with this class! It will kill the current master!
public static int startZookeeper(net.jini.config.Configuration config, IServiceListener listener) throws net.jini.config.ConfigurationException, java.io.IOException
ConfigurationFileand are not currently running.
Copyright © 2006-2014 SYSTAP, LLC. All Rights Reserved.