org.eclipse.net4j.util.om.trace
Class RemoteTraceServer
java.lang.Object
org.eclipse.net4j.util.om.trace.RemoteTraceServer
- public class RemoteTraceServer
- extends Object
A server that agents
can connect to and that passes the received trace events
to registered
listeners
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ADDRESS
public static final 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
RemoteTraceServer
public RemoteTraceServer()
throws IOException
- Throws:
IOException
RemoteTraceServer
public RemoteTraceServer(int port)
throws IOException
- Throws:
IOException
RemoteTraceServer
public RemoteTraceServer(int port,
String address)
throws IOException
- Throws:
IOException
start
public void start()
- Since:
- 3.0
addListener
public void addListener(RemoteTraceServer.Listener listener)
removeListener
public void removeListener(RemoteTraceServer.Listener listener)
close
public Exception close()
bind
protected ServerSocket bind()
throws IOException
- Throws:
IOException
handleConnections
protected void handleConnections()
handleSession
protected void handleSession(Socket socket)
handleTrace
protected void handleTrace(DataInputStream in)
throws IOException
- Throws:
IOException
fireEvent
protected void fireEvent(RemoteTraceServer.Event event)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.