Node Director
|
Given a host and a Domain Builder record with appropriate 'dnszone' template configuration, update the zone serial and reload the server if necessary. 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 boolean | updateSerial (String zoneFile) throws DirectorException |
Given a host and a Domain Builder record with appropriate 'dnszone' template configuration, update the zone serial and reload the server if necessary.
JobNode sfi.director.application.scripttask.ZoneUpdated.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.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.ZoneUpdated.exec | ( | ) | throws DirectorException |
Implements sfi.director.executor.GenericConnection.
References sfi.director.util.Tools.execWait(), sfi.director.jobs.RemoteJob.getArgument(), sfi.director.util.Tools.log(), sfi.director.util.Logger.NOTICE, sfi.director.util.Tools.ShellCommand(), and sfi.director.application.scripttask.ZoneUpdated.updateSerial().
void sfi.director.application.scripttask.ZoneUpdated.setJob | ( | RemoteJob | job | ) |
Implements sfi.director.executor.GenericConnection.
|
static |
References sfi.director.util.ChecksumEmbedder.computeChecksum(), sfi.director.retriever.RemoteFile.connectSend(), sfi.director.util.ChecksumEmbedder.embedChecksum(), sfi.director.retriever.RetrieverManager.getConnection(), sfi.director.util.Logger.INFO, sfi.director.util.ChecksumEmbedder.isAltered(), sfi.director.util.Tools.log(), sfi.director.retriever.FileInsertRetriever.magicend, sfi.director.retriever.FileInsertRetriever.magicstart, and sfi.director.util.Logger.NOTICE.
Referenced by sfi.director.application.scripttask.ZoneUpdated.exec().