@Requirement(reqId="DOI_CONFIG_010", reqName="Configuration du serveur central") public final class JettySettings extends org.restlet.ext.jetty.JettyServerHelper
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
private org.restlet.Server |
server
Server.
|
private DoiSettings |
settings
DOI settings.
|
Constructor and Description |
---|
JettySettings(org.restlet.Server server,
DoiSettings settings)
Constructs settings for Jetty.
|
Modifier and Type | Method and Description |
---|---|
private void |
addParam(String propName,
Object propValue)
Add a parameter to a Jetty server.
|
void |
addParamsToServerContext()
addParamsToServerContext.
|
int |
getConnectorAcceptors()
Connector acceptor thread count.
|
int |
getConnectorAcceptQueueSize()
Connector accept queue size.
|
int |
getConnectorIdleTimeout()
Connector idle timeout in milliseconds.
|
int |
getConnectorSelectors()
Connector selector thread count.
|
int |
getConnectorSoLingerTime()
Connector TCP/IP SO linger time in milliseconds.
|
int |
getConnectorStopTimeout()
Connector stop timeout in milliseconds.
|
int |
getHttpHeaderCacheSize()
HTTP header cache size in bytes.
|
int |
getHttpOutputBufferSize()
HTTP output buffer size in bytes.
|
int |
getHttpRequestHeaderSize()
HTTP request header size in bytes.
|
int |
getHttpResponseHeaderSize()
HTTP response header size in bytes.
|
int |
getLowResourceMonitorIdleTimeout()
Low resource monitor idle timeout in milliseconds.
|
int |
getLowResourceMonitorMaxConnections()
Low resource monitor max connections.
|
long |
getLowResourceMonitorMaxMemory()
Low resource monitor max memory in bytes.
|
int |
getLowResourceMonitorPeriod()
Low resource monitor period in milliseconds.
|
long |
getLowResourceMonitorStopTimeout()
Low resource monitor stop timeout in milliseconds.
|
boolean |
getLowResourceMonitorThreads()
Low resource monitor, whether to check if we're low on threads.
|
int |
getThreadPoolIdleTimeout()
Thread pool idle timeout in milliseconds.
|
int |
getThreadPoolMaxThreads()
Thread pool maximum threads.
|
int |
getThreadPoolMinThreads()
Thread pool minimum threads.
|
long |
getThreadPoolStopTimeout()
Thread pool stop timeout in milliseconds.
|
int |
getThreadPoolThreadsPriority()
Thread pool threads priority.
|
createConnectionFactories, getConnectorByteBufferPool, getConnectorExecutor, getConnectorScheduler, getSpdyPushStrategy, getSpdyVersion, getWrappedServer, setWrappedServer, start, stop
getAdapter, handle, setAdapter
handle, setEphemeralPort, setEphemeralPort
getConnectorService, getContext, getProtocols, update
private static final org.apache.logging.log4j.Logger LOG
private final DoiSettings settings
private final org.restlet.Server server
public JettySettings(org.restlet.Server server, DoiSettings settings)
server
- Jetty serversettings
- DOI settingspublic int getHttpRequestHeaderSize()
getHttpRequestHeaderSize
in class org.restlet.ext.jetty.JettyServerHelper
public int getHttpResponseHeaderSize()
getHttpResponseHeaderSize
in class org.restlet.ext.jetty.JettyServerHelper
public int getThreadPoolMinThreads()
getThreadPoolMinThreads
in class org.restlet.ext.jetty.JettyServerHelper
public int getThreadPoolMaxThreads()
getThreadPoolMaxThreads
in class org.restlet.ext.jetty.JettyServerHelper
public int getThreadPoolThreadsPriority()
getThreadPoolThreadsPriority
in class org.restlet.ext.jetty.JettyServerHelper
public int getThreadPoolIdleTimeout()
getThreadPoolIdleTimeout
in class org.restlet.ext.jetty.JettyServerHelper
public long getThreadPoolStopTimeout()
getThreadPoolStopTimeout
in class org.restlet.ext.jetty.JettyServerHelper
public int getConnectorAcceptors()
getConnectorAcceptors
in class org.restlet.ext.jetty.JettyServerHelper
public int getConnectorSelectors()
getConnectorSelectors
in class org.restlet.ext.jetty.JettyServerHelper
public int getLowResourceMonitorIdleTimeout()
getLowResourceMonitorIdleTimeout
in class org.restlet.ext.jetty.JettyServerHelper
public int getLowResourceMonitorPeriod()
getLowResourceMonitorPeriod
in class org.restlet.ext.jetty.JettyServerHelper
public long getLowResourceMonitorMaxMemory()
getLowResourceMonitorMaxMemory
in class org.restlet.ext.jetty.JettyServerHelper
public int getLowResourceMonitorMaxConnections()
getLowResourceMonitorMaxConnections
in class org.restlet.ext.jetty.JettyServerHelper
public boolean getLowResourceMonitorThreads()
getLowResourceMonitorThreads
in class org.restlet.ext.jetty.JettyServerHelper
public int getConnectorAcceptQueueSize()
getConnectorAcceptQueueSize
in class org.restlet.ext.jetty.JettyServerHelper
public int getConnectorSoLingerTime()
getConnectorSoLingerTime
in class org.restlet.ext.jetty.JettyServerHelper
public int getConnectorIdleTimeout()
getConnectorIdleTimeout
in class org.restlet.ext.jetty.JettyServerHelper
public int getHttpOutputBufferSize()
getHttpOutputBufferSize
in class org.restlet.ext.jetty.JettyServerHelper
public int getHttpHeaderCacheSize()
getHttpHeaderCacheSize
in class org.restlet.ext.jetty.JettyServerHelper
public int getConnectorStopTimeout()
getConnectorStopTimeout
in class org.restlet.ext.jetty.JettyServerHelper
public long getLowResourceMonitorStopTimeout()
getLowResourceMonitorStopTimeout
in class org.restlet.ext.jetty.JettyServerHelper
public void addParamsToServerContext()
private void addParam(String propName, Object propValue)
propName
- the name of the property to addpropValue
- the value to setIllegalArgumentException
- - if propValue is nullCopyright © 2017–2020 CNES. All rights reserved.