Node Director
|
Given a host and a Domain Builder record with appropriate domain template configuration, reloads/restarts the corresponding service. 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 |
Given a host and a Domain Builder record with appropriate domain template configuration, reloads/restarts the corresponding service.
JobNode sfi.director.application.scripttask.ReloadService.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.repository.DBObject.addSetting(), sfi.director.jobs.RemoteJob.commit(), sfi.director.jobs.Job.commit(), sfi.director.util.Tools.debug(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBObject.getEValue(), sfi.director.util.Options.getOption(), sfi.director.util.Options.getOptions(), sfi.director.repository.DBObject.getValue(), sfi.director.repository.DBObject.isMember(), sfi.director.util.Setup.localjobqueue, sfi.director.util.Tools.log(), sfi.director.jobs.RemoteJob.setArgument(), sfi.director.jobs.RemoteJob.setHost(), sfi.director.jobs.JobNode.setJob(), sfi.director.jobs.RemoteJob.setMethod(), and sfi.director.util.Logger.WARNING.
void sfi.director.application.scripttask.ReloadService.exec | ( | ) | throws DirectorException |
Implements sfi.director.executor.GenericConnection.
References sfi.director.util.ChecksumEmbedder.computeChecksum(), sfi.director.util.ChecksumEmbedder.embedChecksum(), sfi.director.util.Tools.execWait(), sfi.director.jobs.RemoteJob.getArgument(), sfi.director.util.ChecksumEmbedder.isAltered(), sfi.director.util.Tools.log(), sfi.director.util.Logger.NOTICE, and sfi.director.util.Tools.ShellCommand().
void sfi.director.application.scripttask.ReloadService.setJob | ( | RemoteJob | job | ) |
Implements sfi.director.executor.GenericConnection.