|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.dns.SocketServerSettings
public class SocketServerSettings
Tuning parameters for the DNS server socket connections. Tuning parameters are important to maximize the performance of the DNS server or to prevent the server machine from becoming over loaded.
| Constructor Summary | |
|---|---|
SocketServerSettings()
Creates a default set of socket parameters. |
|
| Method Summary | |
|---|---|
int |
getMaxActiveRequests()
Gets the maximum number of concurrent requests that can be processed by the server at any give time. |
int |
getMaxConnectionBacklog()
Gets the maximum number of connections that are in the IP socket accept backlog. |
int |
getMaxOutstandingAccepts()
Gets the maximum number of requests that can be accepted by the server, but not yet committed to a processing thread. |
int |
getReadBufferSize()
Gets the maximum size request buffer size in bytes. |
int |
getReceiveTimeout()
Gets the socket timeout in milliseconds for receiving or reading request. |
int |
getSendTimeout()
Gets the socket timeout in milliseconds for sending responses. |
int |
getSocketCloseTimeout()
Gets the timeout in milliseconds for closing a socket connection. |
void |
setMaxActiveRequests(int maxActiveRequests)
Sets the maximum number of concurrent requests that can be processed by the server at any give time. |
void |
setMaxConnectionBacklog(int maxConnectionBacklog)
Sets the maximum number of connections that are in the IP socket accept backlog. |
void |
setMaxOutstandingAccepts(int maxOutstandingAccepts)
Sets the maximum number of requests that can be accepted by the server, but not yet committed to a processing thread. |
void |
setReadBufferSize(int readBufferSize)
Sets the maximum size request buffer size in bytes. |
void |
setReceiveTimeout(int receiveTimeout)
Sets the socket timeout in milliseconds for receiving or reading request. |
void |
setSendTimeout(int sendTimeout)
Sets the socket timeout in milliseconds for sending responses. |
void |
setSocketCloseTimeout(int socketCloseTimeout)
Sets the timeout in milliseconds for closing a socket connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketServerSettings()
| Method Detail |
|---|
public int getMaxOutstandingAccepts()
public void setMaxOutstandingAccepts(int maxOutstandingAccepts)
maxOutstandingAccepts - The maximum number of requests that can be accepted by the server, but not yet
committed to a processing thread.public int getMaxActiveRequests()
public void setMaxActiveRequests(int maxActiveRequests)
maxActiveRequests - The maximum number of concurrent requests that can be processed by the server at any give time.public int getMaxConnectionBacklog()
public void setMaxConnectionBacklog(int maxConnectionBacklog)
maxConnectionBacklog - The maximum number of connections that are in the IP socket accept backlog.public int getReadBufferSize()
public void setReadBufferSize(int readBufferSize)
readBufferSize - The maximum size request buffer size in bytes.public int getSendTimeout()
public void setSendTimeout(int sendTimeout)
sendTimeout - Sets the socket timeout in milliseconds for sending responses.public int getReceiveTimeout()
public void setReceiveTimeout(int receiveTimeout)
receiveTimeout - The socket timeout in milliseconds for receiving or reading request.public int getSocketCloseTimeout()
public void setSocketCloseTimeout(int socketCloseTimeout)
socketCloseTimeout - The timeout in milliseconds for closing a socket connection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||