Package schrodinger :: Package job :: Module jobcontrol :: Class _JobResourceHolder
[hide private]
[frames] | no frames]

Class _JobResourceHolder

object --+
         |
        _JobResourceHolder

A helper class to deal with mmlib resource de-allocation. The idea is that instances of this class can be held to prevent the Job resources from being cleaned up. When the object is garbage collected, the resources will be freed.

Instance Methods [hide private]
 
__init__(self, handle, initializer)
x.__init__(...) initializes x; see help(type(x)) for signature
 
cleanup(self)
Clean up the mmjob handle and mmlibs.
 
__del__(self)
Clean up the mmjob handle and mmlibs.
 
__copy__(self)
Allow only single instance managing the handle.
 
__deepcopy__(self, memo=None)
Allow only single instance managing the handle.

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, handle, initializer)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

cleanup(self)

 

Clean up the mmjob handle and mmlibs.

If cleanup is necessary at a certain time and you know it's safe, you can call this method.