public class NedMux extends Object implements Runnable
Modifier and Type | Method and Description |
---|---|
NedConnectionBase |
getConnection(int id) |
ErrorMessageFormatter |
getErrorMessageFormatter()
Return the errorMessageFormatter for this NedMux.
|
ErrorVerbosity |
getErrorVerbosity()
Get the local verbosity level for reported errors
If this verbosity is null the the default level governs the error
verbosity of this NedMux
|
String[] |
listOpenConnections() |
void |
register(NedConnectionBase userMod)
Register a new NedConnection with the mux.
|
boolean |
reRegister(NedConnectionBase userMod)
The reRegister method will, NCS unknowingly, exchange the
ned implementation on the fly.
|
void |
run() |
void |
setErrorVerbosity(ErrorVerbosity verbosity)
set the local verbosity level for reported errors
If this verbosity is set to null the the default level governs the error
verbosity of this NedMux
|
void |
start() |
void |
stopRequest() |
public NedMux()
public NedMux(String host, int port)
public void start()
public void stopRequest()
public NedConnectionBase getConnection(int id)
public void register(NedConnectionBase userMod)
userMod
- public boolean reRegister(NedConnectionBase userMod)
userMod
- public ErrorVerbosity getErrorVerbosity()
public void setErrorVerbosity(ErrorVerbosity verbosity)
verbosity
- public ErrorMessageFormatter getErrorMessageFormatter()
public String[] listOpenConnections()