public class FourLetterWordMain extends Object
| Constructor and Description |
|---|
FourLetterWordMain() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static String |
send4LetterWord(String host,
int port,
String cmd)
Send the 4letterword
|
static String |
send4LetterWord(String host,
int port,
String cmd,
boolean secure)
Send the 4letterword
|
static String |
send4LetterWord(String host,
int port,
String cmd,
boolean secure,
int timeout)
Send the 4letterword
|
public static String send4LetterWord(String host, int port, String cmd) throws IOException, org.apache.zookeeper.common.X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordIOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionpublic static String send4LetterWord(String host, int port, String cmd, boolean secure) throws IOException, org.apache.zookeeper.common.X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordsecure - whether to use SSLIOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionpublic static String send4LetterWord(String host, int port, String cmd, boolean secure, int timeout) throws IOException, org.apache.zookeeper.common.X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordsecure - whether to use SSLtimeout - in milliseconds, maximum time to wait while connecting/reading dataIOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionpublic static void main(String[] args) throws IOException, org.apache.zookeeper.common.X509Exception.SSLContextException
IOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionCopyright © 2015 The Apache Software Foundation