Class XWikiWatchdog


  • public class XWikiWatchdog
    extends Object
    Watches an XWiki URL to tell if the XWiki instance is started or not.
    Since:
    10.9
    Version:
    $Id: 46608245898611055cce247ea2e926be036e1d7e $
    • Constructor Detail

      • XWikiWatchdog

        public XWikiWatchdog()
    • Method Detail

      • isXWikiStarted

        public WatchdogResponse isXWikiStarted​(String url,
                                               long timeout)
                                        throws Exception
        Parameters:
        url - the URL to watch
        timeout - the timeout after which we consider that the XWiki instance is not running
        Returns:
        a response object containing various information about the XWiki URL (response code, timeout, etc) allowing the caller to know if the XWiki instance is up or not
        Throws:
        Exception - if a thread has interrupted the thread in which this code is executing