Package org.nuxeo.ecm.admin
Class NuxeoCtlManager
- java.lang.Object
-
- org.nuxeo.ecm.admin.NuxeoCtlManager
-
public class NuxeoCtlManager extends Object
Helper class to call NuxeoCtl restart.- Author:
- Tiry ([email protected])
-
-
Constructor Summary
Constructors Constructor Description NuxeoCtlManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static boolean
doExec(String path, String logPath)
protected static String[]
getCommand(String path)
Gets the OS dependent command for nuxeoctl restartbgString
getServerURL()
static boolean
isWindows()
Deprecated.Since 7.4.static boolean
restart()
String
restartServer()
-
-
-
Field Detail
-
CMD_POSIX
protected static final String CMD_POSIX
- See Also:
- Constant Field Values
-
CMD_WIN
protected static final String CMD_WIN
- See Also:
- Constant Field Values
-
log
protected static final Log log
-
-
Method Detail
-
isWindows
@Deprecated public static boolean isWindows()
Deprecated.Since 7.4. UseSystemUtils.IS_OS_WINDOWS
-
getCommand
protected static String[] getCommand(String path)
Gets the OS dependent command for nuxeoctl restartbg- Parameters:
path
- the Nuxeo bin path- Returns:
- an array of String to pass to the
ProcessBuilder
- Since:
- 9.2
-
restart
public static boolean restart()
-
restartServer
public String restartServer()
-
getServerURL
public String getServerURL()
- Returns:
- Configured server URL (may differ from current URL)
- Since:
- 5.6
-
-