Methods Summary |
---|
public long | getBytesReceived()
return bytesReceived;
|
public long | getBytesSent()
return bytesSent;
|
public int | getContentLength()
return req.getContentLength();
|
public java.lang.String | getCurrentQueryString()
return req.queryString().toString();
|
public java.lang.String | getCurrentUri()
return req.requestURI().toString();
|
public int | getErrorCount()
return errorCount;
|
public RequestGroupInfo | getGlobalProcessor()
return global;
|
public java.lang.String | getMaxRequestUri()
return maxRequestUri;
|
public long | getMaxTime()
return maxTime;
|
public java.lang.String | getMethod()
// -------------------- Information about the current request -----------
// This is usefull for long-running requests only
return req.method().toString();
|
public long | getProcessingTime()
return processingTime;
|
public java.lang.String | getProtocol()
return req.protocol().toString();
|
public java.lang.String | getRemoteAddr()
req.action(ActionCode.ACTION_REQ_HOST_ADDR_ATTRIBUTE, null);
return req.remoteAddr().toString();
|
public long | getRequestBytesReceived()
return req.getBytesRead();
|
public long | getRequestBytesSent()
return req.getResponse().getBytesWritten();
|
public int | getRequestCount()
return requestCount;
|
public long | getRequestProcessingTime()
return (System.currentTimeMillis() - req.getStartTime());
|
public javax.management.ObjectName | getRpName()
return rpName;
|
public int | getServerPort()
return req.getServerPort();
|
public int | getStage()
return stage;
|
public java.lang.String | getVirtualHost()
return req.serverName().toString();
|
public java.lang.String | getWorkerThreadName()
return workerThreadName;
|
public void | setBytesReceived(long bytesReceived)
this.bytesReceived = bytesReceived;
|
public void | setBytesSent(long bytesSent)
this.bytesSent = bytesSent;
|
public void | setErrorCount(int errorCount)
this.errorCount = errorCount;
|
public void | setGlobalProcessor(RequestGroupInfo global)
if( global != null) {
this.global=global;
global.addRequestProcessor( this );
} else {
if (this.global != null) {
this.global.removeRequestProcessor( this );
this.global = null;
}
}
|
public void | setMaxRequestUri(java.lang.String maxRequestUri)
this.maxRequestUri = maxRequestUri;
|
public void | setMaxTime(long maxTime)
this.maxTime = maxTime;
|
public void | setProcessingTime(long processingTime)
this.processingTime = processingTime;
|
public void | setRequestCount(int requestCount)
this.requestCount = requestCount;
|
public void | setRpName(javax.management.ObjectName rpName)
this.rpName = rpName;
|
public void | setStage(int stage)
this.stage = stage;
|
public void | setWorkerThreadName(java.lang.String workerThreadName)
this.workerThreadName = workerThreadName;
|
void | updateCounters()Called by the processor before recycling the request. It'll collect
statistic information.
bytesReceived+=req.getBytesRead();
bytesSent+=req.getResponse().getBytesWritten();
requestCount++;
if( req.getResponse().getStatus() >=400 )
errorCount++;
long t0=req.getStartTime();
long t1=System.currentTimeMillis();
long time=t1-t0;
processingTime+=time;
if( maxTime < time ) {
maxTime=time;
maxRequestUri=req.requestURI().toString();
}
|