|
||||||||||
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 java.io.File |
PACKAGES_DIR
|
static java.io.File |
PROPERTIES_DIR
|
static java.io.File |
WEKA_HOME
|
Constructor Summary | |
---|---|
WekaPackageManager()
|
Method Summary | |
---|---|
static boolean |
checkForMissingClasses(org.pentaho.packageManagement.Package toLoad,
java.io.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,
java.io.File packageRoot,
java.io.PrintStream... progress)
Checks to see if there are any missing files/directories for a given package. |
static java.lang.Exception |
checkForNewPackages(java.io.PrintStream... progress)
|
static java.lang.Exception |
establishCacheIfNeeded(java.io.PrintStream... progress)
|
static java.util.List<org.pentaho.packageManagement.Dependency> |
getAllDependenciesForPackage(org.pentaho.packageManagement.Package target,
java.util.Map<java.lang.String,java.util.List<org.pentaho.packageManagement.Dependency>> conflicts)
|
static java.util.List<org.pentaho.packageManagement.Package> |
getAllPackages()
|
static java.util.List<org.pentaho.packageManagement.Package> |
getAvailablePackages()
|
static org.pentaho.packageManagement.Package |
getInstalledPackageInfo(java.lang.String packageName)
|
static java.util.List<org.pentaho.packageManagement.Package> |
getInstalledPackages()
|
static org.pentaho.packageManagement.Package |
getPackageArchiveInfo(java.lang.String packageArchivePath)
|
static java.io.File |
getPackageHome()
|
static java.util.Map<java.lang.String,java.lang.String> |
getPackageList(boolean local)
Just get a list of the package names. |
static java.net.URL |
getPackageRepositoryURL()
|
static org.pentaho.packageManagement.Package |
getRepositoryPackageInfo(java.lang.String packageName)
|
static org.pentaho.packageManagement.Package |
getRepositoryPackageInfo(java.lang.String packageName,
java.lang.String version)
|
static java.util.List<java.lang.Object> |
getRepositoryPackageVersions(java.lang.String packageName)
|
static org.pentaho.packageManagement.PackageManager |
getUnderlyingPackageManager()
|
static boolean |
installedPackageResourceExists(java.lang.String packageName,
java.lang.String resourceName)
|
static java.lang.String |
installPackageFromArchive(java.lang.String packageArchivePath,
java.io.PrintStream... progress)
|
static void |
installPackageFromRepository(java.lang.String packageName,
java.lang.String version,
java.io.PrintStream... progress)
|
static java.lang.String |
installPackageFromURL(java.net.URL packageURL,
java.io.PrintStream... progress)
|
static void |
installPackages(java.util.List<org.pentaho.packageManagement.Package> toInstall,
java.io.PrintStream... progress)
|
static boolean |
loadCheck(org.pentaho.packageManagement.Package toLoad,
java.io.File packageRoot,
java.io.PrintStream... progress)
|
static void |
loadPackages(boolean verbose)
|
static void |
loadPackages(boolean verbose,
boolean refreshGOEProperties)
|
static void |
main(java.lang.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 java.lang.Exception |
refreshCache(java.io.PrintStream... progress)
|
static void |
refreshGOEProperties()
|
static void |
removeExplorerProps(java.lang.String installedPackageName)
|
static void |
uninstallPackage(java.lang.String packageName,
boolean updateKnowledgeFlow,
java.io.PrintStream... progress)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.io.File WEKA_HOME
public static java.io.File PACKAGES_DIR
public static java.io.File PROPERTIES_DIR
public static boolean m_initialPackageLoadingInProcess
Constructor Detail |
---|
public WekaPackageManager()
Method Detail |
---|
public static void removeExplorerProps(java.lang.String installedPackageName)
public static boolean loadCheck(org.pentaho.packageManagement.Package toLoad, java.io.File packageRoot, java.io.PrintStream... progress)
public static boolean checkForMissingClasses(org.pentaho.packageManagement.Package toLoad, java.io.PrintStream... progress)
toLoad
- the package to check
public static boolean checkForMissingFiles(org.pentaho.packageManagement.Package toLoad, java.io.File packageRoot, java.io.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 java.util.Map<java.lang.String,java.lang.String> getPackageList(boolean local)
local
- true if the local package list in the cache should
be read rather than the online repository
public static java.lang.Exception establishCacheIfNeeded(java.io.PrintStream... progress)
public static java.lang.Exception checkForNewPackages(java.io.PrintStream... progress)
public static java.lang.Exception refreshCache(java.io.PrintStream... progress)
public static boolean installedPackageResourceExists(java.lang.String packageName, java.lang.String resourceName)
public static java.io.File getPackageHome()
public static org.pentaho.packageManagement.Package mostRecentVersionWithRespectToConstraint(org.pentaho.packageManagement.PackageConstraint toCheck) throws java.lang.Exception
toCheck
- the PackageConstraint containing the package in question
java.lang.Exception
- if a version can't be found that satisfies the constraint
or an error occurs while communicating with the respositorypublic static void installPackages(java.util.List<org.pentaho.packageManagement.Package> toInstall, java.io.PrintStream... progress) throws java.lang.Exception
java.lang.Exception
public static java.util.List<java.lang.Object> getRepositoryPackageVersions(java.lang.String packageName) throws java.lang.Exception
java.lang.Exception
public static java.net.URL getPackageRepositoryURL()
public static java.util.List<org.pentaho.packageManagement.Package> getAllPackages() throws java.lang.Exception
java.lang.Exception
public static java.util.List<org.pentaho.packageManagement.Package> getAvailablePackages() throws java.lang.Exception
java.lang.Exception
public static java.util.List<org.pentaho.packageManagement.Package> getInstalledPackages() throws java.lang.Exception
java.lang.Exception
public static java.util.List<org.pentaho.packageManagement.Dependency> getAllDependenciesForPackage(org.pentaho.packageManagement.Package target, java.util.Map<java.lang.String,java.util.List<org.pentaho.packageManagement.Dependency>> conflicts) throws java.lang.Exception
java.lang.Exception
public static org.pentaho.packageManagement.Package getPackageArchiveInfo(java.lang.String packageArchivePath) throws java.lang.Exception
java.lang.Exception
public static org.pentaho.packageManagement.Package getInstalledPackageInfo(java.lang.String packageName) throws java.lang.Exception
java.lang.Exception
public static org.pentaho.packageManagement.Package getRepositoryPackageInfo(java.lang.String packageName) throws java.lang.Exception
java.lang.Exception
public static org.pentaho.packageManagement.Package getRepositoryPackageInfo(java.lang.String packageName, java.lang.String version) throws java.lang.Exception
java.lang.Exception
public static void installPackageFromRepository(java.lang.String packageName, java.lang.String version, java.io.PrintStream... progress) throws java.lang.Exception
java.lang.Exception
public static java.lang.String installPackageFromArchive(java.lang.String packageArchivePath, java.io.PrintStream... progress) throws java.lang.Exception
java.lang.Exception
public static java.lang.String installPackageFromURL(java.net.URL packageURL, java.io.PrintStream... progress) throws java.lang.Exception
java.lang.Exception
public static void uninstallPackage(java.lang.String packageName, boolean updateKnowledgeFlow, java.io.PrintStream... progress) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |