Class AbstractInstaller
- java.lang.Object
-
- com.android.repository.impl.installer.AbstractPackageOperation
-
- com.android.repository.impl.installer.AbstractInstaller
-
- All Implemented Interfaces:
Installer,PackageOperation
public abstract class AbstractInstaller extends AbstractPackageOperation implements Installer
Framework for an installer that creates a temporary directory, writes package.xml when it's done, and can resume if partly done.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.android.repository.api.PackageOperation
PackageOperation.InstallStatus, PackageOperation.StatusChangeListener, PackageOperation.StatusChangeListenerException
-
-
Field Summary
-
Fields inherited from class com.android.repository.impl.installer.AbstractPackageOperation
DOWNLOAD_INTERMEDIATES_DIR_FN, METADATA_FILENAME_PREFIX, REPO_TEMP_DIR_FN
-
-
Constructor Summary
Constructors Constructor Description AbstractInstaller(RemotePackage p, RepoManager manager, Downloader downloader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DownloadergetDownloader()java.nio.file.PathgetLocation(ProgressIndicator progress)The filesystem path affected by this operation.java.lang.StringgetName()Gets the name of this operation, suitable for using in user-facing messages.RemotePackagegetPackage()The package (local or remote) that's being affected.-
Methods inherited from class com.android.repository.impl.installer.AbstractPackageOperation
cleanup, complete, doComplete, doPrepare, getFallbackOperation, getInstallStatus, getRepoManager, prepare, registerStateChangeListener, setFallbackOperation, updateStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.android.repository.api.PackageOperation
complete, getFallbackOperation, getInstallStatus, getRepoManager, prepare, registerStateChangeListener, setFallbackOperation
-
-
-
-
Constructor Detail
-
AbstractInstaller
public AbstractInstaller(@NonNull RemotePackage p, @NonNull RepoManager manager, @NonNull Downloader downloader)
-
-
Method Detail
-
getPackage
@NonNull public RemotePackage getPackage()
Description copied from interface:InstallerThe package (local or remote) that's being affected. Installers operate on remote (not yet installed) packages.- Specified by:
getPackagein interfaceInstaller- Specified by:
getPackagein interfacePackageOperation
-
getLocation
@NonNull public final java.nio.file.Path getLocation(@NonNull ProgressIndicator progress)Description copied from interface:PackageOperationThe filesystem path affected by this operation.- Specified by:
getLocationin interfacePackageOperation
-
getDownloader
@NonNull protected Downloader getDownloader()
-
getName
@NonNull public java.lang.String getName()
Description copied from interface:PackageOperationGets the name of this operation, suitable for using in user-facing messages. e.g. "Install Foo" or "Uninstall Bar".- Specified by:
getNamein interfacePackageOperation
-
-