Package org.apache.zookeeper.client
Class FourLetterWordMain
- java.lang.Object
- 
- org.apache.zookeeper.client.FourLetterWordMain
 
- 
 @Public public class FourLetterWordMain extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static org.slf4j.LoggerLOG
 - 
Constructor SummaryConstructors Constructor Description FourLetterWordMain()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static Stringsend4LetterWord(String host, int port, String cmd)Send the 4letterwordstatic Stringsend4LetterWord(String host, int port, String cmd, boolean secure)Send the 4letterwordstatic Stringsend4LetterWord(String host, int port, String cmd, boolean secure, int timeout)Send the 4letterword
 
- 
- 
- 
Method Detail- 
send4LetterWordpublic static String send4LetterWord(String host, int port, String cmd) throws IOException, X509Exception.SSLContextException Send the 4letterword- Parameters:
- host- the destination host
- port- the destination port
- cmd- the 4letterword
- Returns:
- server response
- Throws:
- IOException
- X509Exception.SSLContextException
 
 - 
send4LetterWordpublic static String send4LetterWord(String host, int port, String cmd, boolean secure) throws IOException, X509Exception.SSLContextException Send the 4letterword- Parameters:
- host- the destination host
- port- the destination port
- cmd- the 4letterword
- secure- whether to use SSL
- Returns:
- server response
- Throws:
- IOException
- X509Exception.SSLContextException
 
 - 
send4LetterWordpublic static String send4LetterWord(String host, int port, String cmd, boolean secure, int timeout) throws IOException, X509Exception.SSLContextException Send the 4letterword- Parameters:
- host- the destination host
- port- the destination port
- cmd- the 4letterword
- secure- whether to use SSL
- timeout- in milliseconds, maximum time to wait while connecting/reading data
- Returns:
- server response
- Throws:
- IOException
- X509Exception.SSLContextException
 
 - 
mainpublic static void main(String[] args) throws IOException, X509Exception.SSLContextException 
 
- 
 
-