Node Director
|
Given a domain builder record, slurps the matching template into the database. More...
Public Member Functions | |
JobNode | create (EventEnvironment ev) throws DirectorException |
given an EventEnvironment create a Workflow (JobNode) doing whatever this ScriptTask is intended for | |
void | setJob (RemoteJob job) |
void | exec () throws DirectorException |
Static Public Member Functions | |
static Vector | readTemplate (String templateName, Vector settings) throws DirectorException |
translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ). | |
static Vector | readTemplate (String templateName, DBObject settings) throws DirectorException |
read a template, fill in the configuration from settings and return a Vector of DBObjects. | |
static Vector | readTemplate (File templateFile, DBObject settings) throws DirectorException |
translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ). |
Given a domain builder record, slurps the matching template into the database.
JobNode sfi.director.application.scripttask.ApplyDomainTemplate.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.jobs.RemoteJob.commit(), sfi.director.jobs.Job.commit(), sfi.director.util.Tools.debug(), sfi.director.util.Options.getOptions(), sfi.director.repository.DBObject.getValue(), sfi.director.repository.DBObject.isMember(), sfi.director.util.Setup.localjobqueue, sfi.director.util.Setup.masterhost, sfi.director.jobs.RemoteJob.setArgument(), sfi.director.jobs.RemoteJob.setHost(), sfi.director.jobs.JobNode.setJob(), and sfi.director.jobs.RemoteJob.setMethod().
void sfi.director.application.scripttask.ApplyDomainTemplate.exec | ( | ) | throws DirectorException |
Implements sfi.director.executor.GenericConnection.
References sfi.director.util.Setup.fileSeparator, sfi.director.repository.config.DirectoryAccess.get(), sfi.director.jobs.RemoteJob.getArgument(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBManager.getConnection(), sfi.director.repository.config.DirectoryAccess.getDBConnection(), sfi.director.repository.config.Directory.getDirectory(), sfi.director.repository.DBObject.getDN(), sfi.director.repository.DN.getRaw(), sfi.director.repository.DBObject.getValue(), sfi.director.repository.DN.isSub(), sfi.director.util.Tools.log(), sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate(), sfi.director.repository.DBConnection.remove(), sfi.director.repository.DBObject.removeAttribute(), sfi.director.repository.DBConnection.replace(), sfi.director.repository.config.DirectoryAccess.replace(), sfi.director.util.Setup.rootDir, sfi.director.repository.DBConnection.search(), sfi.director.repository.DBConnection.SEARCH_BASEDN, sfi.director.repository.DBObject.setDN(), sfi.director.util.Options.setOption(), sfi.director.repository.DBConnection.unwrap(), and sfi.director.util.Logger.WARNING.
|
static |
translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ).
References sfi.director.repository.DBObject.addSetting().
Referenced by sfi.director.application.scripttask.ApplyDomainTemplate.exec(), sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate(), and sfi.director.repository.LDIFTree.search().
|
static |
read a template, fill in the configuration from settings and return a Vector of DBObjects.
References sfi.director.util.Setup.fileSeparator, sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate(), and sfi.director.util.Setup.rootDir.
|
static |
translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ).
References sfi.director.util.Tools.expand(), and sfi.director.repository.DBObject.getValue().
void sfi.director.application.scripttask.ApplyDomainTemplate.setJob | ( | RemoteJob | job | ) |
Implements sfi.director.executor.GenericConnection.