Package org.eclipse.net4j.util.om.trace
Class RemoteTraceServer
java.lang.Object
org.eclipse.net4j.util.om.trace.RemoteTraceServer
A server that
agents can connect to and that passes the received trace events
to registered listeners.- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceListens totrace eventsbeing passed by a remote traceserver.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(RemoteTraceServer.Listener listener) protected ServerSocketbind()close()protected voidfireEvent(RemoteTraceServer.Event event) protected voidprotected voidhandleSession(Socket socket) protected voidvoidremoveListener(RemoteTraceServer.Listener listener) voidstart()
-
Field Details
-
DEFAULT_ADDRESS
- See Also:
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
ANY_PORT
public static final int ANY_PORT- See Also:
-
-
Constructor Details
-
RemoteTraceServer
- Throws:
IOException
-
RemoteTraceServer
- Throws:
IOException
-
RemoteTraceServer
- Throws:
IOException
-
-
Method Details
-
start
public void start()- Since:
- 3.0
-
addListener
-
removeListener
-
close
-
bind
- Throws:
IOException
-
handleConnections
protected void handleConnections() -
handleSession
-
handleTrace
- Throws:
IOException
-
fireEvent
-