public class MonitorPlugin extends XWikiDefaultPlugin
Constructor and Description |
---|
MonitorPlugin(String name,
String className,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
void |
endRequest() |
void |
endTimer(String timername) |
Map<Thread,MonitorData> |
getActiveTimerData() |
long |
getDuration() |
long |
getDuration(String timer) |
org.apache.commons.collections4.queue.CircularFifoQueue<MonitorData> |
getLastTimerData() |
org.apache.commons.collections4.queue.CircularFifoQueue<MonitorData> |
getLastUnfinishedTimerData() |
String |
getName()
The name which can be used for accessing this plugin from
XWiki.getPlugin(String, XWikiContext) . |
long |
getNbCalls(String timer) |
long |
getRequests() |
long |
getRequests(String timer) |
Map<String,MonitorTimerSummary> |
getTimerSummaries() |
void |
init(XWikiContext context)
Global initialization, called when the platform is started and the plugin list is initialized.
|
boolean |
isActive() |
void |
reset(XWikiContext context) |
void |
setActive(boolean bActive) |
void |
setTimerDesc(String timername,
String desc) |
void |
setWikiPage(String page) |
void |
startRequest(String page,
String action,
URL url) |
void |
startTimer(String timername) |
void |
startTimer(String timername,
String desc) |
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, getPluginApi, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
public MonitorPlugin(String name, String className, XWikiContext context)
public void init(XWikiContext context)
XWikiPluginInterface
init
in interface XWikiPluginInterface
init
in class XWikiDefaultPlugin
context
- the current context, should not be stored since it will become mostly unreliable once the initial
request is terminatedpublic void reset(XWikiContext context)
public String getName()
XWikiPluginInterface
XWiki.getPlugin(String, XWikiContext)
.getName
in interface XWikiPluginInterface
getName
in class XWikiDefaultPlugin
public void endRequest()
public void setWikiPage(String page)
public org.apache.commons.collections4.queue.CircularFifoQueue<MonitorData> getLastTimerData()
public org.apache.commons.collections4.queue.CircularFifoQueue<MonitorData> getLastUnfinishedTimerData()
public void startTimer(String timername)
public void endTimer(String timername)
public Map<Thread,MonitorData> getActiveTimerData()
public Map<String,MonitorTimerSummary> getTimerSummaries()
public long getDuration()
public long getRequests()
public long getDuration(String timer)
public long getNbCalls(String timer)
public long getRequests(String timer)
public boolean isActive()
public void setActive(boolean bActive)
Copyright © 2004–2022 XWiki. All rights reserved.