Class UpdateInstallerImpl
java.lang.Object
com.biglybt.pifimpl.local.update.UpdateInstallerImpl
- All Implemented Interfaces:
UpdateInstaller
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeRightsAction(String rights, String to_file) Add an installation "change rights" action to change a file rightsvoidaddMoveAction(String from_file_or_resource, String to_file) Add an installation "move" action to move either an absolute file or resourcevoidaddRemoveAction(String file) Adds an action to remove either a directory (recursively delete) or filevoidaddResource(String resource_name, InputStream is) Add a resource to the installation.voidaddResource(String resource_name, InputStream is, boolean closeInputStream) Add a resource to the installation.protected voidappendAction(String data) protected static voidcheckForFailedInstalls(UpdateManagerImpl manager) private voidvoiddestroy()private StringescapeFile(String file) Returns the absolute path of the app install dir (i.e.Returns the absolute path of the user dir (i.e.voidinstallNow(UpdateInstallerListener listener) Runs the action now, not as part of a shutdown/restart of Vuze
-
Field Details
-
UPDATE_DIR
- See Also:
-
ACTIONS_LEGACY
- See Also:
-
ACTIONS_UTF8
- See Also:
-
class_mon
-
manager
-
install_dir
-
-
Constructor Details
-
UpdateInstallerImpl
- Throws:
UpdateException
-
-
Method Details
-
checkForFailedInstalls
-
addResource
Description copied from interface:UpdateInstallerAdd a resource to the installation. The file will be saved away for later use.- Specified by:
addResourcein interfaceUpdateInstaller- Parameters:
resource_name- non-qualified name for the resource - i.e. not an absolute file name but rather something local like "fred". This can then be used later in actionsis-- Throws:
UpdateException
-
addResource
public void addResource(String resource_name, InputStream is, boolean closeInputStream) throws UpdateException Description copied from interface:UpdateInstallerAdd a resource to the installation. The file will be saved away for later use.- Specified by:
addResourcein interfaceUpdateInstaller- Parameters:
resource_name- non-qualified name for the resource - i.e. not an absolute file name but rather something local like "fred". This can then be used later in actionsis-closeInputStream- if false, the InputStream is won't be closed- Throws:
UpdateException
-
getInstallDir
Description copied from interface:UpdateInstallerReturns the absolute path of the app install dir (i.e. where .jar etc is located)- Specified by:
getInstallDirin interfaceUpdateInstaller- Returns:
-
getUserDir
Description copied from interface:UpdateInstallerReturns the absolute path of the user dir (i.e. where config is stored)- Specified by:
getUserDirin interfaceUpdateInstaller- Returns:
-
addMoveAction
Description copied from interface:UpdateInstallerAdd an installation "move" action to move either an absolute file or resource- Specified by:
addMoveActionin interfaceUpdateInstaller- Parameters:
to_file- absolute- Throws:
UpdateException
-
addChangeRightsAction
Description copied from interface:UpdateInstallerAdd an installation "change rights" action to change a file rights- Specified by:
addChangeRightsActionin interfaceUpdateInstaller- Parameters:
rights- the rights, for example "776"to_file- absolute- Throws:
UpdateException
-
addRemoveAction
Description copied from interface:UpdateInstallerAdds an action to remove either a directory (recursively delete) or file- Specified by:
addRemoveActionin interfaceUpdateInstaller- Parameters:
file-- Throws:
UpdateException
-
escapeFile
-
appendAction
- Throws:
UpdateException
-
installNow
Description copied from interface:UpdateInstallerRuns the action now, not as part of a shutdown/restart of Vuze- Specified by:
installNowin interfaceUpdateInstaller- Throws:
UpdateException
-
destroy
public void destroy()- Specified by:
destroyin interfaceUpdateInstaller
-
deleteInstaller
private void deleteInstaller()
-