public class ServerConfiguration
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerConfiguration.Protocol |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Integer |
innerPort |
protected int |
maxSizeOfWaitingList |
protected int |
numberOfClientThreads |
protected int |
outerPort |
protected ServerConfiguration.Protocol |
protocol |
| Constructor and Description |
|---|
ServerConfiguration(int numberOfClientThreads,
int maxSizeOfWaitingList,
int outerPort,
java.lang.Integer internalPort)
Constructor.
|
ServerConfiguration(int outerPort,
ServerConfiguration.Protocol protocol)
Configuration for local server
|
protected final int numberOfClientThreads
protected final int maxSizeOfWaitingList
protected final int outerPort
protected final java.lang.Integer innerPort
protected final ServerConfiguration.Protocol protocol
public ServerConfiguration(int numberOfClientThreads,
int maxSizeOfWaitingList,
int outerPort,
java.lang.Integer internalPort)
numberOfClientThreads - number of threads that can answer calls.maxSizeOfWaitingList - number of pending callsouterPort - port on which the server exchange the information with the clientsinternalPort - port on which the server interface can be accessedpublic ServerConfiguration(int outerPort,
ServerConfiguration.Protocol protocol)
outerPort - protocol - either TCP or UDP