Class MonitorPlugin

    • Method Detail

      • init

        public void init​(XWikiContext context)
        Description copied from interface: XWikiPluginInterface
        Global initialization, called when the platform is started and the plugin list is initialized.
        Specified by:
        init in interface XWikiPluginInterface
        Overrides:
        init in class XWikiDefaultPlugin
        Parameters:
        context - the current context, should not be stored since it will become mostly unreliable once the initial request is terminated
      • startRequest

        public void startRequest​(String page,
                                 String action,
                                 URL url)
      • endRequest

        public void endRequest()
      • setWikiPage

        public void setWikiPage​(String page)
      • getLastTimerData

        public org.apache.commons.collections4.queue.CircularFifoQueue<MonitorData> getLastTimerData()
      • getLastUnfinishedTimerData

        public org.apache.commons.collections4.queue.CircularFifoQueue<MonitorData> getLastUnfinishedTimerData()
      • startTimer

        public void startTimer​(String timername)
      • startTimer

        public void startTimer​(String timername,
                               String desc)
      • setTimerDesc

        public void setTimerDesc​(String timername,
                                 String desc)
      • endTimer

        public void endTimer​(String timername)
      • getDuration

        public long getDuration()
      • getRequests

        public long getRequests()
      • getDuration

        public long getDuration​(String timer)
      • getNbCalls

        public long getNbCalls​(String timer)
      • getRequests

        public long getRequests​(String timer)
      • isActive

        public boolean isActive()
      • setActive

        public void setActive​(boolean bActive)