Node Director
|
Public Member Functions | |
RPMPackageHandler () | |
RPMPackageHandler (String name) | |
Vector | pkgFromFile (String filename, sfi.director.util.Options opts) |
Vector | inventory () |
Vector | inventory (String cmd[]) |
Public Member Functions inherited from sfi.director.application.FilePackageHandler | |
FilePackageHandler (String name) | |
String | name () |
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) |
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 | |
void | targetInstallPkgs (Vector pkgs) throws DirectorException |
install a whole bunch of packages. | |
void | targetRemovePkgs (Vector pkgs) throws DirectorException |
remove a whole bunch of packages. | |
Protected Member Functions inherited from sfi.director.application.FilePackageHandler | |
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 | 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 |
Additional Inherited Members | |
Static Protected Attributes inherited from sfi.director.application.FilePackageHandler | |
static String | MODE_INSTALL = "install" |
static String | MODE_REMOVE = "remove" |
static String | MODE_FLUSH = "flush" |
static String | MODE_CLEANUP = "cleanup" |
sfi.director.application.RPMPackageHandler.RPMPackageHandler | ( | ) |
sfi.director.application.RPMPackageHandler.RPMPackageHandler | ( | String | name | ) |
Vector sfi.director.application.RPMPackageHandler.inventory | ( | ) |
Reimplemented from sfi.director.application.FilePackageHandler.
Referenced by sfi.director.application.RPMPackageHandler.pkgFromFile().
Vector sfi.director.application.RPMPackageHandler.inventory | ( | String | cmd[] | ) |
References sfi.director.util.Tools.execUtility(), and sfi.director.util.Tools.split().
Vector sfi.director.application.RPMPackageHandler.pkgFromFile | ( | String | filename, |
sfi.director.util.Options | opts | ||
) |
Reimplemented from sfi.director.application.FilePackageHandler.
References sfi.director.util.Tools.execUtility(), and sfi.director.application.RPMPackageHandler.inventory().
|
protected |
install a whole bunch of packages.
This method is run on target side if the default install()/remove()/flush() methods are active.
Reimplemented from sfi.director.application.FilePackageHandler.
References sfi.director.repository.DBObject.getValue(), sfi.director.util.Tools.log(), sfi.director.application.FilePackageHandler.makeAndRunCommand(), and sfi.director.util.Logger.NOTICE.
|
protected |
remove a whole bunch of packages.
This method is run on target side if the default install()/remove()/flush() methods are active.
Reimplemented from sfi.director.application.FilePackageHandler.
References sfi.director.repository.DBObject.getValue(), sfi.director.util.Tools.log(), sfi.director.application.FilePackageHandler.makeAndRunCommand(), and sfi.director.util.Logger.NOTICE.