Package flumotion :: Package admin :: Package command :: Module common :: Class AdminCommand
[hide private]

Class AdminCommand

source code

                    object --+        
                             |        
extern.command.command.Command --+    
                                 |    
       extern.log.log.Loggable --+    
                                 |    
    monitor.nagios.util.LogCommand --+
                                     |
                                    AdminCommand
Known Subclasses:

Instance Methods [hide private]
int
do(self, args)
Override me to implement the functionality of the command.
source code
 
_callback(self, result, args) source code
 
doCallback(self, args)
Subclasses should implement this as an alternative to the normal do method.
source code
defer.Deferred firing flumotion.admin.admin.AdminModel
connectToManager(self, connection)
Connect to a manager.
source code
 
_connectToManagerCb(self, result, adminMedium) source code
 
_connectToManagerEb(self, failure) source code

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

Inherited from extern.command.command.Command: addOptions, getFullName, getRootCommand, handleOptions, 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]

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

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]

do(self, args)

source code 

Override me to implement the functionality of the command.

Returns: int
an exit code, or None if no actual action was taken.
Overrides: extern.command.command.Command.do
(inherited documentation)

doCallback(self, args)

source code 

Subclasses should implement this as an alternative to the normal do method. It will be called after a connection to the manager is made.

Don't forget to return a deferred you create to properly chain execution.

connectToManager(self, connection)

source code 

Connect to a manager.

Parameters:
Returns: defer.Deferred firing flumotion.admin.admin.AdminModel