|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.tcp.RequestInfo
public class RequestInfo
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.
Constructor Summary | |
---|---|
RequestInfo(Request req)
Constructor |
Method Summary | |
---|---|
long |
getBytesReceived()
|
long |
getBytesSent()
|
int |
getContentLength()
|
long |
getCount200()
|
long |
getCount2xx()
|
long |
getCount302()
|
long |
getCount304()
|
long |
getCount3xx()
|
long |
getCount400()
|
long |
getCount401()
|
long |
getCount403()
|
long |
getCount404()
|
long |
getCount4xx()
|
long |
getCount503()
|
long |
getCount5xx()
|
long |
getCountOther()
|
String |
getCurrentQueryString()
|
String |
getCurrentUri()
|
int |
getErrorCount()
|
RequestGroupInfo |
getGlobalProcessor()
|
long |
getLastRequestCompletionTime()
Gets the time when the last request was completed. |
String |
getLastRequestMethod()
Gets the HTTP method of the last request serviced. |
String |
getLastRequestURI()
Gets the URI of the last request serviced. |
String |
getMaxRequestUri()
|
long |
getMaxTime()
|
String |
getMethod()
|
long |
getProcessingTime()
|
String |
getProtocol()
|
String |
getRemoteAddr()
|
long |
getRequestBytesReceived()
|
long |
getRequestBytesSent()
|
long |
getRequestCompletionTime()
Gets the time taken to complete the request associated with this RequestInfo. |
int |
getRequestCount()
|
long |
getRequestProcessingTime()
|
int |
getServerPort()
|
int |
getStage()
|
String |
getVirtualHost()
|
long |
getWorkerThreadID()
Gets the worker thread ID which is processing the request associated with this RequestInfo. |
void |
reset()
Resets this RequestInfo . |
void |
setBytesReceived(long bytesReceived)
|
void |
setBytesSent(long bytesSent)
|
void |
setCount200(long count200)
|
void |
setCount2xx(long count2xx)
|
void |
setCount302(long count302)
|
void |
setCount304(long count304)
|
void |
setCount3xx(long count3xx)
|
void |
setCount400(long count400)
|
void |
setCount401(long count401)
|
void |
setCount403(long count403)
|
void |
setCount404(long count404)
|
void |
setCount4xx(long count4xx)
|
void |
setCount503(long count503)
|
void |
setCount5xx(long count5xx)
|
void |
setCountOther(long countOther)
|
void |
setErrorCount(int errorCount)
|
void |
setGlobalProcessor(RequestGroupInfo global)
|
void |
setMaxRequestUri(String maxRequestUri)
|
void |
setMaxTime(long maxTime)
|
void |
setProcessingTime(long processingTime)
|
void |
setRequestCompletionTime(long completionTime)
Sets the time taken to complete the request associated with this RequestInfo. |
void |
setRequestCount(int requestCount)
|
void |
setStage(int stage)
|
void |
setWorkerThreadID(long workerThreadID)
Sets the worker thread ID responsible for processing the request associated with this RequestInfo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestInfo(Request req)
Method Detail |
---|
public RequestGroupInfo getGlobalProcessor()
public void setGlobalProcessor(RequestGroupInfo global)
public String getMethod()
public String getCurrentUri()
public String getCurrentQueryString()
public String getProtocol()
public String getVirtualHost()
public int getServerPort()
public String getRemoteAddr()
public int getContentLength()
public long getRequestBytesReceived()
public long getRequestBytesSent()
public long getRequestProcessingTime()
public int getStage()
public void setStage(int stage)
public long getBytesSent()
public void setBytesSent(long bytesSent)
public long getBytesReceived()
public void setBytesReceived(long bytesReceived)
public long getProcessingTime()
public void setProcessingTime(long processingTime)
public long getMaxTime()
public void setMaxTime(long maxTime)
public String getMaxRequestUri()
public void setMaxRequestUri(String maxRequestUri)
public int getRequestCount()
public void setRequestCount(int requestCount)
public int getErrorCount()
public void setErrorCount(int errorCount)
public long getCount2xx()
public void setCount2xx(long count2xx)
public long getCount3xx()
public void setCount3xx(long count3xx)
public long getCount4xx()
public void setCount4xx(long count4xx)
public long getCount5xx()
public void setCount5xx(long count5xx)
public long getCountOther()
public void setCountOther(long countOther)
public long getCount200()
public void setCount200(long count200)
public long getCount302()
public void setCount302(long count302)
public long getCount304()
public void setCount304(long count304)
public long getCount400()
public void setCount400(long count400)
public long getCount401()
public void setCount401(long count401)
public long getCount403()
public void setCount403(long count403)
public long getCount404()
public void setCount404(long count404)
public long getCount503()
public void setCount503(long count503)
public long getWorkerThreadID()
public void setWorkerThreadID(long workerThreadID)
workerThread
- The worker thread ispublic long getRequestCompletionTime()
public void setRequestCompletionTime(long completionTime)
public String getLastRequestURI()
public String getLastRequestMethod()
public long getLastRequestCompletionTime()
public void reset()
RequestInfo
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |