Class PECoyoteConnector

    • Field Detail

      • _logger

        protected static final Logger _logger
      • recycleObjects

        protected boolean recycleObjects
        Are we recycling objects
      • maxAcceptWorkerThreads

        protected int maxAcceptWorkerThreads
        The number of acceptor threads.
      • maxReadWorkerThreads

        protected int maxReadWorkerThreads
        The number of reader threads.
      • processorWorkerThreadsTimeout

        protected int processorWorkerThreadsTimeout
        The request timeout value used by the processor threads.
      • minAcceptQueueLength

        protected int minAcceptQueueLength
        The size of the accept queue.
      • minReadQueueLength

        protected int minReadQueueLength
        The size of the read queue
      • minProcessorQueueLength

        protected int minProcessorQueueLength
        The size of the processor queue.
      • useDirectByteBuffer

        protected boolean useDirectByteBuffer
        Use direct or non direct byte buffer.
      • ssBackLog

        protected int ssBackLog
        Server socket backlog.
      • grizzlyMonitor

        protected GrizzlyConfig grizzlyMonitor
        The monitoring classes used to gather stats.
      • mapperListener

        protected MapperListener mapperListener
        Mapper listener.
    • Constructor Detail

      • PECoyoteConnector

        public PECoyoteConnector​(WebContainer webContainer)
        Constructor
    • Method Detail

      • createRequest

        public Request createRequest()
        Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible ContractProvider.
        Specified by:
        createRequest in interface Connector
        Overrides:
        createRequest in class Connector
      • getKeepAliveTimeoutInSeconds

        public int getKeepAliveTimeoutInSeconds()
        Gets the number of seconds before a keep-alive connection that has been idle times out and is closed.
        Returns:
        Keep-alive timeout in number of seconds
      • setKeepAliveTimeoutInSeconds

        public void setKeepAliveTimeoutInSeconds​(int timeout)
        Sets the number of seconds before a keep-alive connection that has been idle times out and is closed.
        Parameters:
        timeout - Keep-alive timeout in number of seconds
      • getKeepAliveThreadCount

        public int getKeepAliveThreadCount()
        Gets the number of keep-alive threads.
        Returns:
        Number of keep-alive threads
      • setKeepAliveThreadCount

        public void setKeepAliveThreadCount​(int number)
        Sets the number of keep-alive threads
        Parameters:
        number - Number of keep-alive threads
      • setQueueSizeInBytes

        public void setQueueSizeInBytes​(int queueSizeInBytes)
        Set the maximum pending connection this Connector can handle.
      • getQueueSizeInBytes

        public int getQueueSizeInBytes()
        Return the maximum pending connection.
      • setSocketServerBacklog

        public void setSocketServerBacklog​(int ssBackLog)
        Set the SocketServer backlog.
      • getSocketServerBacklog

        public int getSocketServerBacklog()
        Return the maximum pending connection.
      • setRecycleObjects

        public void setRecycleObjects​(boolean recycleObjects)
        Set the recycle-tasks used by this Selector
      • getRecycleObjects

        public boolean getRecycleObjects()
        Return the recycle-tasks used by this Selector
      • setMaxReadWorkerThreads

        public void setMaxReadWorkerThreads​(int maxReadWorkerThreads)
        Set the reader-thread from domian.xml.
      • getMaxReadWorkerThreads

        public int getMaxReadWorkerThreads()
        Return the read-thread used by this Selector
      • setMaxAcceptWorkerThreads

        public void setMaxAcceptWorkerThreads​(int maxAcceptWorkerThreads)
        Set the reader-thread from domian.xml.
      • getMaxAcceptWorkerThreads

        public int getMaxAcceptWorkerThreads()
        Return the read-thread used by this Selector
      • setMinAcceptQueueLength

        public void setMinAcceptQueueLength​(int minAcceptQueueLength)
        Set the acceptor-queue-length value on this Selector
      • getMinAcceptQueueLength

        public int getMinAcceptQueueLength()
        Return the acceptor-queue-length value on this Selector
      • setMinReadQueueLength

        public void setMinReadQueueLength​(int minReadQueueLength)
        Set the reader-queue-length value on this Selector
      • getMinReadQueueLength

        public int getMinReadQueueLength()
        Return the reader-queue-length value on this Selector
      • setMinProcessorQueueLength

        public void setMinProcessorQueueLength​(int minProcessorQueueLength)
        Set the processor-queue-length value on this Selector
      • getMinProcessorQueueLength

        public int getMinProcessorQueueLength()
        Return the processor-queue-length value on this Selector
      • setUseDirectByteBuffer

        public void setUseDirectByteBuffer​(boolean useDirectByteBuffer)
        Set the use-nio-non-blocking by this Selector
      • getUseDirectByteBuffer

        public boolean getUseDirectByteBuffer()
        Return the use-nio-non-blocking used by this Selector
      • setProcessorWorkerThreadsTimeout

        public void setProcessorWorkerThreadsTimeout​(int timeout)
      • getProcessorWorkerThreadsTimeout

        public int getProcessorWorkerThreadsTimeout()
      • setSelectorReadThreadsCount

        public void setSelectorReadThreadsCount​(int selectorReadThreadsCount)
      • getSelectorReadThreadsCount

        public int getSelectorReadThreadsCount()
      • setSecondsMaxAge

        public void setSecondsMaxAge​(int sMaxAges)
        The timeout in seconds before remove a FileCacheEntry from the fileCache
      • getSecondsMaxAge

        public int getSecondsMaxAge()
      • setMaxCacheEntries

        public void setMaxCacheEntries​(int mEntries)
        Set the maximum entries this cache can contains.
      • getMaxCacheEntries

        public int getMaxCacheEntries()
        Return the maximum entries this cache can contains.
      • setMinEntrySize

        public void setMinEntrySize​(long mSize)
        Set the maximum size a FileCacheEntry can have.
      • getMinEntrySize

        public long getMinEntrySize()
        Get the maximum size a FileCacheEntry can have.
      • setMaxEntrySize

        public void setMaxEntrySize​(long mEntrySize)
        Set the maximum size a FileCacheEntry can have.
      • getMaxEntrySize

        public long getMaxEntrySize()
        Get the maximum size a FileCacheEntry can have.
      • setMaxLargeCacheSize

        public void setMaxLargeCacheSize​(long mCacheSize)
        Set the maximum cache size
      • getMaxLargeCacheSize

        public long getMaxLargeCacheSize()
        Get the maximum cache size
      • setMaxSmallCacheSize

        public void setMaxSmallCacheSize​(long mCacheSize)
        Set the maximum cache size
      • getMaxSmallCacheSize

        public long getMaxSmallCacheSize()
        Get the maximum cache size
      • isFileCacheEnabled

        public boolean isFileCacheEnabled()
        Is the fileCache enabled.
      • setFileCacheEnabled

        public void setFileCacheEnabled​(boolean fileCacheEnabled)
        Is the file caching mechanism enabled.
      • setLargeFileCacheEnabled

        public void setLargeFileCacheEnabled​(boolean isLargeEnabled)
        Is the large file cache support enabled.
      • getLargeFileCacheEnabled

        public boolean getLargeFileCacheEnabled()
        Is the large file cache support enabled.
      • setWebAppRootPath

        public void setWebAppRootPath​(String rootFolder)
        Set the documenr root folder
      • getWebAppRootPath

        public String getWebAppRootPath()
        Return the folder's root where application are deployed.
      • setTruststore

        public void setTruststore​(String truststore)
        Sets the truststore location of this connector.
        Parameters:
        truststore - The truststore location
      • getTruststore

        public String getTruststore()
        Gets the truststore location of this connector.
        Returns:
        The truststore location
      • setTruststoreType

        public void setTruststoreType​(String type)
        Sets the truststore type of this connector.
        Parameters:
        type - The truststore type
      • getTruststoreType

        public String getTruststoreType()
        Gets the truststore type of this connector.
        Returns:
        The truststore type
      • setKeystoreType

        public void setKeystoreType​(String type)
        Sets the keystore type of this connector.
        Parameters:
        type - The keystore type
      • getKeystoreType

        public String getKeystoreType()
        Gets the keystore type of this connector.
        Returns:
        The keystore type
      • getCrlFile

        public String getCrlFile()
        Gets the location of the CRL file
        Returns:
        The location of the CRL file
      • setCrlFile

        public void setCrlFile​(String crlFile)
        Sets the location of the CRL file.
        Parameters:
        crlFile - The location of the CRL file
      • getTrustAlgorithm

        public String getTrustAlgorithm()
        Gets the trust management algorithm
        Returns:
        The trust management algorithm
      • setTrustAlgorithm

        public void setTrustAlgorithm​(String trustAlgorithm)
        Sets the trust management algorithm
        Parameters:
        trustAlgorithm - The trust management algorithm
      • getTrustMaxCertLength

        public String getTrustMaxCertLength()
        Gets the maximum number of non-self-issued intermediate certificates that may exist in a certification path
        Returns:
        The maximum number of non-self-issued intermediate certificates that may exist in a certification path
      • setTrustMaxCertLength

        public void setTrustMaxCertLength​(String trustMaxCertLength)
        Sets the maximum number of non-self-issued intermediate certificates that may exist in a certification path
        Parameters:
        trustMaxCertLength - The maximum number of non-self-issued intermediate certificates that may exist in a certification path
      • getMapperListener

        public MapperListener getMapperListener()
        Gets the MapperListener of this connector.
        Returns:
        The MapperListener of this connector
      • configureJKProperties

        public void configureJKProperties​(NetworkListener listener)
      • configureFileCache

        public void configureFileCache​(FileCache fileCache)
        Configure the Grizzly FileCache mechanism
        Parameters:
        fileCache -
      • configureThreadPool

        public void configureThreadPool​(ThreadPool pool)
        Configures this connector from the given thread-pool configuration bean.
        Parameters:
        pool - the thread-pool configuration bean
      • configHttpProperties

        public void configHttpProperties​(Http http,
                                         Transport transport,
                                         Ssl ssl)
      • setProxyHandler

        public void setProxyHandler​(String className)
      • requestStartEvent

        public void requestStartEvent​(jakarta.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.
        Overrides:
        requestStartEvent in class Connector
        Parameters:
        request - the request object
        host - the virtual server to which the request was mapped
        context - the Context to which the request was mapped
      • requestEndEvent

        public void requestEndEvent​(jakarta.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.
        Overrides:
        requestEndEvent in class Connector
        Parameters:
        request - the request object
        host - the virtual server to which the request was mapped
        context - the Context to which the request was mapped
        statusCode - the response status code