Package org.apache.coyote
Class RequestInfo
- java.lang.Object
-
- org.apache.coyote.RequestInfo
-
public class RequestInfo extends java.lang.ObjectStructure holding the Request and Response objects. It also holds statistical information about request processing and provide management information about the requests being processed. Each thread uses a Request/Response pair that is recycled on each request. This object provides a place to collect global low-level statistics - without having to deal with synchronization ( since each thread will have it's own RequestProcessorMX ).- Author:
- Costin Manolache
-
-
Constructor Summary
Constructors Constructor Description RequestInfo(Request req)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBytesReceived()longgetBytesSent()intgetContentLength()java.lang.StringgetCurrentQueryString()java.lang.StringgetCurrentUri()intgetErrorCount()RequestGroupInfogetGlobalProcessor()longgetLastRequestProcessingTime()java.lang.StringgetMaxRequestUri()longgetMaxTime()java.lang.StringgetMethod()java.lang.StringgetPeerAddr()longgetProcessingTime()java.lang.StringgetProtocol()java.lang.StringgetRemoteAddr()java.lang.StringgetRemoteAddrForwarded()Obtain the remote address for this connection as reported by an intermediate proxy (if any).longgetRequestBytesReceived()longgetRequestBytesSent()intgetRequestCount()longgetRequestProcessingTime()javax.management.ObjectNamegetRpName()intgetServerPort()intgetStage()java.lang.StringgetVirtualHost()java.lang.StringgetWorkerThreadName()voidsetBytesReceived(long bytesReceived)voidsetBytesSent(long bytesSent)voidsetErrorCount(int errorCount)voidsetGlobalProcessor(RequestGroupInfo global)voidsetLastRequestProcessingTime(long lastRequestProcessingTime)voidsetMaxRequestUri(java.lang.String maxRequestUri)voidsetMaxTime(long maxTime)voidsetProcessingTime(long processingTime)voidsetRequestCount(int requestCount)voidsetRpName(javax.management.ObjectName rpName)voidsetStage(int stage)voidsetWorkerThreadName(java.lang.String workerThreadName)
-
-
-
Constructor Detail
-
RequestInfo
public RequestInfo(Request req)
-
-
Method Detail
-
getGlobalProcessor
public RequestGroupInfo getGlobalProcessor()
-
setGlobalProcessor
public void setGlobalProcessor(RequestGroupInfo global)
-
getMethod
public java.lang.String getMethod()
-
getCurrentUri
public java.lang.String getCurrentUri()
-
getCurrentQueryString
public java.lang.String getCurrentQueryString()
-
getProtocol
public java.lang.String getProtocol()
-
getVirtualHost
public java.lang.String getVirtualHost()
-
getServerPort
public int getServerPort()
-
getRemoteAddr
public java.lang.String getRemoteAddr()
-
getPeerAddr
public java.lang.String getPeerAddr()
-
getRemoteAddrForwarded
public java.lang.String getRemoteAddrForwarded()
Obtain the remote address for this connection as reported by an intermediate proxy (if any).- Returns:
- The remote address for the this connection
-
getContentLength
public int getContentLength()
-
getRequestBytesReceived
public long getRequestBytesReceived()
-
getRequestBytesSent
public long getRequestBytesSent()
-
getRequestProcessingTime
public long getRequestProcessingTime()
-
getStage
public int getStage()
-
setStage
public void setStage(int stage)
-
getBytesSent
public long getBytesSent()
-
setBytesSent
public void setBytesSent(long bytesSent)
-
getBytesReceived
public long getBytesReceived()
-
setBytesReceived
public void setBytesReceived(long bytesReceived)
-
getProcessingTime
public long getProcessingTime()
-
setProcessingTime
public void setProcessingTime(long processingTime)
-
getMaxTime
public long getMaxTime()
-
setMaxTime
public void setMaxTime(long maxTime)
-
getMaxRequestUri
public java.lang.String getMaxRequestUri()
-
setMaxRequestUri
public void setMaxRequestUri(java.lang.String maxRequestUri)
-
getRequestCount
public int getRequestCount()
-
setRequestCount
public void setRequestCount(int requestCount)
-
getErrorCount
public int getErrorCount()
-
setErrorCount
public void setErrorCount(int errorCount)
-
getWorkerThreadName
public java.lang.String getWorkerThreadName()
-
getRpName
public javax.management.ObjectName getRpName()
-
getLastRequestProcessingTime
public long getLastRequestProcessingTime()
-
setWorkerThreadName
public void setWorkerThreadName(java.lang.String workerThreadName)
-
setRpName
public void setRpName(javax.management.ObjectName rpName)
-
setLastRequestProcessingTime
public void setLastRequestProcessingTime(long lastRequestProcessingTime)
-
-