Package org.eclipse.net4j.util.om.trace
Class RemoteTraceServer
- java.lang.Object
- 
- org.eclipse.net4j.util.om.trace.RemoteTraceServer
 
- 
 public class RemoteTraceServer extends java.lang.ObjectA server thatagentscan connect to and that passes the receivedtrace eventstoregisteredlisteners.- Author:
- Eike Stepper
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRemoteTraceServer.Eventstatic interfaceRemoteTraceServer.ListenerListens totrace eventsbeing passed by a remote traceserver.static classRemoteTraceServer.PrintListener
 - 
Field SummaryFields Modifier and Type Field Description static intANY_PORTstatic java.lang.StringDEFAULT_ADDRESSstatic intDEFAULT_PORT
 - 
Constructor SummaryConstructors Constructor Description RemoteTraceServer()RemoteTraceServer(int port)RemoteTraceServer(int port, java.lang.String address)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(RemoteTraceServer.Listener listener)protected java.net.ServerSocketbind()java.lang.Exceptionclose()protected voidfireEvent(RemoteTraceServer.Event event)protected voidhandleConnections()protected voidhandleSession(java.net.Socket socket)protected voidhandleTrace(java.io.DataInputStream in)voidremoveListener(RemoteTraceServer.Listener listener)voidstart()
 
- 
- 
- 
Field Detail- 
DEFAULT_ADDRESSpublic static final java.lang.String DEFAULT_ADDRESS - See Also:
- Constant Field Values
 
 - 
DEFAULT_PORTpublic static final int DEFAULT_PORT - See Also:
- Constant Field Values
 
 - 
ANY_PORTpublic static final int ANY_PORT - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RemoteTraceServerpublic RemoteTraceServer() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
RemoteTraceServerpublic RemoteTraceServer(int port) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
RemoteTraceServerpublic RemoteTraceServer(int port, java.lang.String address) throws java.io.IOException- Throws:
- java.io.IOException
 
 
- 
 - 
Method Detail- 
startpublic void start() - Since:
- 3.0
 
 - 
addListenerpublic void addListener(RemoteTraceServer.Listener listener) 
 - 
removeListenerpublic void removeListener(RemoteTraceServer.Listener listener) 
 - 
closepublic java.lang.Exception close() 
 - 
bindprotected java.net.ServerSocket bind() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
handleConnectionsprotected void handleConnections() 
 - 
handleSessionprotected void handleSession(java.net.Socket socket) 
 - 
handleTraceprotected void handleTrace(java.io.DataInputStream in) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
fireEventprotected void fireEvent(RemoteTraceServer.Event event) 
 
- 
 
-