public class WekaPackageManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
m_initialPackageLoadingInProcess |
static boolean |
m_noPackageMetaDataAvailable |
static boolean |
m_offline |
static File |
PACKAGES_DIR |
static File |
PROPERTIES_DIR |
static File |
WEKA_HOME |
| Constructor and Description |
|---|
WekaPackageManager() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkForMissingClasses(org.pentaho.packageManagement.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 |
checkForMissingFiles(org.pentaho.packageManagement.Package toLoad,
File packageRoot,
PrintStream... progress)
Checks to see if there are any missing files/directories for a given
package.
|
static Exception |
checkForNewPackages(PrintStream... progress) |
static boolean |
checkForUnsetEnvVar(org.pentaho.packageManagement.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 Exception |
establishCacheIfNeeded(PrintStream... progress) |
static List<org.pentaho.packageManagement.Dependency> |
getAllDependenciesForPackage(org.pentaho.packageManagement.Package target,
Map<String,List<org.pentaho.packageManagement.Dependency>> conflicts) |
static List<org.pentaho.packageManagement.Package> |
getAllPackages() |
static List<org.pentaho.packageManagement.Package> |
getAvailablePackages() |
static org.pentaho.packageManagement.Package |
getInstalledPackageInfo(String packageName) |
static List<org.pentaho.packageManagement.Package> |
getInstalledPackages() |
static org.pentaho.packageManagement.Package |
getPackageArchiveInfo(String packageArchivePath) |
static File |
getPackageHome() |
static Map<String,String> |
getPackageList(boolean local)
Just get a list of the package names.
|
static URL |
getPackageRepositoryURL() |
static org.pentaho.packageManagement.Package |
getRepositoryPackageInfo(String packageName) |
static org.pentaho.packageManagement.Package |
getRepositoryPackageInfo(String packageName,
String version) |
static List<Object> |
getRepositoryPackageVersions(String packageName) |
static org.pentaho.packageManagement.PackageManager |
getUnderlyingPackageManager()
Get the underlying package manager implementation
|
static boolean |
installedPackageResourceExists(String packageName,
String resourceName) |
static String |
installPackageFromArchive(String packageArchivePath,
PrintStream... progress) |
static boolean |
installPackageFromRepository(String packageName,
String version,
PrintStream... progress) |
static String |
installPackageFromURL(URL packageURL,
PrintStream... progress) |
static boolean |
installPackages(List<org.pentaho.packageManagement.Package> toInstall,
PrintStream... progress) |
static boolean |
loadCheck(org.pentaho.packageManagement.Package toLoad,
File packageRoot,
PrintStream... progress) |
static void |
loadPackages(boolean verbose) |
static void |
loadPackages(boolean verbose,
boolean refreshGOEProperties) |
static void |
main(String[] args) |
static org.pentaho.packageManagement.Package |
mostRecentVersionWithRespectToConstraint(org.pentaho.packageManagement.PackageConstraint toCheck)
Find the most recent version of the package encapsulated in the supplied
PackageConstraint argument that satisfies the constraint
|
static int |
numRepositoryPackages()
Get the number of packages that are available at the repository.
|
static Exception |
refreshCache(PrintStream... progress) |
static void |
refreshGOEProperties() |
static void |
removeExplorerProps(String installedPackageName) |
static int |
repoZipArchiveSize()
Retrieves the size (in KB) of the repository zip archive stored on the
server.
|
static void |
uninstallPackage(String packageName,
boolean updateKnowledgeFlow,
PrintStream... progress) |
public static File WEKA_HOME
public static File PACKAGES_DIR
public static File PROPERTIES_DIR
public static boolean m_offline
public static boolean m_initialPackageLoadingInProcess
public static boolean m_noPackageMetaDataAvailable
public static void removeExplorerProps(String installedPackageName)
public static boolean loadCheck(org.pentaho.packageManagement.Package toLoad,
File packageRoot,
PrintStream... progress)
public static boolean checkForUnsetEnvVar(org.pentaho.packageManagement.Package toLoad,
PrintStream... progress)
toLoad - the package to checkpublic static boolean checkForMissingClasses(org.pentaho.packageManagement.Package toLoad,
PrintStream... progress)
toLoad - the package to checkpublic static boolean checkForMissingFiles(org.pentaho.packageManagement.Package toLoad,
File packageRoot,
PrintStream... progress)
toLoad - the package to checkpackageRoot - the root directory of the packagepublic static void loadPackages(boolean verbose)
public static void loadPackages(boolean verbose,
boolean refreshGOEProperties)
public static void refreshGOEProperties()
public static org.pentaho.packageManagement.PackageManager getUnderlyingPackageManager()
public static int repoZipArchiveSize()
public static int numRepositoryPackages()
public static Map<String,String> getPackageList(boolean local)
local - true if the local package list in the cache should be read
rather than the online repositorypublic static Exception establishCacheIfNeeded(PrintStream... progress)
public static Exception checkForNewPackages(PrintStream... progress)
public static Exception refreshCache(PrintStream... progress)
public static boolean installedPackageResourceExists(String packageName, String resourceName)
public static File getPackageHome()
public static org.pentaho.packageManagement.Package mostRecentVersionWithRespectToConstraint(org.pentaho.packageManagement.PackageConstraint toCheck)
throws Exception
toCheck - the PackageConstraint containing the package in questionException - if a version can't be found that satisfies the constraint
or an error occurs while communicating with the respositorypublic static boolean installPackages(List<org.pentaho.packageManagement.Package> toInstall, PrintStream... progress) throws Exception
Exceptionpublic static List<Object> getRepositoryPackageVersions(String packageName) throws Exception
Exceptionpublic static URL getPackageRepositoryURL()
public static List<org.pentaho.packageManagement.Package> getAllPackages() throws Exception
Exceptionpublic static List<org.pentaho.packageManagement.Package> getAvailablePackages() throws Exception
Exceptionpublic static List<org.pentaho.packageManagement.Package> getInstalledPackages() throws Exception
Exceptionpublic static List<org.pentaho.packageManagement.Dependency> getAllDependenciesForPackage(org.pentaho.packageManagement.Package target, Map<String,List<org.pentaho.packageManagement.Dependency>> conflicts) throws Exception
Exceptionpublic static org.pentaho.packageManagement.Package getPackageArchiveInfo(String packageArchivePath) throws Exception
Exceptionpublic static org.pentaho.packageManagement.Package getInstalledPackageInfo(String packageName) throws Exception
Exceptionpublic static org.pentaho.packageManagement.Package getRepositoryPackageInfo(String packageName) throws Exception
Exceptionpublic static org.pentaho.packageManagement.Package getRepositoryPackageInfo(String packageName, String version) throws Exception
Exceptionpublic static boolean installPackageFromRepository(String packageName, String version, PrintStream... progress) throws Exception
Exceptionpublic static String installPackageFromArchive(String packageArchivePath, PrintStream... progress) throws Exception
Exceptionpublic static String installPackageFromURL(URL packageURL, PrintStream... progress) throws Exception
Exceptionpublic static void uninstallPackage(String packageName, boolean updateKnowledgeFlow, PrintStream... progress) throws Exception
Exceptionpublic static void main(String[] args)
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.