Package org.xwiki.test.integration
Class XWikiWatchdog
- java.lang.Object
-
- org.xwiki.test.integration.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 Summary
Constructors Constructor Description XWikiWatchdog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WatchdogResponse
isXWikiStarted(String url, long timeout)
-
-
-
Method Detail
-
isXWikiStarted
public WatchdogResponse isXWikiStarted(String url, long timeout) throws Exception
- Parameters:
url
- the URL to watchtimeout
- 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
-
-