Node Director
|
Public Member Functions | |
HostPackages (String hostname) throws DirectorException | |
HostPackages (DBObject host) throws DirectorException | |
HostPackages (DBConnection db, DBObject host) throws DirectorException | |
HostPackages (DBObject host, Enumeration appNames) throws DirectorException | |
HostPackages (DBConnection db, DBObject host, Enumeration appNames) throws DirectorException | |
void | add () throws DirectorException |
void | upgrade () throws DirectorException |
upgrade already installed packages. | |
void | removeNewer () |
Enumeration | getInstalled () |
JobNode | install () throws DirectorException |
Enumeration | getInstall () |
JobNode | remove () throws DirectorException |
Enumeration | getRemove () |
JobNode | forPkg (PackageList list, int mode) throws DirectorException |
void | resolveDependencies () throws DirectorException |
Static Public Member Functions | |
static void | main (String args[]) |
Protected Member Functions | |
Vector | computeInstalled () throws DirectorException |
boolean | autosubscribe (DBObject subscriber, DBSetIndex namesToAdd) throws DirectorException |
sfi.director.application.HostPackages.HostPackages | ( | String | hostname | ) | throws DirectorException |
sfi.director.application.HostPackages.HostPackages | ( | DBObject | host | ) | throws DirectorException |
sfi.director.application.HostPackages.HostPackages | ( | DBConnection | db, |
DBObject | host | ||
) | throws DirectorException |
sfi.director.application.HostPackages.HostPackages | ( | DBObject | host, |
Enumeration | appNames | ||
) | throws DirectorException |
sfi.director.application.HostPackages.HostPackages | ( | DBConnection | db, |
DBObject | host, | ||
Enumeration | appNames | ||
) | throws DirectorException |
void sfi.director.application.HostPackages.add | ( | ) | throws DirectorException |
References sfi.director.application.PackageList.addQualifiedPackages(), sfi.director.application.HostPackages.computeInstalled(), sfi.director.repository.DBObject.getAttribute(), and sfi.director.application.PackageList.remove().
Referenced by sfi.director.application.HostPackages.autosubscribe(), sfi.director.application.HostPackages.getInstall(), sfi.director.application.HostPackages.install(), sfi.director.application.HostPackages.removeNewer(), sfi.director.application.HostPackages.resolveDependencies(), and sfi.director.application.HostPackages.upgrade().
|
protected |
References sfi.director.application.HostPackages.add(), sfi.director.application.PackageList.addPackages(), sfi.director.application.PackageList.addQualifiedPackage(), sfi.director.application.PackageList.elementsVector(), sfi.director.repository.DBObject.getValue(), sfi.director.util.Tools.log(), sfi.director.util.Logger.NOTICE, and sfi.director.application.PackageList.requiredPackage().
Referenced by sfi.director.application.HostPackages.resolveDependencies().
|
protected |
JobNode sfi.director.application.HostPackages.forPkg | ( | PackageList | list, |
int | mode | ||
) | throws DirectorException |
References sfi.director.jobs.Job.commit(), sfi.director.util.Tools.debug(), sfi.director.application.PackageSession.flushNext(), sfi.director.repository.DBObject.getEValue(), sfi.director.repository.DBObject.getValue(), sfi.director.application.PackageSession.installPkg(), sfi.director.util.Setup.localjobqueue, sfi.director.util.Tools.log(), sfi.director.util.Logger.NOTICE, sfi.director.application.PackageSession.removePkg(), sfi.director.jobs.JobNode.setJob(), sfi.director.jobs.JobNode.setNext(), sfi.director.jobs.JobNode.setRecover(), and sfi.director.jobs.JobNode.setSub().
Referenced by sfi.director.application.HostPackages.install(), and sfi.director.application.HostPackages.remove().
Enumeration sfi.director.application.HostPackages.getInstall | ( | ) |
References sfi.director.application.HostPackages.add().
Enumeration sfi.director.application.HostPackages.getInstalled | ( | ) |
References sfi.director.application.PackageList.elements().
Enumeration sfi.director.application.HostPackages.getRemove | ( | ) |
Referenced by sfi.director.application.scripttask.SubscribeApps.exec().
JobNode sfi.director.application.HostPackages.install | ( | ) | throws DirectorException |
|
static |
JobNode sfi.director.application.HostPackages.remove | ( | ) | throws DirectorException |
References sfi.director.application.HostPackages.forPkg().
void sfi.director.application.HostPackages.removeNewer | ( | ) |
void sfi.director.application.HostPackages.resolveDependencies | ( | ) | throws DirectorException |
References sfi.director.application.HostPackages.add(), sfi.director.application.HostPackages.autosubscribe(), sfi.director.util.Setup.classesdir, sfi.director.repository.DBSet.dropIndex(), sfi.director.repository.config.DirectoryAccess.get(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBObject.getEValue(), sfi.director.util.Setup.hostsdir, sfi.director.repository.config.DirectoryAccess.replace(), and sfi.director.repository.DBSet.setupIndex().
Referenced by sfi.director.application.scripttask.ResolveDependencies.exec().
void sfi.director.application.HostPackages.upgrade | ( | ) | throws DirectorException |
upgrade already installed packages.
In place of installing subscribed packages, the installed packages are taken as the subscribed packages
References sfi.director.application.HostPackages.add(), sfi.director.application.PackageList.elements(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBObject.getValue(), sfi.director.application.PackageManager.pkgToString(), and sfi.director.repository.DBObject.removeAttribute().