org.eclipse.net4j.util.om.trace
Class RemoteTraceServer

java.lang.Object
  extended by org.eclipse.net4j.util.om.trace.RemoteTraceServer

public class RemoteTraceServer
extends java.lang.Object


Nested Class Summary
 class RemoteTraceServer.Event
           
static interface RemoteTraceServer.Listener
           
static class RemoteTraceServer.PrintListener
           
 
Field Summary
static int ANY_PORT
           
static java.lang.String DEFAULT_ADDRESS
           
static int DEFAULT_PORT
           
 
Constructor Summary
RemoteTraceServer()
           
RemoteTraceServer(int port)
           
RemoteTraceServer(int port, java.lang.String address)
           
 
Method Summary
 void addListener(RemoteTraceServer.Listener listener)
           
protected  java.net.ServerSocket bind()
           
 java.lang.Exception close()
           
protected  void fireEvent(RemoteTraceServer.Event event)
           
protected  void handleConnections()
           
protected  void handleSession(java.net.Socket socket)
           
protected  void handleTrace(java.io.DataInputStream in)
           
 void removeListener(RemoteTraceServer.Listener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ADDRESS

public static final java.lang.String DEFAULT_ADDRESS
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

ANY_PORT

public static final int ANY_PORT
See Also:
Constant Field Values
Constructor Detail

RemoteTraceServer

public RemoteTraceServer()
                  throws java.io.IOException
Throws:
java.io.IOException

RemoteTraceServer

public RemoteTraceServer(int port)
                  throws java.io.IOException
Throws:
java.io.IOException

RemoteTraceServer

public RemoteTraceServer(int port,
                         java.lang.String address)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addListener

public void addListener(RemoteTraceServer.Listener listener)

removeListener

public void removeListener(RemoteTraceServer.Listener listener)

close

public java.lang.Exception close()

bind

protected java.net.ServerSocket bind()
                              throws java.io.IOException
Throws:
java.io.IOException

handleConnections

protected void handleConnections()

handleSession

protected void handleSession(java.net.Socket socket)

handleTrace

protected void handleTrace(java.io.DataInputStream in)
                    throws java.io.IOException
Throws:
java.io.IOException

fireEvent

protected void fireEvent(RemoteTraceServer.Event event)

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.