|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.server.JettyProperties
public class JettyProperties
Utils class used to set Jetty server properties
Field Summary | |
---|---|
static int |
DEFAULT_ACCEPT_QUEUE_SIZE
Default Size of the accept queue. |
static int |
DEFAULT_ACCEPTOR_THREADS
Default Number of acceptor threads to set. |
static int |
DEFAULT_GRACEFUL_SHUTDOWN
Default The time (in ms) to wait for existing requests to complete before fully stopping the server. |
static int |
DEFAULT_IO_MAX_IDLE_TIME_MS
Default Maximum time to wait on an idle IO operation. |
static int |
DEFAULT_LOW_RESOURCES_MAX_IDLE_TIME_MS
Default Time in ms that connections will persist if listener is low on resources. |
static int |
DEFAULT_MAX_THREADS
Default Maximum threads that will service requests. |
static int |
DEFAULT_MIN_THREADS
default Minimum threads waiting to service requests. |
static int |
DEFAULT_REQUEST_BUFFER_SIZE
Default Size of the content buffer for receiving requests. |
static int |
DEFAULT_REQUEST_HEADER_SIZE
Default Size of the buffer to be used for request headers. |
static int |
DEFAULT_RESPONSE_BUFFER_SIZE
Default Size of the content buffer for sending responses. |
static int |
DEFAULT_RESPONSE_HEADER_SIZE
Default Size of the buffer to be used for response headers. |
static int |
DEFAULT_SO_LINGER_TIME
Default SO linger time (see Jetty documentation). |
static int |
DEFAULT_THREAD_MAX_IDLE_TIME_MS
Default Time for an idle thread to wait for a request or read. |
Constructor Summary | |
---|---|
JettyProperties()
|
Method Summary | |
---|---|
void |
addParamsToServerContext(org.restlet.Server serverHTTP)
addParamsToServerContext |
int |
getAcceptorThreads()
Gets the acceptorThreads value |
int |
getAcceptQueueSize()
Gets the acceptQueueSize value |
int |
getGracefulShutdown()
Gets the gracefulShutdown value |
int |
getIoMaxIdleTimeMs()
Gets the ioMaxIdleTimeMs value |
int |
getLowResourcesMaxIdleTimeMs()
Gets the lowResourcesMaxIdleTimeMs value |
int |
getMaxThreads()
Gets the maxThreads value |
int |
getMinThreads()
Gets the minThreads value |
int |
getRequestBufferSize()
Gets the requestBufferSize value |
int |
getRequestHeaderSize()
Gets the requestHeaderSize value |
int |
getResponseBufferSize()
Gets the responseBufferSize value |
int |
getResponseHeaderSize()
Gets the responseHeaderSize value |
int |
getSoLingerTime()
Gets the soLingerTime value |
int |
getThreadMaxIdleTimeMs()
Gets the threadMaxIdleTimeMs value |
void |
setAcceptorThreads(int acceptorThreads)
Sets the value of acceptorThreads |
void |
setAcceptQueueSize(int acceptQueueSize)
Sets the value of acceptQueueSize |
void |
setGracefulShutdown(int gracefulShutdown)
Sets the value of gracefulShutdown |
void |
setIoMaxIdleTimeMs(int ioMaxIdleTimeMs)
Sets the value of ioMaxIdleTimeMs |
void |
setLowResourcesMaxIdleTimeMs(int lowResourcesMaxIdleTimeMs)
Sets the value of lowResourcesMaxIdleTimeMs |
void |
setMaxThreads(int maxThreads)
Sets the value of maxThreads |
void |
setMinThreads(int minThreads)
Sets the value of minThreads |
void |
setRequestBufferSize(int requestBufferSize)
Sets the value of requestBufferSize |
void |
setRequestHeaderSize(int requestHeaderSize)
Sets the value of requestHeaderSize |
void |
setResponseBufferSize(int responseBufferSize)
Sets the value of responseBufferSize |
void |
setResponseHeaderSize(int responseHeaderSize)
Sets the value of responseHeaderSize |
void |
setSoLingerTime(int soLingerTime)
Sets the value of soLingerTime |
void |
setThreadMaxIdleTimeMs(int threadMaxIdleTimeMs)
Sets the value of threadMaxIdleTimeMs |
void |
setValues(SitoolsSettings settings)
setValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MIN_THREADS
public static final int DEFAULT_MAX_THREADS
public static final int DEFAULT_THREAD_MAX_IDLE_TIME_MS
public static final int DEFAULT_LOW_RESOURCES_MAX_IDLE_TIME_MS
public static final int DEFAULT_ACCEPTOR_THREADS
public static final int DEFAULT_ACCEPT_QUEUE_SIZE
public static final int DEFAULT_REQUEST_HEADER_SIZE
public static final int DEFAULT_RESPONSE_HEADER_SIZE
public static final int DEFAULT_REQUEST_BUFFER_SIZE
public static final int DEFAULT_RESPONSE_BUFFER_SIZE
public static final int DEFAULT_IO_MAX_IDLE_TIME_MS
public static final int DEFAULT_SO_LINGER_TIME
public static final int DEFAULT_GRACEFUL_SHUTDOWN
Constructor Detail |
---|
public JettyProperties()
Method Detail |
---|
public void setValues(SitoolsSettings settings)
settings
- the sitools Settings objectpublic void addParamsToServerContext(org.restlet.Server serverHTTP)
serverHTTP
- The server to add to parameters topublic int getRequestHeaderSize()
public void setRequestHeaderSize(int requestHeaderSize)
requestHeaderSize
- the requestHeaderSize to setpublic int getResponseHeaderSize()
public void setResponseHeaderSize(int responseHeaderSize)
responseHeaderSize
- the responseHeaderSize to setpublic int getMinThreads()
public void setMinThreads(int minThreads)
minThreads
- the minThreads to setpublic int getMaxThreads()
public void setMaxThreads(int maxThreads)
maxThreads
- the maxThreads to setpublic int getThreadMaxIdleTimeMs()
public void setThreadMaxIdleTimeMs(int threadMaxIdleTimeMs)
threadMaxIdleTimeMs
- the threadMaxIdleTimeMs to setpublic int getLowResourcesMaxIdleTimeMs()
public void setLowResourcesMaxIdleTimeMs(int lowResourcesMaxIdleTimeMs)
lowResourcesMaxIdleTimeMs
- the lowResourcesMaxIdleTimeMs to setpublic int getAcceptorThreads()
public void setAcceptorThreads(int acceptorThreads)
acceptorThreads
- the acceptorThreads to setpublic int getAcceptQueueSize()
public void setAcceptQueueSize(int acceptQueueSize)
acceptQueueSize
- the acceptQueueSize to setpublic int getRequestBufferSize()
public void setRequestBufferSize(int requestBufferSize)
requestBufferSize
- the requestBufferSize to setpublic int getResponseBufferSize()
public void setResponseBufferSize(int responseBufferSize)
responseBufferSize
- the responseBufferSize to setpublic int getIoMaxIdleTimeMs()
public void setIoMaxIdleTimeMs(int ioMaxIdleTimeMs)
ioMaxIdleTimeMs
- the ioMaxIdleTimeMs to setpublic int getSoLingerTime()
public void setSoLingerTime(int soLingerTime)
soLingerTime
- the soLingerTime to setpublic int getGracefulShutdown()
public void setGracefulShutdown(int gracefulShutdown)
gracefulShutdown
- the gracefulShutdown to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |