public abstract class AbstractFourLetterCommand extends Object
Modifier and Type | Field and Description |
---|---|
protected ServerCnxnFactory |
factory |
protected PrintWriter |
pw |
protected ServerCnxn |
serverCnxn |
static String |
ZK_NOT_SERVING |
protected ZooKeeperServer |
zkServer |
Constructor and Description |
---|
AbstractFourLetterCommand(PrintWriter pw,
ServerCnxn serverCnxn) |
Modifier and Type | Method and Description |
---|---|
abstract void |
commandRun() |
void |
run() |
void |
setFactory(ServerCnxnFactory factory) |
void |
setZkServer(ZooKeeperServer zkServer) |
void |
start() |
public static final String ZK_NOT_SERVING
protected PrintWriter pw
protected ServerCnxn serverCnxn
protected ZooKeeperServer zkServer
protected ServerCnxnFactory factory
public AbstractFourLetterCommand(PrintWriter pw, ServerCnxn serverCnxn)
public void start()
public void run()
public void setZkServer(ZooKeeperServer zkServer)
public void setFactory(ServerCnxnFactory factory)
public abstract void commandRun() throws IOException
IOException
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.