org.apache.zookeeper.client
Class FourLetterWordMain
java.lang.Object
org.apache.zookeeper.client.FourLetterWordMain
public class FourLetterWordMain
- extends java.lang.Object
Method Summary |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FourLetterWordMain
public FourLetterWordMain()
send4LetterWord
public static java.lang.String send4LetterWord(java.lang.String host,
int port,
java.lang.String cmd)
throws java.io.IOException
- Send the 4letterword
- Parameters:
host
- the destination hostport
- the destination portcmd
- the 4letterword
- Returns:
- server response
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2012 The Apache Software Foundation