Class RequestInfo
java.lang.Object
org.apache.coyote.RequestInfo
Structure 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 its own RequestProcessorMX ).
- Author:
- Costin Manolache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongintintlonglonglongObtain the remote address for this connection as reported by an intermediate proxy (if any).longlongintlongintintgetStage()voidsetBytesReceived(long bytesReceived) voidsetBytesSent(long bytesSent) voidsetErrorCount(int errorCount) voidsetGlobalProcessor(RequestGroupInfo global) voidsetLastRequestProcessingTime(long lastRequestProcessingTime) voidsetMaxRequestUri(String maxRequestUri) voidsetMaxTime(long maxTime) voidsetProcessingTime(long processingTime) voidsetRequestCount(int requestCount) voidsetRpName(ObjectName rpName) voidsetStage(int stage) voidsetWorkerThreadName(String workerThreadName)
-
Constructor Details
-
RequestInfo
-
-
Method Details
-
getGlobalProcessor
-
setGlobalProcessor
-
getMethod
-
getCurrentUri
-
getCurrentQueryString
-
getProtocol
-
getVirtualHost
-
getServerPort
public int getServerPort() -
getRemoteAddr
-
getPeerAddr
-
getRemoteAddrForwarded
Obtain the remote address for this connection as reported by an intermediate proxy (if any).- Returns:
- The remote address for 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
-
setMaxRequestUri
-
getRequestCount
public int getRequestCount() -
setRequestCount
public void setRequestCount(int requestCount) -
getErrorCount
public int getErrorCount() -
setErrorCount
public void setErrorCount(int errorCount) -
getWorkerThreadName
-
getRpName
-
getLastRequestProcessingTime
public long getLastRequestProcessingTime() -
setWorkerThreadName
-
setRpName
-
setLastRequestProcessingTime
public void setLastRequestProcessingTime(long lastRequestProcessingTime)
-