Package omero :: Package plugins :: Module node :: Class NodeControl
[hide private]
[frames] | no frames]

Class NodeControl

source code


Instance Methods [hide private]
 
help(self, args=None) source code
 
_likes(self, args)
Checks whether or not it is likely for the given args to be run successfully by the given command.
source code
 
_noargs(self)
Method called when __call__() is called without any arguments.
source code
 
__call__(self, *args)
Main dispatch method for a control instance.
source code
 
_handleNZRC(self, nzrc)
Set the return value from nzrc on the context, and print out the last two lines of any error messages if present.
source code
 
start(self, name=None, sync=False) source code
 
status(self, name=None) source code
 
stop(self, name=None, sync=False) source code
 
kill(self, name=None, sync=False) source code

Inherited from cli.BaseControl: __init__

Method Details [hide private]

help(self, args=None)

source code 
Overrides: cli.BaseControl.help

_likes(self, args)

source code 

Checks whether or not it is likely for the given args to be run successfully by the given command. This is useful for plugins which have significant start up times.

Simply return True is a possible solution. The default implementation checks that the subclass has a method matching the first argument, such that the default __call__() implementation could dispatch to it. Or if no arguments are given, True is returned since self._noargs() can be called.

Overrides: cli.BaseControl._likes
(inherited documentation)

_noargs(self)

source code 

Method called when __call__() is called without any arguments. Some implementations may want to drop the user into a shell or read from standard in. By default, help() is printed.

Overrides: cli.BaseControl._noargs
(inherited documentation)

__call__(self, *args)
(Call operator)

source code 

Main dispatch method for a control instance. The default implementation assumes that the *args consists of either no elements or exactly one list of strings ==> (["str"],)

If no args are present, _noargs is called. Subclasses may want to read from stdin or drop into a shell from _noargs().

Otherwise, the rest of the arguments are passed to the method named by the first argument, if _likes() returns True.

Overrides: cli.BaseControl.__call__
(inherited documentation)