com.atlassian.jira.web.monitor
Class Request

java.lang.Object
  extended by com.atlassian.jira.web.monitor.Request

public class Request
extends Object

Represents a web request. An instance of this class normally has a 1-1 mapping to a ServletRequest.


Constructor Summary
Request(long startNanos, String threadName)
          Creates a new Request.
 
Method Summary
 long getRunningTime()
          Returns the running time of this request in nanoseconds.
 String getThreadName()
          Returns the name of the thread that is servicing the request.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Request

public Request(long startNanos,
               String threadName)
Creates a new Request.

Parameters:
startNanos - the time when this request was started
threadName - a String containing the name of the thread that is servicing the request
Method Detail

getRunningTime

public long getRunningTime()
Returns the running time of this request in nanoseconds.

Returns:
a long containing the running time of this request in nanoseconds

getThreadName

public String getThreadName()
Returns the name of the thread that is servicing the request.

Returns:
a String containing the name of the thread that is servicing the request

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.