Node Director
|
Install missing applications on a host. More...
Public Member Functions | |
JobNode | create (EventEnvironment ev) throws DirectorException |
given an EventEnvironment create a Workflow (JobNode) doing whatever this ScriptTask is intended for | |
JobNode | docreate (HostPackages hpk, DBObject host) throws DirectorException |
JobNode | remoteMethod (DBObject config, Options opt, EventEnvironment ev) throws DirectorException |
void | setJob (RemoteJob job) |
void | exec () throws DirectorException |
Protected Member Functions | |
JobNode | debianTaskPackage (DBObject config, Options opt, EventEnvironment ev) throws DirectorException |
void | pushScheduled () throws DirectorException |
void | createPackage () throws DirectorException |
Install missing applications on a host.
JobNode sfi.director.application.scripttask.AppInstallHost.create | ( | EventEnvironment | ev | ) | throws DirectorException |
given an EventEnvironment create a Workflow (JobNode) doing whatever this ScriptTask is intended for
DirectorException | class refuses to be responsible for this event |
ev | the environment of the event that lead to calling create() |
Implements sfi.director.application.ScriptTask.
References sfi.director.application.scripttask.AppInstallHost.debianTaskPackage(), sfi.director.util.Tools.debug(), sfi.director.application.scripttask.AppInstallHost.docreate(), sfi.director.repository.DBObject.getAttribute(), sfi.director.util.Options.getOption(), sfi.director.util.Options.getOptions(), sfi.director.repository.DBObject.getValue(), sfi.director.repository.DBObject.isMember(), and sfi.director.application.HostPackages.removeNewer().
|
protected |
References sfi.director.retriever.RemoteFile.connectRetrieve(), sfi.director.retriever.RemoteFile.connectSend(), sfi.director.repository.DBSet.elements(), sfi.director.util.Setup.fileSeparator, sfi.director.repository.DBObject.getAttribute(), sfi.director.retriever.RetrieverManager.getConnection(), sfi.director.jobs.RemoteJob.getInputFile(), sfi.director.util.Options.getOption(), sfi.director.jobs.RemoteJob.getOutputFile(), sfi.director.repository.DBObject.getValue(), sfi.director.util.Tools.log(), sfi.director.application.DEBPackageHandler.makeTaskPackage(), sfi.director.repository.DBSet.restore(), and sfi.director.util.Logger.WARNING.
Referenced by sfi.director.application.scripttask.AppInstallHost.exec().
|
protected |
JobNode sfi.director.application.scripttask.AppInstallHost.docreate | ( | HostPackages | hpk, |
DBObject | host | ||
) | throws DirectorException |
Reimplemented in sfi.director.application.scripttask.AppRemoveHost, and sfi.director.application.scripttask.AppUpgradeHost.
Referenced by sfi.director.application.scripttask.AppInstallHost.create().
void sfi.director.application.scripttask.AppInstallHost.exec | ( | ) | throws DirectorException |
|
protected |
References sfi.director.retriever.RemoteFile.connectRetrieve(), sfi.director.repository.config.DirectoryAccess.get(), sfi.director.jobs.RemoteJob.getArgument(), sfi.director.retriever.RetrieverManager.getConnection(), sfi.director.jobs.RemoteJob.getInputFile(), sfi.director.util.Setup.hostsdir, sfi.director.repository.DBObject.removeAttribute(), sfi.director.repository.config.DirectoryAccess.replace(), and sfi.director.util.Tools.split().
Referenced by sfi.director.application.scripttask.AppInstallHost.exec(), and sfi.director.application.scripttask.AppInstallHost.remoteMethod().
JobNode sfi.director.application.scripttask.AppInstallHost.remoteMethod | ( | DBObject | config, |
Options | opt, | ||
EventEnvironment | ev | ||
) | throws DirectorException |
References sfi.director.repository.DBSet.add(), sfi.director.jobs.RemoteJob.commit(), sfi.director.jobs.Job.commit(), sfi.director.retriever.RemoteFile.connectSend(), sfi.director.repository.DBSet.dump(), sfi.director.retriever.RetrieverManager.getConnection(), sfi.director.util.Setup.localjobqueue, sfi.director.util.Setup.masterhost, sfi.director.jobs.JobNode.nextTmpFile(), sfi.director.application.scripttask.AppInstallHost.pushScheduled(), 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(), sfi.director.jobs.JobNode.setNext(), sfi.director.jobs.RemoteJob.setOutputFile(), and sfi.director.jobs.JobNode.setSub().
Referenced by sfi.director.application.scripttask.AppInstallHost.debianTaskPackage().
void sfi.director.application.scripttask.AppInstallHost.setJob | ( | RemoteJob | job | ) |
Implements sfi.director.executor.GenericConnection.