org.apache.zookeeper.client
Class FourLetterWordMain

java.lang.Object
  extended by org.apache.zookeeper.client.FourLetterWordMain

public class FourLetterWordMain
extends java.lang.Object


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
FourLetterWordMain()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

FourLetterWordMain

public FourLetterWordMain()
Method Detail

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 host
port - the destination port
cmd - 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