|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.connector.Connector
com.sun.enterprise.web.connector.coyote.PECoyoteConnector
public class PECoyoteConnector
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
_logger
|
protected static java.util.ResourceBundle |
_rb
|
protected GrizzlyConfig |
grizzlyMonitor
The monitoring classes used to gather stats. |
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 |
minProcessorWorkerThreadsIncrement
The increment number used by the processor threads. |
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. |
| Fields inherited from class org.apache.catalina.connector.Connector |
|---|
authPassthroughEnabled, container, domain, initialized, lifecycle, log, mapper, mapperListener, maxParameterCount, minProcessors, mserver, oname, proxyHandler, sm |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
PECoyoteConnector(WebContainer webContainer)
Constructor |
|
| Method Summary | |
|---|---|
void |
configHttpProperties(com.sun.grizzly.config.dom.Http http,
com.sun.grizzly.config.dom.Transport transport,
com.sun.grizzly.config.dom.Ssl ssl)
|
void |
configure(com.sun.grizzly.config.dom.NetworkListener listener,
boolean isSecure,
HttpService httpService)
|
void |
configureFileCache(com.sun.grizzly.config.dom.FileCache fileCache)
Configure the Grizzly FileCache mechanism |
boolean |
configureHttpListenerProperty(java.lang.String propName,
java.lang.String propValue)
Configure http-listener property. |
void |
configureJKProperties(com.sun.grizzly.config.dom.NetworkListener listener)
|
void |
configureThreadPool(com.sun.grizzly.config.dom.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. |
java.lang.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. |
java.lang.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 |
getMinProcessorWorkerThreadsIncrement()
|
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. |
java.lang.String |
getTrustAlgorithm()
Gets the trust management algorithm |
java.lang.String |
getTrustMaxCertLength()
Gets the maximum number of non-self-issued intermediate certificates that may exist in a certification path |
java.lang.String |
getTruststore()
Gets the truststore location of this connector. |
java.lang.String |
getTruststoreType()
Gets the truststore type of this connector. |
boolean |
getUseDirectByteBuffer()
Return the use-nio-non-blocking used by this
Selector |
java.lang.String |
getWebAppRootPath()
Return the folder's root where application are deployed. |
void |
initialize()
Initialize this connector. |
boolean |
isChunkingDisabled()
|
boolean |
isFileCacheEnabled()
Is the fileCache enabled. |
void |
requestEndEvent(javax.servlet.http.HttpServletRequest request,
Host host,
Context context,
int statusCode,
com.sun.grizzly.tcp.RequestInfo reqInfo)
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 |
setChunkingDisabled(boolean chunkingDisabled)
Enables or disables chunked encoding for any responses returned by this connector. |
void |
setCrlFile(java.lang.String crlFile)
Sets the location of the CRL file. |
void |
setFileCacheEnabled(boolean fileCacheEnabled)
Is the file caching mechanism enabled. |
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(java.lang.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(java.lang.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(java.lang.String trustAlgorithm)
Sets the trust management algorithm |
void |
setTrustMaxCertLength(java.lang.String trustMaxCertLength)
Sets the maximum number of non-self-issued intermediate certificates that may exist in a certification path |
void |
setTruststore(java.lang.String truststore)
Sets the truststore location of this connector. |
void |
setTruststoreType(java.lang.String type)
Sets the truststore type of this connector. |
void |
setUseDirectByteBuffer(boolean useDirectByteBuffer)
Set the use-nio-non-blocking by this Selector |
void |
setWebAppRootPath(java.lang.String rootFolder)
Set the documenr root folder |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger _logger
protected static final java.util.ResourceBundle _rb
protected boolean recycleObjects
protected int maxAcceptWorkerThreads
protected int maxReadWorkerThreads
protected int processorWorkerThreadsTimeout
protected int minProcessorWorkerThreadsIncrement
protected int minAcceptQueueLength
protected int minReadQueueLength
protected int minProcessorQueueLength
protected boolean useDirectByteBuffer
protected int ssBackLog
protected GrizzlyConfig grizzlyMonitor
| Constructor Detail |
|---|
public PECoyoteConnector(WebContainer webContainer)
| Method Detail |
|---|
public void setChunkingDisabled(boolean chunkingDisabled)
chunkingDisabled - true if chunking is to be disabled, false
otherwisepublic boolean isChunkingDisabled()
public Request createRequest()
createRequest in interface ConnectorcreateRequest in class Connectorpublic Response createResponse()
createResponse in interface ConnectorcreateResponse in class Connectorpublic int getKeepAliveTimeoutInSeconds()
public void setKeepAliveTimeoutInSeconds(int timeout)
timeout - Keep-alive timeout in number of secondspublic int getKeepAliveThreadCount()
public 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 int getMinProcessorWorkerThreadsIncrement()
public void setSelectorReadThreadsCount(int selectorReadThreadsCount)
public int getSelectorReadThreadsCount()
public void start()
throws LifecycleException
start in interface Lifecyclestart in class ConnectorLifecycleException
public void stop()
throws LifecycleException
stop in interface Lifecyclestop in class ConnectorLifecycleExceptionpublic 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(java.lang.String rootFolder)
public java.lang.String getWebAppRootPath()
public void initialize()
throws LifecycleException
initialize in interface Connectorinitialize in class ConnectorLifecycleExceptionpublic void setTruststore(java.lang.String truststore)
truststore - The truststore locationpublic java.lang.String getTruststore()
public void setTruststoreType(java.lang.String type)
type - The truststore typepublic java.lang.String getTruststoreType()
public void setKeystoreType(java.lang.String type)
type - The keystore typepublic java.lang.String getKeystoreType()
public java.lang.String getCrlFile()
public void setCrlFile(java.lang.String crlFile)
crlFile - The location of the CRL filepublic java.lang.String getTrustAlgorithm()
public void setTrustAlgorithm(java.lang.String trustAlgorithm)
trustAlgorithm - The trust management algorithmpublic java.lang.String getTrustMaxCertLength()
public void setTrustMaxCertLength(java.lang.String trustMaxCertLength)
trustMaxCertLength - The maximum number of non-self-issued
intermediate certificates that may exist in a certification pathpublic MapperListener getMapperListener()
public void configure(com.sun.grizzly.config.dom.NetworkListener listener,
boolean isSecure,
HttpService httpService)
public void configureJKProperties(com.sun.grizzly.config.dom.NetworkListener listener)
public void configureFileCache(com.sun.grizzly.config.dom.FileCache fileCache)
fileCache - public void configureThreadPool(com.sun.grizzly.config.dom.ThreadPool pool)
pool - the thread-pool configuration bean
public boolean configureHttpListenerProperty(java.lang.String propName,
java.lang.String propValue)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
public void configHttpProperties(com.sun.grizzly.config.dom.Http http,
com.sun.grizzly.config.dom.Transport transport,
com.sun.grizzly.config.dom.Ssl ssl)
public void setProxyHandler(java.lang.String className)
public void requestStartEvent(javax.servlet.http.HttpServletRequest request,
Host host,
Context context)
requestStartEvent in class Connectorrequest - the request objecthost - the virtual server to which the request was mappedcontext - the Context to which the request was mapped
public void requestEndEvent(javax.servlet.http.HttpServletRequest request,
Host host,
Context context,
int statusCode,
com.sun.grizzly.tcp.RequestInfo reqInfo)
requestEndEvent in class Connectorrequest - the request objecthost - the virtual server to which the request was mappedcontext - the Context to which the request was mappedstatusCode - the response status code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||