Fields Summary |
---|
private static final String | USE_COYOTE_CONNECTOR |
private static final String | GRIZZLY_CONNECTOR |
protected boolean | recycleObjectsAre we recycling objects |
protected int | maxAcceptWorkerThreadsThe number of acceptor threads. |
protected int | maxReadWorkerThreadsThe number of reader threads. |
protected int | processorWorkerThreadsTimeoutThe request timeout value used by the processor threads. |
protected int | minProcessorWorkerThreadsIncrementThe increment number used by the processor threads. |
protected int | minAcceptQueueLengthThe size of the accept queue. |
protected int | minReadQueueLengthThe size of the read queue |
protected int | minProcessorQueueLengthThe size of the processor queue. |
protected boolean | useDirectByteBufferUse direct or non direct byte buffer. |
private boolean | coyoteOn |
private int | keepAliveTimeoutInSeconds |
private int | keepAliveThreadCount |
private boolean | chunkingDisabled |
private int | queueSizeInBytesMaximum pending connection before refusing requests. |
protected int | ssBackLogServer socket backlog. |
public int | selectorReadThreadsCountSet the number of Selector used by Grizzly. |
protected String | defaultResponseTypeThe default response-type |
protected String | forcedRequestTypeThe forced request-type |
private com.sun.enterprise.web.connector.extension.GrizzlyConfig | grizzlyMonitorThe monitoring classes used to gather stats. |
private String | domainThe JMX domain. |
private String | rootFolderThe root folder where application are deployed |
private String | nameThe http-listener name |
private int | secondsMaxAgeTimeout before remove the static resource from the cache. |
private int | maxCacheEntriesThe maximum entries in the fileCache |
private long | minEntrySizeThe maximum size of a cached resources. |
private long | maxEntrySizeThe maximum size of a cached resources. |
private long | maxLargeFileCacheSizeThe maximum cached bytes |
private long | maxSmallFileCacheSizeThe maximum cached bytes |
private boolean | fileCacheEnabledIs the FileCache enabled. |
private boolean | isLargeFileCacheEnabledIs the large FileCache enabled. |
private String | crlFileLocation of the CRL file |
private String | trustAlgorithmThe trust management algorithm |
private String | trustMaxCertLengthThe maximum number of non-self-issued intermediate
certificates that may exist in a certification path |
private Logger | loggerThe logger used by the ProtocolHandler |
Methods Summary |
---|
public org.apache.catalina.Request | createRequest()Create (or allocate) and return a Request object suitable for
specifying the contents of a Request to the responsible Container.
PwcCoyoteRequest request = new PwcCoyoteRequest();
request.setConnector(this);
return (request);
|
public org.apache.catalina.Response | createResponse()Creates and returns Response object.
PECoyoteResponse response = new PECoyoteResponse(isChunkingDisabled());
response.setConnector(this);
return (response);
|
public java.lang.String | getCrlFile()Gets the location of the CRL file
return crlFile;
|
public java.lang.String | getDefaultResponseType()Return the default response type used
return defaultResponseType;
|
public java.lang.String | getForcedRequestType()Return the default request type used
return forcedRequestType;
|
public int | getKeepAliveThreadCount()Gets the number of keep-alive threads.
return keepAliveThreadCount;
|
public int | getKeepAliveTimeoutInSeconds()Gets the number of seconds before a keep-alive connection that has
been idle times out and is closed.
return keepAliveTimeoutInSeconds;
|
public java.lang.String | getKeystoreType()Gets the keystore type of this connector.
return (String) getProperty("keystoreType");
|
public boolean | getLargeFileCacheEnabled()Is the large file cache support enabled.
return isLargeFileCacheEnabled;
|
public org.apache.coyote.tomcat5.MapperListener | getMapperListener()Gets the MapperListener of this connector.
return mapperListener;
|
public int | getMaxAcceptWorkerThreads()Return the read-thread used by this Selector
return maxAcceptWorkerThreads;
|
public int | getMaxCacheEntries()Return the maximum entries this cache can contains.
return maxCacheEntries;
|
public long | getMaxEntrySize()Get the maximum size a FileCacheEntry can have.
return maxEntrySize;
|
public long | getMaxLargeCacheSize()Get the maximum cache size
return maxLargeFileCacheSize;
|
public int | getMaxReadWorkerThreads()Return the read-thread used by this Selector
return maxReadWorkerThreads;
|
public long | getMaxSmallCacheSize()Get the maximum cache size
return maxSmallFileCacheSize;
|
public int | getMinAcceptQueueLength()Return the acceptor-queue-length value
on this Selector
return minAcceptQueueLength;
|
public long | getMinEntrySize()Get the maximum size a FileCacheEntry can have.
return minEntrySize;
|
public int | getMinProcessorQueueLength()Return the processor-queue-length value
on this Selector
return minProcessorQueueLength;
|
public int | getMinProcessorWorkerThreadsIncrement()
return minProcessorWorkerThreadsIncrement;
|
public int | getMinReadQueueLength()Return the reader-queue-length value
on this Selector
return minReadQueueLength;
|
public java.lang.String | getName()Get the name of this connector;
return name;
|
public int | getProcessorWorkerThreadsTimeout()
return processorWorkerThreadsTimeout;
|
public int | getQueueSizeInBytes()Return the maximum pending connection.
return queueSizeInBytes;
|
public boolean | getRecycleObjects()Return the recycle-tasks used by this
Selector
return recycleObjects;
|
public int | getSocketServerBacklog()Return the maximum pending connection.
return ssBackLog;
|
public java.lang.String | getTrustAlgorithm()Gets the trust management algorithm
return trustAlgorithm;
|
public java.lang.String | getTrustMaxCertLength()Gets the maximum number of non-self-issued intermediate
certificates that may exist in a certification path
return trustMaxCertLength;
|
public java.lang.String | getTruststore()Gets the truststore location of this connector.
return (String) getProperty("truststore");
|
public java.lang.String | getTruststoreType()Gets the truststore type of this connector.
return (String) getProperty("truststoreType");
|
public boolean | getUseDirectByteBuffer()Return the use-nio-non-blocking used by this
Selector
return useDirectByteBuffer;
|
public java.lang.String | getWebAppRootPath()Return the folder's root where application are deployed.
return rootFolder;
|
public void | initialize()Initialize this connector.
super.initialize();
if ( !getProtocolHandler().getClass()
.getName().equals(GRIZZLY_CONNECTOR)){
return;
}
// Set the monitoring.
grizzlyMonitor = new GrizzlyConfig(domain,getPort());
// Set the logger
try{
Method loggerMethod = getProtocolHandler().getClass().getMethod
("setLogger", new Class[]{java.util.logging.Logger.class});
loggerMethod.invoke(getProtocolHandler(), new Object[]{logger});
} catch(Exception ex) {
logger.log(Level.WARNING,
"Unable to set logger on " + getProtocolHandler(), ex);
}
|
public boolean | isChunkingDisabled()
return this.chunkingDisabled;
|
public boolean | isFileCacheEnabled()Is the fileCache enabled.
return fileCacheEnabled;
|
public void | setChunkingDisabled(boolean chunkingDisabled)Enables or disables chunked encoding for any responses returned by this
Connector.
this.chunkingDisabled = chunkingDisabled;
|
public void | setCrlFile(java.lang.String crlFile)Sets the location of the CRL file.
this.crlFile = crlFile;
setProperty("crlFile", crlFile);
|
public void | setDefaultResponseType(java.lang.String defaultResponseType)Set the default response type used. Specified as a semi-colon
delimited string consisting of content-type, encoding,
language, charset
this.defaultResponseType = defaultResponseType;
setProperty("defaultResponseType", defaultResponseType);
|
public void | setDomain(java.lang.String domain)Set the domain of this object.
this.domain = domain;
|
public void | setFileCacheEnabled(boolean fileCacheEnabled)Is the file caching mechanism enabled.
this.fileCacheEnabled = fileCacheEnabled;
setProperty("fileCacheEnabled",String.valueOf(fileCacheEnabled));
|
public void | setForcedRequestType(java.lang.String forcedResponseType)Sets the forced request type, which is forced onto requests that
do not already specify any MIME type.
this.forcedRequestType = forcedResponseType;
setProperty("forcedRequestType", forcedResponseType);
|
public void | setKeepAliveThreadCount(int threadCount)Sets the number of keep-alive threads.
keepAliveThreadCount = threadCount;
setProperty("keepAliveThreadCount", String.valueOf(threadCount));
|
public void | setKeepAliveTimeoutInSeconds(int timeout)Sets the number of seconds before a keep-alive connection that has
been idle times out and is closed.
keepAliveTimeoutInSeconds = timeout;
setProperty("keepAliveTimeoutInSeconds", String.valueOf(timeout));
|
public void | setKeystoreType(java.lang.String type)Sets the keystore type of this connector.
setProperty("keystoreType", type);
|
public void | setLargeFileCacheEnabled(boolean isLargeEnabled)Is the large file cache support enabled.
this.isLargeFileCacheEnabled = isLargeEnabled;
setProperty("largeFileCacheEnabled",
String.valueOf(isLargeFileCacheEnabled));
|
public void | setLogger(java.util.logging.Logger logger)Set the Logger of the ProtocolHandler instance
used by this class.
this.logger = logger;
|
public void | setMaxAcceptWorkerThreads(int maxAcceptWorkerThreads)Set the reader-thread from domian.xml.
this.maxAcceptWorkerThreads = maxAcceptWorkerThreads;
setProperty("maxAcceptWorkerThreads",
String.valueOf(maxAcceptWorkerThreads));
|
public void | setMaxCacheEntries(int mEntries)Set the maximum entries this cache can contains.
maxCacheEntries = mEntries;
setProperty("maxCacheEntries", String.valueOf(maxCacheEntries));
|
public void | setMaxEntrySize(long mEntrySize)Set the maximum size a FileCacheEntry can have.
maxEntrySize = mEntrySize;
setProperty("maxEntrySize", String.valueOf(maxEntrySize));
|
public void | setMaxLargeCacheSize(long mCacheSize)Set the maximum cache size
maxLargeFileCacheSize = mCacheSize;
setProperty("maxLargeFileCacheSize",
String.valueOf(maxLargeFileCacheSize));
|
public void | setMaxReadWorkerThreads(int maxReadWorkerThreads)Set the reader-thread from domian.xml.
this.maxReadWorkerThreads = maxReadWorkerThreads;
setProperty("maxReadWorkerThreads",
String.valueOf(maxReadWorkerThreads));
|
public void | setMaxSmallCacheSize(long mCacheSize)Set the maximum cache size
maxSmallFileCacheSize = mCacheSize;
setProperty("maxSmallFileCacheSize",
String.valueOf(maxSmallFileCacheSize));
|
public void | setMinAcceptQueueLength(int minAcceptQueueLength)Set the acceptor-queue-length value
on this Selector
this.minAcceptQueueLength = minAcceptQueueLength;
setProperty("minAcceptQueueLength",
String.valueOf(minAcceptQueueLength));
|
public void | setMinEntrySize(long mSize)Set the maximum size a FileCacheEntry can have.
minEntrySize = mSize;
setProperty("minEntrySize", String.valueOf(minEntrySize));
|
public void | setMinProcessorQueueLength(int minProcessorQueueLength)Set the processor-queue-length value
on this Selector
this.minProcessorQueueLength = minProcessorQueueLength;
setProperty("minProcessorQueueLength",
String.valueOf(minProcessorQueueLength));
|
public void | setMinReadQueueLength(int minReadQueueLength)Set the reader-queue-length value
on this Selector
this.minReadQueueLength = minReadQueueLength;
setProperty("minReadQueueLength",
String.valueOf(minReadQueueLength));
|
public void | setName(java.lang.String name)Set the name of this connector.
this.name = name;
|
public void | setProcessorWorkerThreadsIncrement(int increment)
this.minProcessorWorkerThreadsIncrement = increment;
setProperty("processorThreadsIncrement",
String.valueOf(increment));
|
public void | setProcessorWorkerThreadsTimeout(int timeout)
this.processorWorkerThreadsTimeout = timeout;
setProperty("processorWorkerThreadsTimeout",
String.valueOf(timeout));
|
public void | setQueueSizeInBytes(int queueSizeInBytes)Set the maximum pending connection this Connector
can handle.
this.queueSizeInBytes = queueSizeInBytes;
setProperty("queueSizeInBytes", queueSizeInBytes);
|
public void | setRecycleObjects(boolean recycleObjects)Set the recycle-tasks used by this Selector
this.recycleObjects= recycleObjects;
setProperty("recycleObjects",
String.valueOf(recycleObjects));
|
public void | setSecondsMaxAge(int sMaxAges)The timeout in seconds before remove a FileCacheEntry
from the fileCache
secondsMaxAge = sMaxAges;
setProperty("secondsMaxAge", String.valueOf(secondsMaxAge));
|
public void | setSelectorReadThreadsCount(int selectorReadThreadsCount)
setProperty("selectorReadThreadsCount",
String.valueOf(selectorReadThreadsCount));
|
public void | setSocketServerBacklog(int ssBackLog)Set the SocketServer backlog.
this.ssBackLog = ssBackLog;
setProperty("socketServerBacklog", ssBackLog);
|
public void | setTrustAlgorithm(java.lang.String trustAlgorithm)Sets the trust management algorithm
this.trustAlgorithm = trustAlgorithm;
setProperty("truststoreAlgorithm", trustAlgorithm);
|
public void | setTrustMaxCertLength(java.lang.String trustMaxCertLength)Sets the maximum number of non-self-issued intermediate
certificates that may exist in a certification path
this.trustMaxCertLength = trustMaxCertLength;
setProperty("trustMaxCertLength", trustMaxCertLength);
|
public void | setTruststore(java.lang.String truststore)Sets the truststore location of this connector.
setProperty("truststore", truststore);
|
public void | setTruststoreType(java.lang.String type)Sets the truststore type of this connector.
setProperty("truststoreType", type);
|
public void | setUseDirectByteBuffer(boolean useDirectByteBuffer)Set the use-nio-non-blocking by this Selector
this.useDirectByteBuffer = useDirectByteBuffer;
setProperty("useDirectByteBuffer",
String.valueOf(useDirectByteBuffer));
|
public void | setWebAppRootPath(java.lang.String rootFolder)Set the documenr root folder
this.rootFolder = rootFolder;
setProperty("webAppRootPath",rootFolder);
|
public void | start()
super.start();
if ( grizzlyMonitor != null ) {
grizzlyMonitor.initConfig();
grizzlyMonitor.registerMonitoringLevelEvents();
}
|
public void | stop()
super.stop();
if ( grizzlyMonitor != null ) {
grizzlyMonitor.unregisterMonitoringLevelEvents();
}
|