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
Modifier and TypeClassDescriptionstatic class
static interface
Listens totrace events
being passed by a remote traceserver
.static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(RemoteTraceServer.Listener listener) protected ServerSocket
bind()
close()
protected void
fireEvent
(RemoteTraceServer.Event event) protected void
protected void
handleSession
(Socket socket) protected void
void
removeListener
(RemoteTraceServer.Listener listener) void
start()
-
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
-