org.apache.coyote

Class RequestInfo

public class RequestInfo extends Object

Structure holding the Request and Response objects. It also holds statistical informations about request processing and provide management informations about the requests beeing 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 ). TODO: Request notifications will be registered here.

Author: Costin Manolache

Constructor Summary
RequestInfo(Request req)
Method Summary
longgetBytesReceived()
longgetBytesSent()
intgetContentLength()
StringgetCurrentQueryString()
StringgetCurrentUri()
intgetErrorCount()
RequestGroupInfogetGlobalProcessor()
longgetLastRequestProcessingTime()
StringgetMaxRequestUri()
longgetMaxTime()
StringgetMethod()
longgetProcessingTime()
StringgetProtocol()
StringgetRemoteAddr()
longgetRequestBytesReceived()
longgetRequestBytesSent()
intgetRequestCount()
longgetRequestProcessingTime()
ObjectNamegetRpName()
intgetServerPort()
intgetStage()
StringgetVirtualHost()
StringgetWorkerThreadName()
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 Detail

RequestInfo

public RequestInfo(Request req)

Method Detail

getBytesReceived

public long getBytesReceived()

getBytesSent

public long getBytesSent()

getContentLength

public int getContentLength()

getCurrentQueryString

public String getCurrentQueryString()

getCurrentUri

public String getCurrentUri()

getErrorCount

public int getErrorCount()

getGlobalProcessor

public RequestGroupInfo getGlobalProcessor()

getLastRequestProcessingTime

public long getLastRequestProcessingTime()

getMaxRequestUri

public String getMaxRequestUri()

getMaxTime

public long getMaxTime()

getMethod

public String getMethod()

getProcessingTime

public long getProcessingTime()

getProtocol

public String getProtocol()

getRemoteAddr

public String getRemoteAddr()

getRequestBytesReceived

public long getRequestBytesReceived()

getRequestBytesSent

public long getRequestBytesSent()

getRequestCount

public int getRequestCount()

getRequestProcessingTime

public long getRequestProcessingTime()

getRpName

public ObjectName getRpName()

getServerPort

public int getServerPort()

getStage

public int getStage()

getVirtualHost

public String getVirtualHost()

getWorkerThreadName

public String getWorkerThreadName()

setBytesReceived

public void setBytesReceived(long bytesReceived)

setBytesSent

public void setBytesSent(long bytesSent)

setErrorCount

public void setErrorCount(int errorCount)

setGlobalProcessor

public void setGlobalProcessor(RequestGroupInfo global)

setLastRequestProcessingTime

public void setLastRequestProcessingTime(long lastRequestProcessingTime)

setMaxRequestUri

public void setMaxRequestUri(String maxRequestUri)

setMaxTime

public void setMaxTime(long maxTime)

setProcessingTime

public void setProcessingTime(long processingTime)

setRequestCount

public void setRequestCount(int requestCount)

setRpName

public void setRpName(ObjectName rpName)

setStage

public void setStage(int stage)

setWorkerThreadName

public void setWorkerThreadName(String workerThreadName)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.