Package flumotion :: Package admin :: Package command :: Module component :: Class Component
[hide private]

Class Component

source code

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

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
 
_callback(self, result) source code
 
pprint(self, comps) source code
 
print_components(self, components, workers) source code

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

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

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

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

Class Variables [hide private]
  description = "Act on a component."
longer paragraph explaining the command
  usage = "-i [component id]"
short one-line usage string; %command gets expanded to a sub-command or [commands] as appropriate.
  subCommandClasses = [Delete, Invoke, List, DetailedList, Upstr...
  workerHeavenState = None

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

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

Instance Variables [hide private]
  componentId = None
the component id, passed as an argument
flumotion.common.state.AdminComponentState componentState = None
the component state; set when logged in to manager.
flumotion.common.state.AdminPlanetState planetState = None
the planet state; set when logged in to manager.
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)

Class Variable Details [hide private]

subCommandClasses

Value:
[Delete, Invoke, List, DetailedList, UpstreamList, DownstreamList, Moo\
d, Property, Start, Stop]