|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.WekaPackageManager
public class WekaPackageManager
Class providing package management and manipulation routines. Also provides a command line interface for package management.
| Field Summary | |
|---|---|
static boolean |
m_initialPackageLoadingInProcess
|
static File |
PACKAGES_DIR
|
static File |
PROPERTIES_DIR
|
static File |
WEKA_HOME
|
| Constructor Summary | |
|---|---|
WekaPackageManager()
|
|
| Method Summary | |
|---|---|
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 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()
|
static boolean |
installedPackageResourceExists(String packageName,
String resourceName)
|
static String |
installPackageFromArchive(String packageArchivePath,
PrintStream... progress)
|
static void |
installPackageFromRepository(String packageName,
String version,
PrintStream... progress)
|
static String |
installPackageFromURL(URL packageURL,
PrintStream... progress)
|
static void |
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 void |
uninstallPackage(String packageName,
boolean updateKnowledgeFlow,
PrintStream... progress)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static File WEKA_HOME
public static File PACKAGES_DIR
public static File PROPERTIES_DIR
public static boolean m_initialPackageLoadingInProcess
| Constructor Detail |
|---|
public WekaPackageManager()
| Method Detail |
|---|
public static void removeExplorerProps(String installedPackageName)
public static boolean loadCheck(org.pentaho.packageManagement.Package toLoad,
File packageRoot,
PrintStream... progress)
public static boolean checkForMissingClasses(org.pentaho.packageManagement.Package toLoad,
PrintStream... progress)
toLoad - the package to check
public static boolean checkForMissingFiles(org.pentaho.packageManagement.Package toLoad,
File packageRoot,
PrintStream... progress)
toLoad - the package to checkpackageRoot - the root directory of the package
public 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 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 repository
public 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 question
Exception - if a version can't be found that satisfies the constraint
or an error occurs while communicating with the respository
public static void installPackages(List<org.pentaho.packageManagement.Package> toInstall,
PrintStream... progress)
throws Exception
Exception
public static List<Object> getRepositoryPackageVersions(String packageName)
throws Exception
Exceptionpublic static URL getPackageRepositoryURL()
public static List<org.pentaho.packageManagement.Package> getAllPackages()
throws Exception
Exception
public static List<org.pentaho.packageManagement.Package> getAvailablePackages()
throws Exception
Exception
public static List<org.pentaho.packageManagement.Package> getInstalledPackages()
throws Exception
Exception
public static List<org.pentaho.packageManagement.Dependency> getAllDependenciesForPackage(org.pentaho.packageManagement.Package target,
Map<String,List<org.pentaho.packageManagement.Dependency>> conflicts)
throws Exception
Exception
public static org.pentaho.packageManagement.Package getPackageArchiveInfo(String packageArchivePath)
throws Exception
Exception
public static org.pentaho.packageManagement.Package getInstalledPackageInfo(String packageName)
throws Exception
Exception
public static org.pentaho.packageManagement.Package getRepositoryPackageInfo(String packageName)
throws Exception
Exception
public static org.pentaho.packageManagement.Package getRepositoryPackageInfo(String packageName,
String version)
throws Exception
Exception
public static void installPackageFromRepository(String packageName,
String version,
PrintStream... progress)
throws Exception
Exception
public static String installPackageFromArchive(String packageArchivePath,
PrintStream... progress)
throws Exception
Exception
public static String installPackageFromURL(URL packageURL,
PrintStream... progress)
throws Exception
Exception
public static void uninstallPackage(String packageName,
boolean updateKnowledgeFlow,
PrintStream... progress)
throws Exception
Exceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||