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 4letterwordIOException
org.apache.zookeeper.common.X509Exception.SSLContextException
public 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 SSLIOException
org.apache.zookeeper.common.X509Exception.SSLContextException
public 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 dataIOException
org.apache.zookeeper.common.X509Exception.SSLContextException
public static void main(String[] args) throws IOException, org.apache.zookeeper.common.X509Exception.SSLContextException
IOException
org.apache.zookeeper.common.X509Exception.SSLContextException
Copyright © 2017 The Apache Software Foundation