org.apache.cocoon.profiler.debugging
Class Client

java.lang.Object
  extended byorg.apache.cocoon.profiler.debugging.Client
All Implemented Interfaces:
Runnable

public class Client
extends Object
implements Runnable

This is a simple cli client for the Debugger.

Since:
2.2
Version:
$Id: Client.java 232596 2005-08-14 11:13:12Z cziegeler $

Field Summary
protected static String HOST
           
protected static int PORT
           
protected  Reader reader
           
protected  ServerSocket server
           
protected  Socket socket
           
protected  PrintWriter writer
           
 
Constructor Summary
Client()
           
 
Method Summary
protected  void close()
          Close the connection
protected  boolean isSocketReaderReady()
           
static void main(String[] args)
          The main method.
protected static void printUsage()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOST

protected static final String HOST
See Also:
Constant Field Values

PORT

protected static final int PORT
See Also:
Constant Field Values

writer

protected PrintWriter writer

reader

protected Reader reader

server

protected ServerSocket server

socket

protected Socket socket
Constructor Detail

Client

public Client()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
See Also:
Runnable.run()

close

protected void close()
Close the connection


isSocketReaderReady

protected boolean isSocketReaderReady()

main

public static void main(String[] args)
                 throws Exception
The main method.

Parameters:
args - a String[] of arguments
Throws:
Exception - if an error occurs

printUsage

protected static void printUsage()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.