public class PECoyoteConnector extends Connector
Modifier and Type | Field and Description |
---|---|
protected static Logger |
_logger |
protected static ResourceBundle |
_rb |
protected GrizzlyConfig |
grizzlyMonitor
The monitoring classes used to gather stats.
|
protected MapperListener |
mapperListener
Mapper listener.
|
protected int |
maxAcceptWorkerThreads
The number of acceptor threads.
|
protected int |
maxReadWorkerThreads
The number of reader threads.
|
protected int |
minAcceptQueueLength
The size of the accept queue.
|
protected int |
minProcessorQueueLength
The size of the processor queue.
|
protected int |
minReadQueueLength
The size of the read queue
|
protected int |
processorWorkerThreadsTimeout
The request timeout value used by the processor threads.
|
protected boolean |
recycleObjects
Are we recycling objects
|
protected int |
ssBackLog
Server socket backlog.
|
protected boolean |
useDirectByteBuffer
Use direct or non direct byte buffer.
|
authPassthroughEnabled, container, domain, initialized, lifecycle, mapper, maxSavePostSize, minProcessors, oname, proxyHandler
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
PECoyoteConnector(WebContainer webContainer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
configHttpProperties(Http http,
Transport transport,
Ssl ssl) |
void |
configure(NetworkListener listener,
boolean isSecure,
HttpService httpService) |
void |
configureFileCache(FileCache fileCache)
Configure the Grizzly FileCache mechanism
|
boolean |
configureHttpListenerProperty(String propName,
String propValue)
Configure http-listener property.
|
void |
configureJKProperties(NetworkListener listener) |
void |
configureThreadPool(ThreadPool pool)
Configures this connector from the given thread-pool
configuration bean.
|
Request |
createRequest()
Create (or allocate) and return a Request object suitable for
specifying the contents of a Request to the responsible ContractProvider.
|
Response |
createResponse()
Creates and returns Response object.
|
String |
getCrlFile()
Gets the location of the CRL file
|
int |
getKeepAliveThreadCount()
Gets the number of keep-alive threads.
|
int |
getKeepAliveTimeoutInSeconds()
Gets the number of seconds before a keep-alive connection that has
been idle times out and is closed.
|
String |
getKeystoreType()
Gets the keystore type of this connector.
|
boolean |
getLargeFileCacheEnabled()
Is the large file cache support enabled.
|
MapperListener |
getMapperListener()
Gets the MapperListener of this connector.
|
int |
getMaxAcceptWorkerThreads()
Return the
read-thread used by this Selector |
int |
getMaxCacheEntries()
Return the maximum entries this cache can contains.
|
long |
getMaxEntrySize()
Get the maximum size a
FileCacheEntry can have. |
long |
getMaxLargeCacheSize()
Get the maximum cache size
|
int |
getMaxReadWorkerThreads()
Return the
read-thread used by this Selector |
long |
getMaxSmallCacheSize()
Get the maximum cache size
|
int |
getMinAcceptQueueLength()
Return the
acceptor-queue-length value
on this Selector |
long |
getMinEntrySize()
Get the maximum size a
FileCacheEntry can have. |
int |
getMinProcessorQueueLength()
Return the
processor-queue-length value
on this Selector |
int |
getMinReadQueueLength()
Return the
reader-queue-length value
on this Selector |
int |
getProcessorWorkerThreadsTimeout() |
int |
getQueueSizeInBytes()
Return the maximum pending connection.
|
boolean |
getRecycleObjects()
Return the
recycle-tasks used by this
Selector |
int |
getSecondsMaxAge() |
int |
getSelectorReadThreadsCount() |
int |
getSocketServerBacklog()
Return the maximum pending connection.
|
String |
getTrustAlgorithm()
Gets the trust management algorithm
|
String |
getTrustMaxCertLength()
Gets the maximum number of non-self-issued intermediate
certificates that may exist in a certification path
|
String |
getTruststore()
Gets the truststore location of this connector.
|
String |
getTruststoreType()
Gets the truststore type of this connector.
|
boolean |
getUseDirectByteBuffer()
Return the
use-nio-non-blocking used by this
Selector |
String |
getWebAppRootPath()
Return the folder's root where application are deployed.
|
void |
initialize()
Initialize this connector.
|
boolean |
isFileCacheEnabled()
Is the fileCache enabled.
|
void |
requestEndEvent(javax.servlet.http.HttpServletRequest request,
Host host,
Context context,
int statusCode)
Fires probe event related to the fact that the given request is about
to exit from the web container.
|
void |
requestStartEvent(javax.servlet.http.HttpServletRequest request,
Host host,
Context context)
Fires probe event related to the fact that the given request has
been entered the web container.
|
void |
setCrlFile(String crlFile)
Sets the location of the CRL file.
|
void |
setFileCacheEnabled(boolean fileCacheEnabled)
Is the file caching mechanism enabled.
|
void |
setKeepAliveThreadCount(int number)
Sets the number of keep-alive threads
|
void |
setKeepAliveTimeoutInSeconds(int timeout)
Sets the number of seconds before a keep-alive connection that has
been idle times out and is closed.
|
void |
setKeystoreType(String type)
Sets the keystore type of this connector.
|
void |
setLargeFileCacheEnabled(boolean isLargeEnabled)
Is the large file cache support enabled.
|
void |
setMaxAcceptWorkerThreads(int maxAcceptWorkerThreads)
Set the
reader-thread from domian.xml. |
void |
setMaxCacheEntries(int mEntries)
Set the maximum entries this cache can contains.
|
void |
setMaxEntrySize(long mEntrySize)
Set the maximum size a
FileCacheEntry can have. |
void |
setMaxLargeCacheSize(long mCacheSize)
Set the maximum cache size
|
void |
setMaxReadWorkerThreads(int maxReadWorkerThreads)
Set the
reader-thread from domian.xml. |
void |
setMaxSmallCacheSize(long mCacheSize)
Set the maximum cache size
|
void |
setMinAcceptQueueLength(int minAcceptQueueLength)
Set the
acceptor-queue-length value
on this Selector |
void |
setMinEntrySize(long mSize)
Set the maximum size a
FileCacheEntry can have. |
void |
setMinProcessorQueueLength(int minProcessorQueueLength)
Set the
processor-queue-length value
on this Selector |
void |
setMinReadQueueLength(int minReadQueueLength)
Set the
reader-queue-length value
on this Selector |
void |
setProcessorWorkerThreadsTimeout(int timeout) |
void |
setProxyHandler(String className) |
void |
setQueueSizeInBytes(int queueSizeInBytes)
Set the maximum pending connection this
Connector
can handle. |
void |
setRecycleObjects(boolean recycleObjects)
Set the
recycle-tasks used by this Selector |
void |
setSecondsMaxAge(int sMaxAges)
The timeout in seconds before remove a
FileCacheEntry
from the fileCache |
void |
setSelectorReadThreadsCount(int selectorReadThreadsCount) |
void |
setSocketServerBacklog(int ssBackLog)
Set the
SocketServer backlog. |
void |
setTrustAlgorithm(String trustAlgorithm)
Sets the trust management algorithm
|
void |
setTrustMaxCertLength(String trustMaxCertLength)
Sets the maximum number of non-self-issued intermediate
certificates that may exist in a certification path
|
void |
setTruststore(String truststore)
Sets the truststore location of this connector.
|
void |
setTruststoreType(String type)
Sets the truststore type of this connector.
|
void |
setUseDirectByteBuffer(boolean useDirectByteBuffer)
Set the
use-nio-non-blocking by this Selector |
void |
setWebAppRootPath(String rootFolder)
Set the documenr root folder
|
void |
start()
Begin processing requests via this Connector.
|
void |
stop()
Terminate processing requests via this Connector.
|
addLifecycleListener, createObjectName, destroy, findLifecycleListeners, getAcceptCount, getAddress, getAllowTrace, getAuthPassthroughEnabled, getBlocking, getBufferSize, getCertificates, getCiphers, getClientAuth, getCompression, getConnectionLinger, getConnectionTimeout, getConnectionUploadTimeout, getContainer, getController, getDebug, getDefaultHost, getDisableUploadTimeout, getDomain, getEnableLookups, getFactory, getHandler, getInfo, getInstanceName, getJvmRoute, getKeepAlive, getKeyAlias, getKeystoreFile, getKeystorePass, getMapper, getMaxHttpHeaderSize, getMaxKeepAliveRequests, getMaxPostSize, getMaxProcessors, getMaxSavePostSize, getMinProcessors, getName, getObjectName, getPort, getProperty, getProtocol, getProtocolHandler, getProtocolHandlerClassName, getProxyHandler, getProxyName, getProxyPort, getRedirectPort, getScheme, getSecure, getSelectorThreadImpl, getServerSocketTimeout, getService, getSsl3SessionTimeout, getSslProtocol, getSslProtocols, getSslSessionCacheSize, getSslSessionTimeout, getTcpNoDelay, getTomcatAuthentication, getURIEncoding, init, isAvailable, isEnabled, isServerHeader, isXframeOptions, isXpoweredBy, removeLifecycleListener, removeProperty, setAcceptCount, setAddress, setAllowTrace, setAuthPassthroughEnabled, setBlocking, setBufferSize, setCiphers, setClientAuth, setCompression, setConnectionLinger, setConnectionTimeout, setConnectionUploadTimeout, setContainer, setController, setDebug, setDefaultHost, setDisableUploadTimeout, setDomain, setEnabled, setEnableLookups, setFactory, setHandler, setInstanceName, setJvmRoute, setKeepAlive, setKeyAlias, setKeystoreFile, setKeystorePass, setMapper, setMaxHttpHeaderSize, setMaxKeepAliveRequests, setMaxPostSize, setMaxProcessors, setMaxSavePostSize, setMinProcessors, setName, setPort, setProperty, setProtocol, setProtocolHandler, setProtocolHandlerClassName, setProxyHandler, setProxyName, setProxyPort, setRedirectPort, setScheme, setSecure, setSelectorThreadImpl, setServerHeader, setServerSocketTimeout, setService, setSsl3SessionTimeout, setSslProtocol, setSslProtocols, setSslSessionCacheSize, setSslSessionTimeout, setTcpNoDelay, setTomcatAuthentication, setURIEncoding, setXframeOptions, setXpoweredBy
protected static final Logger _logger
protected static final ResourceBundle _rb
protected boolean recycleObjects
protected int maxAcceptWorkerThreads
protected int maxReadWorkerThreads
protected int processorWorkerThreadsTimeout
protected int minAcceptQueueLength
protected int minReadQueueLength
protected int minProcessorQueueLength
protected boolean useDirectByteBuffer
protected int ssBackLog
protected GrizzlyConfig grizzlyMonitor
protected MapperListener mapperListener
public PECoyoteConnector(WebContainer webContainer)
public Request createRequest()
createRequest
in interface Connector
createRequest
in class Connector
public Response createResponse()
createResponse
in interface Connector
createResponse
in class Connector
public int getKeepAliveTimeoutInSeconds()
public void setKeepAliveTimeoutInSeconds(int timeout)
timeout
- Keep-alive timeout in number of secondspublic int getKeepAliveThreadCount()
public void setKeepAliveThreadCount(int number)
number
- Number of keep-alive threadspublic void setQueueSizeInBytes(int queueSizeInBytes)
Connector
can handle.public int getQueueSizeInBytes()
public void setSocketServerBacklog(int ssBackLog)
SocketServer
backlog.public int getSocketServerBacklog()
public void setRecycleObjects(boolean recycleObjects)
recycle-tasks
used by this Selector
public boolean getRecycleObjects()
recycle-tasks
used by this
Selector
public void setMaxReadWorkerThreads(int maxReadWorkerThreads)
reader-thread
from domian.xml.public int getMaxReadWorkerThreads()
read-thread
used by this Selector
public void setMaxAcceptWorkerThreads(int maxAcceptWorkerThreads)
reader-thread
from domian.xml.public int getMaxAcceptWorkerThreads()
read-thread
used by this Selector
public void setMinAcceptQueueLength(int minAcceptQueueLength)
acceptor-queue-length
value
on this Selector
public int getMinAcceptQueueLength()
acceptor-queue-length
value
on this Selector
public void setMinReadQueueLength(int minReadQueueLength)
reader-queue-length
value
on this Selector
public int getMinReadQueueLength()
reader-queue-length
value
on this Selector
public void setMinProcessorQueueLength(int minProcessorQueueLength)
processor-queue-length
value
on this Selector
public int getMinProcessorQueueLength()
processor-queue-length
value
on this Selector
public void setUseDirectByteBuffer(boolean useDirectByteBuffer)
use-nio-non-blocking
by this Selector
public boolean getUseDirectByteBuffer()
use-nio-non-blocking
used by this
Selector
public void setProcessorWorkerThreadsTimeout(int timeout)
public int getProcessorWorkerThreadsTimeout()
public void setSelectorReadThreadsCount(int selectorReadThreadsCount)
public int getSelectorReadThreadsCount()
public void start() throws LifecycleException
Connector
start
in interface Lifecycle
start
in class Connector
LifecycleException
- if a fatal startup error occurspublic void stop() throws LifecycleException
Connector
stop
in interface Lifecycle
stop
in class Connector
LifecycleException
- if a fatal shutdown error occurspublic void setSecondsMaxAge(int sMaxAges)
FileCacheEntry
from the fileCache
public int getSecondsMaxAge()
public void setMaxCacheEntries(int mEntries)
public int getMaxCacheEntries()
public void setMinEntrySize(long mSize)
FileCacheEntry
can have.public long getMinEntrySize()
FileCacheEntry
can have.public void setMaxEntrySize(long mEntrySize)
FileCacheEntry
can have.public long getMaxEntrySize()
FileCacheEntry
can have.public void setMaxLargeCacheSize(long mCacheSize)
public long getMaxLargeCacheSize()
public void setMaxSmallCacheSize(long mCacheSize)
public long getMaxSmallCacheSize()
public boolean isFileCacheEnabled()
public void setFileCacheEnabled(boolean fileCacheEnabled)
public void setLargeFileCacheEnabled(boolean isLargeEnabled)
public boolean getLargeFileCacheEnabled()
public void setWebAppRootPath(String rootFolder)
public String getWebAppRootPath()
public void initialize() throws LifecycleException
initialize
in interface Connector
initialize
in class Connector
LifecycleException
- If this server was already initialized.public void setTruststore(String truststore)
truststore
- The truststore locationpublic String getTruststore()
public void setTruststoreType(String type)
type
- The truststore typepublic String getTruststoreType()
public void setKeystoreType(String type)
type
- The keystore typepublic String getKeystoreType()
public String getCrlFile()
public void setCrlFile(String crlFile)
crlFile
- The location of the CRL filepublic String getTrustAlgorithm()
public void setTrustAlgorithm(String trustAlgorithm)
trustAlgorithm
- The trust management algorithmpublic String getTrustMaxCertLength()
public void setTrustMaxCertLength(String trustMaxCertLength)
trustMaxCertLength
- The maximum number of non-self-issued
intermediate certificates that may exist in a certification pathpublic MapperListener getMapperListener()
public void configure(NetworkListener listener, boolean isSecure, HttpService httpService)
public void configureJKProperties(NetworkListener listener)
public void configureFileCache(FileCache fileCache)
fileCache
- public void configureThreadPool(ThreadPool pool)
pool
- the thread-pool configuration beanpublic boolean configureHttpListenerProperty(String propName, String propValue) throws NumberFormatException
NumberFormatException
public void setProxyHandler(String className)
public void requestStartEvent(javax.servlet.http.HttpServletRequest request, Host host, Context context)
requestStartEvent
in class Connector
request
- the request objecthost
- the virtual server to which the request was mappedcontext
- the Context to which the request was mappedpublic void requestEndEvent(javax.servlet.http.HttpServletRequest request, Host host, Context context, int statusCode)
requestEndEvent
in class Connector
request
- the request objecthost
- the virtual server to which the request was mappedcontext
- the Context to which the request was mappedstatusCode
- the response status codeCopyright © 2018. All rights reserved.