Home | Trees | Indices | Help |
|
---|
|
ClusterShell simple execution worker Class.
It runs commands locally. If a node list is provided, one command will be launched for each node and specific keywords will be replaced based on node name and rank.
Local shell usage example:
>>> worker = ExecWorker(nodeset, handler=MyEventHandler(), ... timeout=30, command="/bin/uptime") >>> task.schedule(worker) # schedule worker for execution >>> task.run() # run
Local copy usage example:
>>> worker = ExecWorker(nodeset, handler=MyEventHandler(), ... source="/etc/my.cnf", ... dest="/etc/my.cnf.bak") >>> task.schedule(worker) # schedule worker for execution >>> task.run() # run
connect_timeout option is ignored by this worker.
|
|||
SHELL_CLASS Run a simple local command. |
|||
COPY_CLASS Run a local `cp' between a source and destination. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Create an ExecWorker and its engine client instances.
|
Create several shell and copy engine client instances based on worker properties. Additional arguments in `kwargs' will be used for client creation. There will be one client per node in self.nodes |
Used by upper layer to get the list of underlying created engine clients.
|
Tell worker to close its writer file descriptors once flushed. Do not perform writes after this call. |
Abort processing any action by this worker.
|
Update on node timeout.
|
Must be called by each client when closing. If they are all closed, trigger the required events. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Dec 21 14:07:55 2016 | http://epydoc.sourceforge.net |