Package com.biglybt.core.update.impl
Class ClientRestarterImpl
java.lang.Object
com.biglybt.core.update.impl.ClientRestarterImpl
- All Implemented Interfaces:
ClientRestarter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
private String
getExeUpdater
(PrintWriter log) private String
private int
private boolean
javaSpawn
(PrintWriter log, String execString) void
restart
(boolean update_only) private boolean
restart_OSX
(PrintWriter log, String mainClass, String[] properties, String[] parameters) private boolean
restart_Unix
(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) private boolean
restart_win32
(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) boolean
restartApp
(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) private boolean
restartViaEXE
(PrintWriter log, String exeUpdater, String[] properties, String[] parameters, String backupJavaRunString, boolean update_only) private boolean
runExternalCommandViaUnixShell
(PrintWriter log, String command) private boolean
runUpdateProcess
(boolean update_only, boolean no_wait) void
private boolean
win32NativeRestart
(PrintWriter log, String exec)
-
Field Details
-
LOGID
-
MAIN_CLASS
- See Also:
-
UPDATER_JAR
- See Also:
-
EXE_UPDATER
- See Also:
-
UPDATE_PROPERTIES
- See Also:
-
restarted
protected static boolean restarted -
JAVA_EXEC_DIR
-
core
-
classpath_prefix
-
-
Constructor Details
-
ClientRestarterImpl
-
-
Method Details
-
restart
public void restart(boolean update_only) - Specified by:
restart
in interfaceClientRestarter
-
updateNow
- Specified by:
updateNow
in interfaceClientRestarter
- Throws:
CoreException
-
runUpdateProcess
- Throws:
CoreException
-
getClassPath
-
win32NativeRestart
-
getExeUpdater
-
restartViaEXE
private boolean restartViaEXE(PrintWriter log, String exeUpdater, String[] properties, String[] parameters, String backupJavaRunString, boolean update_only) -
restartApp
public boolean restartApp(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) -
restart_win32
private boolean restart_win32(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) -
javaSpawn
-
restart_OSX
private boolean restart_OSX(PrintWriter log, String mainClass, String[] properties, String[] parameters) -
getUnixScriptVersion
private int getUnixScriptVersion() -
restart_Unix
private boolean restart_Unix(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) -
getLibraryPath
-
runExternalCommandViaUnixShell
-