@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.IOException
org.apache.zookeeper.common.X509Exception.SSLContextException
public 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.IOException
org.apache.zookeeper.common.X509Exception.SSLContextException
public 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.IOException
org.apache.zookeeper.common.X509Exception.SSLContextException
public static void main(java.lang.String[] args) throws java.io.IOException, org.apache.zookeeper.common.X509Exception.SSLContextException
java.io.IOException
org.apache.zookeeper.common.X509Exception.SSLContextException
Copyright © 2018 The Apache Software Foundation