MacroCommand¶
MacroCommand
The MacroCommand class is a macro class for all the macro commands for interacting with multiple commands
- class DIRAC.ResourceStatusSystem.Command.MacroCommand.MacroCommand¶
Bases:
Command
As of today, it is not used.
- __init__()¶
- doCache()¶
To be extended/replaced by real commands
- doCommand()¶
Calls command.doCommand for every command in the list of self.commands
- doMaster()¶
To be extended/replaced by real commands
- doNew(masterParams=None)¶
To be extended/replaced by real commands
- returnERROR(s_obj)¶
Overwrites S_ERROR message with command name, much easier to debug
- returnSObj(s_obj)¶
Overwrites S_ERROR message with command name, much easier to debug
- setArgs(argsListIn=None)¶
Set the arguments of the commands.
- Params
argsListIn
: a list of args tuples, or just a tuple of args
- setClient(clientListIn=None)¶
Set self.clients. If not set, a standard client will be instantiated. Then, set the clients used by the commands.
- Params
clientListIn
: a list of client object
- setCommands(commandsListIn=None)¶
Method to be called as first at every MacroCommand instantiation.
- Params
commandsListIn
: a list of command objects