Package flumotion :: Package admin :: Package command :: Module main :: Class Command
[hide private]

Class Command

source code

                    object --+        
                             |        
extern.command.command.Command --+    
                                 |    
       extern.log.log.Loggable --+    
                                 |    
    monitor.nagios.util.LogCommand --+
                                     |
                                    Command

Instance Methods [hide private]
 
addOptions(self)
Override me to add options to the parser.
source code
 
handleOptions(self, options)
Handle the parsed options.
source code
int
parse(self, argv)
Parse the given arguments and act on them.
source code
 
run(self)
Run the reactor.
source code
 
connect(self, options) source code
 
_connectedCb(self, result) source code
 
_connectedEb(self, failure) source code

Inherited from monitor.nagios.util.LogCommand: __init__, debug

Inherited from extern.command.command.Command: do, getFullName, getRootCommand, outputHelp, outputUsage

Inherited from extern.command.command.Command (private): _getStdout

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from extern.log.log.Loggable: __providedBy__, __provides__, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  usage = '%prog %command'
short one-line usage string; %command gets expanded to a sub-command or [commands] as appropriate.
  description = 'Run commands on Flumotion manager.'
longer paragraph explaining the command
  loginDeferred = None
hash(x)
  medium = None
hash(x)
  subCommandClasses = [<class 'flumotion.admin.command.component...
hash(x)

Inherited from extern.command.command.Command: aliasedSubCommands, aliases, name, parentCommand, parser, subCommands, summary

Inherited from extern.log.log.Loggable: __implemented__, logCategory

Properties [hide private]

Inherited from extern.command.command.Command: stderr, stdout

Inherited from object: __class__

Method Details [hide private]

addOptions(self)

source code 

Override me to add options to the parser.

Overrides: extern.command.command.Command.addOptions
(inherited documentation)

handleOptions(self, options)

source code 

Handle the parsed options.

Overrides: extern.command.command.Command.handleOptions
(inherited documentation)

parse(self, argv)

source code 

Parse the given arguments and act on them.

Parameters:
  • argv - list of arguments to parse
Returns: int
an exit code, or None if no actual action was taken.
Overrides: extern.command.command.Command.parse
(inherited documentation)

run(self)

source code 

Run the reactor.

Resets .exitStatus, and returns its value after running the reactor.


Class Variable Details [hide private]

subCommandClasses

hash(x)

Value:
[<class 'flumotion.admin.command.component.Component'>,
 <class 'flumotion.admin.command.manager.Manager'>,
 <class 'flumotion.admin.command.worker.Worker'>]