com.sun.grizzly.tcp
Class RequestGroupInfo

java.lang.Object
  extended by com.sun.grizzly.tcp.RequestGroupInfo

public class RequestGroupInfo
extends Object

This can be moved to top level ( eventually with a better name ). It is currently used only as a JMX artifact, to agregate the data collected from each RequestProcessor thread.


Constructor Summary
RequestGroupInfo()
           
 
Method Summary
 void addRequestProcessor(RequestInfo rp)
           
 void decreaseCountOpenConnections()
           
 long getBytesReceived()
           
 long getBytesSent()
           
 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 getCountOpenConnections()
           
 long getCountOther()
           
 int getErrorCount()
           
 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.
 long getMaxOpenConnections()
           
 long getMaxTime()
           
 long getProcessingTime()
           
 int getRequestCount()
           
 void increaseCountOpenConnections()
           
 void removeRequestProcessor(RequestInfo rp)
           
 void resetCounters()
           
 void setBytesReceived(long bytesReceived)
           
 void setBytesSent(long bytesSent)
           
 void setCount200(long count)
           
 void setCount2xx(long count)
           
 void setCount302(long count)
           
 void setCount304(long count)
           
 void setCount3xx(long count)
           
 void setCount400(long count)
           
 void setCount401(long count)
           
 void setCount403(long count)
           
 void setCount404(long count)
           
 void setCount4xx(long count)
           
 void setCount503(long count)
           
 void setCount5xx(long count)
           
 void setCountOpenConnections(long count)
           
 void setCountOther(long count)
           
 void setErrorCount(int errorCount)
           
 void setMaxOpenConnections(long count)
           
 void setMaxTime(long maxTime)
           
 void setProcessingTime(long totalTime)
           
 void setRequestCount(int requestCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestGroupInfo

public RequestGroupInfo()
Method Detail

addRequestProcessor

public void addRequestProcessor(RequestInfo rp)

removeRequestProcessor

public void removeRequestProcessor(RequestInfo rp)

getMaxTime

public long getMaxTime()

setMaxTime

public void setMaxTime(long maxTime)

getProcessingTime

public long getProcessingTime()

setProcessingTime

public void setProcessingTime(long totalTime)

getRequestCount

public int getRequestCount()

setRequestCount

public void setRequestCount(int requestCount)

getErrorCount

public int getErrorCount()

setErrorCount

public void setErrorCount(int errorCount)

getBytesReceived

public long getBytesReceived()

setBytesReceived

public void setBytesReceived(long bytesReceived)

getBytesSent

public long getBytesSent()

setBytesSent

public void setBytesSent(long bytesSent)

getCount2xx

public long getCount2xx()

setCount2xx

public void setCount2xx(long count)

getCount3xx

public long getCount3xx()

setCount3xx

public void setCount3xx(long count)

getCount4xx

public long getCount4xx()

setCount4xx

public void setCount4xx(long count)

getCount5xx

public long getCount5xx()

setCount5xx

public void setCount5xx(long count)

getCountOther

public long getCountOther()

setCountOther

public void setCountOther(long count)

getCount200

public long getCount200()

setCount200

public void setCount200(long count)

getCount302

public long getCount302()

setCount302

public void setCount302(long count)

getCount304

public long getCount304()

setCount304

public void setCount304(long count)

getCount400

public long getCount400()

setCount400

public void setCount400(long count)

getCount401

public long getCount401()

setCount401

public void setCount401(long count)

getCount403

public long getCount403()

setCount403

public void setCount403(long count)

getCount404

public long getCount404()

setCount404

public void setCount404(long count)

getCount503

public long getCount503()

setCount503

public void setCount503(long count)

getCountOpenConnections

public long getCountOpenConnections()

setCountOpenConnections

public void setCountOpenConnections(long count)

increaseCountOpenConnections

public void increaseCountOpenConnections()

decreaseCountOpenConnections

public void decreaseCountOpenConnections()

getMaxOpenConnections

public long getMaxOpenConnections()

setMaxOpenConnections

public void setMaxOpenConnections(long count)

getLastRequestURI

public String getLastRequestURI()
Gets the URI of the last request serviced.

Returns:
The URI of the last request serviced

getLastRequestMethod

public String getLastRequestMethod()
Gets the HTTP method of the last request serviced.

Returns:
The HTTP method of the last request serviced

getLastRequestCompletionTime

public long getLastRequestCompletionTime()
Gets the time when the last request was completed.

Returns:
The time when the last request was completed.

resetCounters

public void resetCounters()


Copyright © 2012 Oracle Corporation. All Rights Reserved.