Node Director
|
Public Member Functions | |
FilePackageHandler (String name) | |
String | name () |
Vector | pkgFromFile (String filename, sfi.director.util.Options opts) |
PackageInstaller | installerFor (DBObject pkg, DBObject repository, DBObject host) |
returns an PackageInstaller object if package can be installed by this handler, null otherwise. | |
JobNode | installPkg (FilePackageInstaller installer, DBObject pkg, DBObject repository, DBObject host) |
return a job installing exactly one package. | |
JobNode | removePkg (FilePackageInstaller installer, DBObject pkg, DBObject repository, DBObject host) |
return a job removing exactly one package. | |
JobNode | flushPkgs (FilePackageInstaller installer, DBObject host) |
return a job cleaning up after successfull install/remove. | |
JobNode | cleanupPkgs (FilePackageInstaller installer, DBObject host) |
return a job cleaning up after unsuccessfull install/remove. | |
void | setupJob (RemoteJob job, DBObject pkg, DBObject repository, DBObject host) |
boolean | accept (RemoteJob job) |
Connection | connect (final RemoteJob job) |
Vector | inventory () |
Public Member Functions inherited from sfi.director.application.PackageHandler | |
Vector | pkgFromFile (String filename, Options opts) |
Public Member Functions inherited from sfi.director.util.FWManagerDriver | |
Connection | connect (RemoteJob job) |
Protected Member Functions | |
boolean | isResponsibleFor (DBObject pkg, DBObject repository, DBObject host) |
returns true if handler feels responsible for this type of packages. | |
PackageInstaller | installer () |
PackageInstaller | simpleInstaller () |
JobNode | makeJob (String mode, FilePackageInstaller installer, DBObject pkg, DBObject repository, DBObject host) |
void | install (RemoteJob job) throws DirectorException |
void | remove (RemoteJob job) throws DirectorException |
void | flush (RemoteJob job) throws DirectorException |
void | targetRemovePkgs (Vector pkgs) throws DirectorException |
remove a whole bunch of packages. | |
void | targetInstallPkgs (Vector pkgs) throws DirectorException |
install a whole bunch of packages. | |
void | cleanup (RemoteJob job) throws DirectorException |
String | listFileName (RemoteJob job) throws DirectorException |
void | addToList (RemoteJob job, String mode) throws DirectorException |
void | addToList (RemoteJob job, String mode, File file) throws DirectorException |
DBSet | readList (RemoteJob job) throws DirectorException |
void | makeAndRunCommand (String cmdroot[], Vector args) throws DirectorException |
Static Protected Attributes | |
static String | MODE_INSTALL = "install" |
static String | MODE_REMOVE = "remove" |
static String | MODE_FLUSH = "flush" |
static String | MODE_CLEANUP = "cleanup" |
sfi.director.application.FilePackageHandler.FilePackageHandler | ( | String | name | ) |
boolean sfi.director.application.FilePackageHandler.accept | ( | RemoteJob | job | ) |
Implements sfi.director.util.FWManagerDriver.
References sfi.director.jobs.RemoteJob.getMethod(), and sfi.director.application.FilePackageHandler.name().
|
protected |
|
protected |
|
protected |
References sfi.director.repository.DBSet.elements(), sfi.director.repository.DBObject.getValue(), sfi.director.application.FilePackageHandler.listFileName(), and sfi.director.application.FilePackageHandler.readList().
Referenced by sfi.director.application.FilePackageHandler.connect(), and sfi.director.application.FilePackageHandler.flush().
JobNode sfi.director.application.FilePackageHandler.cleanupPkgs | ( | FilePackageInstaller | installer, |
DBObject | host | ||
) |
return a job cleaning up after unsuccessfull install/remove.
References sfi.director.application.FilePackageHandler.makeJob(), and sfi.director.application.FilePackageHandler.MODE_CLEANUP.
Referenced by sfi.director.application.FilePackageInstaller.cleanup().
Connection sfi.director.application.FilePackageHandler.connect | ( | final RemoteJob | job | ) |
References sfi.director.application.FilePackageHandler.cleanup(), sfi.director.application.FilePackageHandler.flush(), sfi.director.jobs.RemoteJob.getMethod(), sfi.director.application.FilePackageHandler.install(), sfi.director.application.FilePackageHandler.MODE_CLEANUP, sfi.director.application.FilePackageHandler.MODE_FLUSH, sfi.director.application.FilePackageHandler.MODE_INSTALL, sfi.director.application.FilePackageHandler.MODE_REMOVE, and sfi.director.application.FilePackageHandler.remove().
|
protected |
References sfi.director.application.FilePackageHandler.cleanup(), sfi.director.repository.DBSet.elements(), sfi.director.repository.DBObject.getValue(), sfi.director.application.FilePackageHandler.install(), sfi.director.application.FilePackageHandler.MODE_INSTALL, sfi.director.application.FilePackageHandler.MODE_REMOVE, sfi.director.application.FilePackageHandler.readList(), sfi.director.application.FilePackageHandler.targetInstallPkgs(), and sfi.director.application.FilePackageHandler.targetRemovePkgs().
Referenced by sfi.director.application.FilePackageHandler.connect().
JobNode sfi.director.application.FilePackageHandler.flushPkgs | ( | FilePackageInstaller | installer, |
DBObject | host | ||
) |
return a job cleaning up after successfull install/remove.
The job is run after all the installPkg() jobs have successfully completed. Some FilePackageHandlers will only copy the packages over in a temp dir or will remember its URL during install()/remove() and will only actually install or remove packages during the flush() stage.
References sfi.director.application.FilePackageHandler.makeJob(), and sfi.director.application.FilePackageHandler.MODE_FLUSH.
Referenced by sfi.director.application.FilePackageInstaller.flush().
|
protected |
Reimplemented in sfi.director.application.DEBPackageHandler, sfi.director.application.INFAppUpdatePackageHandler, sfi.director.application.SUNPatchPackageHandler, sfi.director.application.Director3PackageHandler, and sfi.director.application.SUNPackageHandler.
References sfi.director.application.FilePackageHandler.addToList(), sfi.director.retriever.RetrieverManager.getConnection(), sfi.director.application.FilePackageHandler.MODE_INSTALL, and sfi.director.retriever.RemoteFile.retrieve().
Referenced by sfi.director.application.FilePackageHandler.connect(), and sfi.director.application.FilePackageHandler.flush().
|
protected |
PackageInstaller sfi.director.application.FilePackageHandler.installerFor | ( | DBObject | pkg, |
DBObject | repository, | ||
DBObject | host | ||
) |
returns an PackageInstaller object if package can be installed by this handler, null otherwise.
Implements sfi.director.application.PackageHandler.
References sfi.director.application.FilePackageHandler.installer(), and sfi.director.application.FilePackageHandler.isResponsibleFor().
JobNode sfi.director.application.FilePackageHandler.installPkg | ( | FilePackageInstaller | installer, |
DBObject | pkg, | ||
DBObject | repository, | ||
DBObject | host | ||
) |
return a job installing exactly one package.
References sfi.director.application.FilePackageHandler.makeJob(), and sfi.director.application.FilePackageHandler.MODE_INSTALL.
Referenced by sfi.director.application.FilePackageInstaller.installPkg().
Vector sfi.director.application.FilePackageHandler.inventory | ( | ) |
Implements sfi.director.application.PackageHandler.
Reimplemented in sfi.director.application.DEBPackageHandler, sfi.director.application.RPMPackageHandler, sfi.director.application.INFAppUpdatePackageHandler, sfi.director.application.SUNPatchPackageHandler, sfi.director.application.Director3PackageHandler, and sfi.director.application.SUNPackageHandler.
|
protected |
returns true if handler feels responsible for this type of packages.
References sfi.director.repository.DBObject.getValue(), and sfi.director.application.FilePackageHandler.name().
Referenced by sfi.director.application.FilePackageHandler.installerFor(), and sfi.director.application.FilePackageInstaller.isResponsibleFor().
|
protected |
|
protected |
References sfi.director.util.Tools.debug(), sfi.director.util.Tools.execWait(), sfi.director.util.Lock.LocalLock(), sfi.director.application.FilePackageHandler.name(), and sfi.director.util.Lock.unlock().
Referenced by sfi.director.application.RPMPackageHandler.targetInstallPkgs(), and sfi.director.application.RPMPackageHandler.targetRemovePkgs().
|
protected |
References sfi.director.jobs.RemoteJob.commit(), sfi.director.jobs.Job.commit(), sfi.director.util.Tools.expand(), sfi.director.repository.DBObject.getEValue(), sfi.director.repository.DBObject.getValue(), sfi.director.application.FilePackageInstaller.id, sfi.director.util.Setup.localjobqueue, sfi.director.application.FilePackageHandler.name(), sfi.director.jobs.RemoteJob.setArgument(), sfi.director.jobs.RemoteJob.setHost(), sfi.director.jobs.RemoteJob.setInputFile(), sfi.director.jobs.JobNode.setJob(), sfi.director.jobs.RemoteJob.setMethod(), and sfi.director.application.FilePackageHandler.setupJob().
Referenced by sfi.director.application.FilePackageHandler.cleanupPkgs(), sfi.director.application.FilePackageHandler.flushPkgs(), sfi.director.application.FilePackageHandler.installPkg(), and sfi.director.application.FilePackageHandler.removePkg().
String sfi.director.application.FilePackageHandler.name | ( | ) |
Implements sfi.director.util.FWManagerDriver.
Referenced by sfi.director.application.FilePackageHandler.accept(), sfi.director.application.DEBPackageHandler.aptInstall(), sfi.director.application.DEBPackageHandler.aptRemove(), sfi.director.application.FilePackageHandler.FilePackageHandler(), sfi.director.application.SUNPatchPackageHandler.inventory(), sfi.director.application.FilePackageHandler.isResponsibleFor(), sfi.director.application.FilePackageHandler.makeAndRunCommand(), sfi.director.application.DEBPackageHandler.makeDependency(), sfi.director.application.FilePackageHandler.makeJob(), sfi.director.application.DEBPackageHandler.makeTaskPackage(), sfi.director.application.SUNPackageHandler.pkgsFromCommand(), and sfi.director.application.SUNPackageHandler.remove().
Vector sfi.director.application.FilePackageHandler.pkgFromFile | ( | String | filename, |
sfi.director.util.Options | opts | ||
) |
|
protected |
References sfi.director.repository.DBSet.add(), sfi.director.repository.DBConnection.close(), sfi.director.repository.DBManager.getConnection(), sfi.director.application.FilePackageHandler.listFileName(), sfi.director.repository.DBConnection.search(), and sfi.director.repository.DBConnection.unwrap().
Referenced by sfi.director.application.FilePackageHandler.cleanup(), and sfi.director.application.FilePackageHandler.flush().
|
protected |
Reimplemented in sfi.director.application.DEBPackageHandler, sfi.director.application.INFAppUpdatePackageHandler, sfi.director.application.SUNPatchPackageHandler, sfi.director.application.Director3PackageHandler, and sfi.director.application.SUNPackageHandler.
References sfi.director.application.FilePackageHandler.addToList(), and sfi.director.application.FilePackageHandler.MODE_REMOVE.
Referenced by sfi.director.application.FilePackageHandler.connect().
JobNode sfi.director.application.FilePackageHandler.removePkg | ( | FilePackageInstaller | installer, |
DBObject | pkg, | ||
DBObject | repository, | ||
DBObject | host | ||
) |
return a job removing exactly one package.
References sfi.director.application.FilePackageHandler.makeJob(), and sfi.director.application.FilePackageHandler.MODE_REMOVE.
Referenced by sfi.director.application.FilePackageInstaller.removePkg().
|
protected |
Referenced by sfi.director.application.FilePackageHandler.installer().
|
protected |
install a whole bunch of packages.
This method is run on target side if the default install()/remove()/flush() methods are active.
Reimplemented in sfi.director.application.DEBPackageHandler, and sfi.director.application.RPMPackageHandler.
Referenced by sfi.director.application.FilePackageHandler.flush().
|
protected |
remove a whole bunch of packages.
This method is run on target side if the default install()/remove()/flush() methods are active.
Reimplemented in sfi.director.application.DEBPackageHandler, and sfi.director.application.RPMPackageHandler.
Referenced by sfi.director.application.FilePackageHandler.flush().
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |