Package omero :: Package util :: Class Servant
[hide private]
[frames] | no frames]

Class Servant

source code


Abstract servant which can be used along with a slice2py generated dispatch class as the base type of high-level servants. These provide resource cleanup as per the omero.util.Server class.

By passing "needs_session = True" to this constructor, an internal session will be created and stored in ServerContext as well as registered with self.resources

Instance Methods [hide private]
 
__init__(self, ctx, needs_session=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
cleanup(self)
Cleanups all resoures created by this servant.
source code
 
__del__(self) source code

Inherited from SimpleServant: setProxy

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ctx, needs_session=False)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

cleanup(self)

source code 

Cleanups all resoures created by this servant. Calling cleanup multiple times should be safe.