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

Module processor

source code

Classes [hide private]
  WithGroup
Wraps a ServiceInterfacePrx instance and applies a "omero.group" to the passed context on every invotation.
  ProcessI
Wrapper around a subprocess.Popen instance.
  UseSessionHolder
  ProcessorI
Functions [hide private]
 
with_context(func, context)
Decorator for invoking Ice methods with a context
source code
 
usermode_processor(client, serverid="UsermodeProcessor", cfg=None, accepts_list=None, stop_event=None)
Creates an activates a usermode processor for the given client.
source code

Imports: os, sys, time, signal, logging, traceback, exceptions, subprocess, path, Ice, omero, create_path, remove_path, locked, remoted, perf, wraps


Function Details [hide private]

usermode_processor(client, serverid="UsermodeProcessor", cfg=None, accepts_list=None, stop_event=None)

source code 

Creates an activates a usermode processor for the given client. It is the responsibility of the client to call "cleanup()" on the ProcessorI implementation which is returned.

cfg is the path to an --Ice.Config-valid file or files. If none is given, the value of ICE_CONFIG will be taken from the environment if available. Otherwise, all properties will be taken from the client instance.

accepts_list is the list of IObject instances which will be passed to omero.api.IScripts.validateScript. If none is given, only the current Experimenter's own object will be passed.

stop_event is an threading.Event. One will be acquired from omero.util.concurrency.get_event if none is provided.