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
 
 public abstract class AbstractFourLetterCommand extends Object 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 SummaryFields Modifier and Type Field Description protected ServerCnxnFactoryfactoryprotected PrintWriterpwprotected ServerCnxnserverCnxnstatic StringZK_NOT_SERVINGprotected ZooKeeperServerzkServer
 - 
Constructor SummaryConstructors Constructor Description AbstractFourLetterCommand(PrintWriter pw, ServerCnxn serverCnxn)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcommandRun()voidrun()voidsetFactory(ServerCnxnFactory factory)voidsetZkServer(ZooKeeperServer zkServer)voidstart()
 
- 
- 
- 
Field Detail- 
ZK_NOT_SERVINGpublic static final String ZK_NOT_SERVING - See Also:
- Constant Field Values
 
 - 
pwprotected PrintWriter pw 
 - 
serverCnxnprotected ServerCnxn serverCnxn 
 - 
zkServerprotected ZooKeeperServer zkServer 
 - 
factoryprotected ServerCnxnFactory factory 
 
- 
 - 
Constructor Detail- 
AbstractFourLetterCommandpublic AbstractFourLetterCommand(PrintWriter pw, ServerCnxn serverCnxn) 
 
- 
 - 
Method Detail- 
startpublic void start() 
 - 
runpublic void run() 
 - 
setZkServerpublic void setZkServer(ZooKeeperServer zkServer) 
 - 
setFactorypublic void setFactory(ServerCnxnFactory factory) 
 - 
commandRunpublic abstract void commandRun() throws IOException- Throws:
- IOException
 
 
- 
 
-