Package omero :: Module processor :: Class ProcessorI
[hide private]
[frames] | no frames]

Class ProcessorI

source code


Instance Methods [hide private]
 
__init__(self, ctx, needs_session=True, use_session=None, accepts_list=[], cfg=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setProxy(self, prx)
Overrides the default action in order to register this proxy with the session's sharedResources to register for callbacks.
source code
 
user_client(self, agent)
Creates an omero.client instance for use by users.
source code
 
internal_session(self)
Returns the session which should be used for lookups by this instance.
source code
 
register_session(self, session) source code
 
lookup(self, job) source code
 
willAccept(self, userContext, groupContext, scriptContext, cb, current=None) source code
 
requestRunning(self, cb, current=None) source code
 
parseJob(self, session, job, current=None) source code
 
processJob(self, session, params, job, current=None) source code
 
process(self, client, session, job, current, params, properties={}, iskill=True)
session: session uuid, used primarily if client is None client: an omero.client object which should be attached to a session
source code

Inherited from util.Servant: __del__, cleanup

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

Instance Variables [hide private]
  use_session
If set, this session will be returned from internal_session and the "needs_session" setting ignored.
  accepts_list
A list of contexts which will be accepted by this user-mode processor.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ctx, needs_session=True, use_session=None, accepts_list=[], cfg=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

setProxy(self, prx)

source code 

Overrides the default action in order to register this proxy with the session's sharedResources to register for callbacks. The on_newsession handler will also keep new sessions informed.

See ticket:2304

Overrides: util.SimpleServant.setProxy

internal_session(self)

source code 

Returns the session which should be used for lookups by this instance. Some methods will create a session based on the session parameter. In these cases, the session will belong to the user who is running a script.

willAccept(self, userContext, groupContext, scriptContext, cb, current=None)

source code 
Decorators:
  • @remoted

requestRunning(self, cb, current=None)

source code 
Decorators:
  • @remoted

parseJob(self, session, job, current=None)

source code 
Decorators:
  • @remoted

processJob(self, session, params, job, current=None)

source code 
Decorators:
  • @remoted

process(self, client, session, job, current, params, properties={}, iskill=True)

source code 

session: session uuid, used primarily if client is None client: an omero.client object which should be attached to a session

Decorators:
  • @perf