Package com.xpn.xwiki.monitor.api
Class MonitorData
- java.lang.Object
-
- com.xpn.xwiki.monitor.api.MonitorData
-
public class MonitorData extends Object
-
-
Constructor Summary
Constructors Constructor Description MonitorData(String wikiPage, String action, URL url, String threadName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endRequest()
void
endRequest(boolean normal)
void
endTimer(String timername)
String
getAction()
long
getDuration()
long
getDuration(String timer)
Date
getEndTime()
long
getNbCalls(String timer)
Date
getStartTime()
String
getThreadName()
List<MonitorTimer>
getTimerList()
Map<String,MonitorTimerSummary>
getTimerSummaries()
URL
getURL()
String
getWikiPage()
void
log()
void
setAction(String action)
void
setEndTime(Date endTime)
void
setStartTime(Date startTime)
void
setThreadName(String threadName)
void
setTimerDetails(String timername, String details)
void
setURL(URL url)
void
setWikiPage(String page)
void
startRequest(String page, URL url)
void
startTimer(String timername)
void
startTimer(String timername, String details)
String
toString()
-
-
-
Method Detail
-
endRequest
public void endRequest()
-
endRequest
public void endRequest(boolean normal)
-
getURL
public URL getURL()
-
setURL
public void setURL(URL url)
-
getWikiPage
public String getWikiPage()
-
setWikiPage
public void setWikiPage(String page)
-
getStartTime
public Date getStartTime()
-
setStartTime
public void setStartTime(Date startTime)
-
getEndTime
public Date getEndTime()
-
setEndTime
public void setEndTime(Date endTime)
-
getDuration
public long getDuration()
-
getDuration
public long getDuration(String timer)
-
startTimer
public void startTimer(String timername)
-
endTimer
public void endTimer(String timername)
-
getTimerList
public List<MonitorTimer> getTimerList()
-
getTimerSummaries
public Map<String,MonitorTimerSummary> getTimerSummaries()
-
log
public void log()
-
getThreadName
public String getThreadName()
-
setThreadName
public void setThreadName(String threadName)
-
getNbCalls
public long getNbCalls(String timer)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
-
-