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

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]
  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 = [<class 'flumotion.admin.command.component...
hash(x)
  workerHeavenState = None
hash(x)

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.
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)

Class Variable Details [hide private]

subCommandClasses

hash(x)

Value:
[<class 'flumotion.admin.command.component.Delete'>,
 <class 'flumotion.admin.command.component.Invoke'>,
 <class 'flumotion.admin.command.component.List'>,
 <class 'flumotion.admin.command.component.DetailedList'>,
 <class 'flumotion.admin.command.component.UpstreamList'>,
 <class 'flumotion.admin.command.component.Mood'>,
 <class 'flumotion.admin.command.component.Property'>,
 <class 'flumotion.admin.command.component.Start'>,
...