| Package | Description |
|---|---|
| weka.core | |
| weka.core.packageManagement |
| Modifier and Type | Method and Description |
|---|---|
static Package |
WekaPackageManager.getInstalledPackageInfo(String packageName)
Get meta data for an installed package
|
static Package |
WekaPackageManager.getPackageArchiveInfo(String packageArchivePath)
Extract meta data from a package archive
|
static Package |
WekaPackageManager.getRepositoryPackageInfo(String packageName)
Get meta data for the latest version of a package from the repository
|
static Package |
WekaPackageManager.getRepositoryPackageInfo(String packageName,
String version)
Get meta data for a specific version of a package from the repository
|
static Package |
WekaPackageManager.mostRecentVersionWithRespectToConstraint(PackageConstraint toCheck)
Find the most recent version of the package encapsulated in the supplied
PackageConstraint argument that satisfies the constraint
|
| Modifier and Type | Method and Description |
|---|---|
static List<Package> |
WekaPackageManager.getAllPackages()
Get a list of all packages
|
static List<Package> |
WekaPackageManager.getAvailableCompatiblePackages()
Get a list of the most recent version of all available packages (i.e.
|
static List<Package> |
WekaPackageManager.getAvailablePackages()
Get a list of all available packages (i.e.
|
static List<Package> |
WekaPackageManager.getInstalledPackages()
Get a list of installed packages
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
WekaPackageManager.checkForMissingClasses(Package toLoad,
PrintStream... progress)
Checks to see if there are any classes that we should try to instantiate
before allowing this package to be loaded.
|
static boolean |
WekaPackageManager.checkForMissingFiles(Package toLoad,
File packageRoot,
PrintStream... progress)
Checks to see if there are any missing files/directories for a given
package.
|
static boolean |
WekaPackageManager.checkForUnsetEnvVar(Package toLoad,
PrintStream... progress)
Checks to see if there are any environment variables or properties that
should be set at startup before allowing this package to be loaded.
|
static List<Dependency> |
WekaPackageManager.getAllDependenciesForPackage(Package target,
Map<String,List<Dependency>> conflicts)
Get a list of dependencies for a given package
|
static boolean |
WekaPackageManager.loadCheck(Package toLoad,
File packageRoot,
PrintStream... progress)
Check whether a package should be loaded or not.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
WekaPackageManager.installPackages(List<Package> toInstall,
PrintStream... progress)
Install the supplied list of packages
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultPackage
A concrete implementation of Package that uses Java properties files/classes
to manage package meta data.
|
| Modifier and Type | Method and Description |
|---|---|
Package |
DefaultPackageManager.getInstalledPackageInfo(String packageName)
Get package information on the named installed package.
|
abstract Package |
PackageManager.getInstalledPackageInfo(String packageName)
Get package information on the named installed package.
|
Package |
PackageConstraint.getPackage()
Get the package that this constraint applies to.
|
Package |
DefaultPackageManager.getPackageArchiveInfo(String packageArchivePath)
Get package information from the supplied package archive file.
|
abstract Package |
PackageManager.getPackageArchiveInfo(String packageArchivePath)
Get package information from the supplied package archive file.
|
Package |
DefaultPackageManager.getRepositoryPackageInfo(String packageName)
Get package information on the named package from the repository.
|
abstract Package |
PackageManager.getRepositoryPackageInfo(String packageName)
Get package information on the named package from the repository.
|
Package |
DefaultPackageManager.getRepositoryPackageInfo(String packageName,
Object version)
Get package information on the named package from the repository.
|
abstract Package |
PackageManager.getRepositoryPackageInfo(String packageName,
Object version)
Get package information on the named package from the repository.
|
Package |
Dependency.getSource()
Get the source package.
|
Package |
DefaultPackageManager.getURLPackageInfo(URL packageURL)
Get package information on the package at the given URL.
|
abstract Package |
PackageManager.getURLPackageInfo(URL packageURL)
Get package information on the package at the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
List<Package> |
DefaultPackageManager.getAllPackages(PrintStream... progress)
Get all packages that the system knows about (i.e.
|
abstract List<Package> |
PackageManager.getAllPackages(PrintStream... progress)
Get all packages that the system knows about (i.e.
|
List<Package> |
DefaultPackageManager.getAvailablePackages()
Get a list of packages that are not currently installed.
|
abstract List<Package> |
PackageManager.getAvailablePackages()
Get a list of packages that are not currently installed.
|
List<Package> |
DefaultPackageManager.getInstalledPackages()
Get a list of installed packages.
|
abstract List<Package> |
PackageManager.getInstalledPackages()
Get a list of installed packages.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
PackageConstraint.checkConstraint(Package target)
Check the target package against the constraint embodied
in this PackageConstraint.
|
boolean |
VersionPackageConstraint.checkConstraint(Package target)
Check the target package against the constraint embodied in this
PackageConstraint.
|
boolean |
VersionRangePackageConstraint.checkConstraint(Package target)
Check the target package against the constraint embodied
in this PackageConstraint.
|
boolean |
Package.equals(Package toCompare)
Compare the supplied package to this package.
|
List<Dependency> |
DefaultPackageManager.getAllDependenciesForPackage(Package target,
Map<String,List<Dependency>> conflicts)
Gets a full list of packages (encapsulated in Dependency objects) that are
required by directly and indirectly by the named target package.
|
abstract List<Dependency> |
PackageManager.getAllDependenciesForPackage(Package target,
Map<String,List<Dependency>> conflicts)
Gets a full list of packages (encapsulated in Dependency objects) that are
required by directly and indirectly by the named target package.
|
void |
PackageConstraint.setPackage(Package p)
Set the package that this constraint applies to.
|
void |
Dependency.setSource(Package source)
Set the source package.
|
| Modifier and Type | Method and Description |
|---|---|
List<Dependency> |
DefaultPackage.getIncompatibleDependencies(List<Package> packages)
Gets those packages from the supplied list that this package depends on and
are currently incompatible with this package.
|
abstract List<Dependency> |
Package.getIncompatibleDependencies(List<Package> packages)
Gets those packages from the supplied list that this package depends on and
are currently incompatible with this package.
|
List<Dependency> |
DefaultPackage.getMissingDependencies(List<Package> packages)
Gets a list of packages that this package depends on that are not in the
supplied list of packages.
|
abstract List<Dependency> |
Package.getMissingDependencies(List<Package> packages)
Gets a list of packages that this package depends on that are not in the
supplied list of packages.
|
void |
DefaultPackageManager.installPackages(List<Package> toInstall,
PrintStream... progress)
Installs all the packages in the supplied list.
|
abstract void |
PackageManager.installPackages(List<Package> toInstall,
PrintStream... progress)
Installs all the packages in the supplied list.
|
| Constructor and Description |
|---|
Dependency(Package source,
PackageConstraint target)
Construct a new Dependency from a supplied source package and
PackageConstraint containing the target package.
|
VersionPackageConstraint(Package p) |
VersionRangePackageConstraint(Package p)
Constructor
|
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.