public class RemoteTraceServer
extends java.lang.Object
agents
can connect to and that passes the received trace events
to registered
listeners
.Modifier and Type | Class and Description |
---|---|
static class |
RemoteTraceServer.Event
|
static interface |
RemoteTraceServer.Listener
Listens to
trace events being passed by a remote trace server . |
static class |
RemoteTraceServer.PrintListener
|
Modifier and Type | Field and Description |
---|---|
static int |
ANY_PORT |
static java.lang.String |
DEFAULT_ADDRESS |
static int |
DEFAULT_PORT |
Constructor and Description |
---|
RemoteTraceServer() |
RemoteTraceServer(int port) |
RemoteTraceServer(int port,
java.lang.String address) |
Modifier and Type | Method and Description |
---|---|
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) |
void |
start() |
public static final java.lang.String DEFAULT_ADDRESS
public static final int DEFAULT_PORT
public static final int ANY_PORT
public RemoteTraceServer() throws java.io.IOException
java.io.IOException
public RemoteTraceServer(int port) throws java.io.IOException
java.io.IOException
public RemoteTraceServer(int port, java.lang.String address) throws java.io.IOException
java.io.IOException
public void start()
public void addListener(RemoteTraceServer.Listener listener)
public void removeListener(RemoteTraceServer.Listener listener)
public java.lang.Exception close()
protected java.net.ServerSocket bind() throws java.io.IOException
java.io.IOException
protected void handleConnections()
protected void handleSession(java.net.Socket socket)
protected void handleTrace(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected void fireEvent(RemoteTraceServer.Event event)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html