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 ServerCnxnFactoryprotected PrintWriterprotected ServerCnxnstatic final Stringprotected ZooKeeperServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidvoidrun()voidsetFactory(ServerCnxnFactory factory) voidsetZkServer(ZooKeeperServer zkServer) voidstart()
-
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
-