@InterfaceAudience.Public
public class FourLetterWordMain
extends java.lang.Object
| Constructor and Description |
|---|
FourLetterWordMain() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static java.lang.String |
send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd)
Send the 4letterword
|
static java.lang.String |
send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd,
boolean secure)
Send the 4letterword
|
static java.lang.String |
send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd,
boolean secure,
int timeout)
Send the 4letterword
|
public static java.lang.String send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd)
throws java.io.IOException,
org.apache.zookeeper.common.X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordjava.io.IOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionpublic static java.lang.String send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd,
boolean secure)
throws java.io.IOException,
org.apache.zookeeper.common.X509Exception.SSLContextException
host - the destination hostport - the destination portcmd - the 4letterwordsecure - whether to use SSLjava.io.IOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionpublic static java.lang.String send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd,
boolean secure,
int timeout)
throws java.io.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 datajava.io.IOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException,
org.apache.zookeeper.common.X509Exception.SSLContextException
java.io.IOExceptionorg.apache.zookeeper.common.X509Exception.SSLContextExceptionCopyright © 2018 The Apache Software Foundation