Package org.eclipse.net4j.util.om.trace

# Klasse 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`.

Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static class`
`RemoteTraceServer.Event`
A trace event being passed by a remote trace `server` to `registered` `listeners`.
`static interface`
`RemoteTraceServer.Listener`
Listens to `trace events` being passed by a remote trace `server`.
`static class`
`RemoteTraceServer.PrintListener`
A `listener` that appends `trace events` to a `print stream`.

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final int`
`ANY_PORT`
`static final String`
`DEFAULT_ADDRESS`
`static final int`
`DEFAULT_PORT`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`RemoteTraceServer()`
`RemoteTraceServer(int port)`
`RemoteTraceServer(int port, String address)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`void`
`addListener(RemoteTraceServer.Listener listener)`
`protected ServerSocket`
`bind()`
`Exception`
`close()`
`protected void`
`fireEvent(RemoteTraceServer.Event event)`
`protected void`
`handleConnections()`
`protected void`
`handleSession(Socket socket)`
`protected void`
`handleTrace(DataInputStream in)`
`void`
`removeListener(RemoteTraceServer.Listener listener)`
`void`
`start()`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### DEFAULT_ADDRESS

public static final String DEFAULT_ADDRESS

Siehe auch:
  - Konstantenfeldwerte

### DEFAULT_PORT

public static final int DEFAULT_PORT

Siehe auch:
  - Konstantenfeldwerte

### ANY_PORT

public static final int ANY_PORT

Siehe auch:
  - Konstantenfeldwerte

## Konstruktordetails

### RemoteTraceServer

public RemoteTraceServer() throws IOException

Löst aus:
  `IOException`

### RemoteTraceServer

public RemoteTraceServer(int port) throws IOException

Löst aus:
  `IOException`

### RemoteTraceServer

public RemoteTraceServer(int port, String address) throws IOException

Löst aus:
  `IOException`

## Methodendetails

### start

public void start()

Seit:
  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

Löst aus:
  `IOException`

### handleConnections

protected void handleConnections()

### handleSession

protected void handleSession(Socket socket)

### handleTrace

protected void handleTrace(DataInputStream in) throws IOException

Löst aus:
  `IOException`

### fireEvent

protected void fireEvent(RemoteTraceServer.Event event)