Class AbstractFourLetterCommand
java.lang.Object
org.apache.zookeeper.server.command.AbstractFourLetterCommand
- Direct Known Subclasses:
CnxnStatResetCommand
,ConfCommand
,ConsCommand
,DigestCommand
,DirsCommand
,DumpCommand
,EnvCommand
,IsroCommand
,MonitorCommand
,NopCommand
,RuokCommand
,SetTraceMaskCommand
,StatCommand
,StatResetCommand
,TraceMaskCommand
,WatchCommand
Set of threads for command ports. All the 4 letter commands are run via a
thread. Each class maps to a corresponding 4 letter command. CommandThread is
the abstract class from which all the others inherit.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServerCnxnFactory
protected PrintWriter
protected ServerCnxn
static final String
protected ZooKeeperServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
void
run()
void
setFactory
(ServerCnxnFactory factory) void
setZkServer
(ZooKeeperServer zkServer) void
start()
-
Field Details
-
ZK_NOT_SERVING
- See Also:
-
pw
-
serverCnxn
-
zkServer
-
factory
-
-
Constructor Details
-
AbstractFourLetterCommand
-
-
Method Details
-
start
public void start() -
run
public void run() -
setZkServer
-
setFactory
-
commandRun
- Throws:
IOException
-