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 Stringprivate StringgetExeUpdater(PrintWriter log) private Stringprivate intprivate booleanjavaSpawn(PrintWriter log, String execString) voidrestart(boolean update_only) private booleanrestart_OSX(PrintWriter log, String mainClass, String[] properties, String[] parameters) private booleanrestart_Unix(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) private booleanrestart_win32(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) booleanrestartApp(PrintWriter log, String mainClass, String[] properties, String[] parameters, boolean update_only) private booleanrestartViaEXE(PrintWriter log, String exeUpdater, String[] properties, String[] parameters, String backupJavaRunString, boolean update_only) private booleanrunExternalCommandViaUnixShell(PrintWriter log, String command) private booleanrunUpdateProcess(boolean update_only, boolean no_wait) voidprivate booleanwin32NativeRestart(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:
restartin interfaceClientRestarter
-
updateNow
- Specified by:
updateNowin 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
-