Central client-side blitz entry point, and should be in sync with
OmeroJava's omero.client and OmeroCpp's omero::client.
|
__init__(self,
args=None,
id=None,
host=None,
port=None,
pmap=None)
Constructor which takes one sys.argv-style list, one initialization
data, one host string, one port integer, and one properties map, in
that order. |
source code
|
|
|
_repair(self,
args,
id,
host,
port,
pmap)
Takes the 5 arguments passed to the __init__ method and attempts to
re-order them based on their types. |
source code
|
|
|
_initData(self,
id)
Initializes the current client via an Ice.InitializationData
instance. |
source code
|
|
|
setAgent(self,
agent)
Sets the omero.model.Session#getUserAgent() string for this client. |
source code
|
|
|
isSecure(self)
Specifies whether or not this client was created via a call to
createClient with a boolean of False. |
source code
|
|
|
createClient(self,
secure)
Creates a possibly insecure omero.client instance and calls
joinSession using the current getSessionId value. |
source code
|
|
|
|
|
getCommunicator(self)
Returns the Ice.Communicator for this instance or throws an exception
if None. |
source code
|
|
|
getAdapter(self)
Returns the Ice.ObjectAdapter for this instance or throws an
exception if None. |
source code
|
|
|
getSession(self)
Returns the current active session or throws an exception if none has
been created since the last closeSession() |
source code
|
|
|
|
|
getImplicitContext(self)
Returns the Ice.ImplicitContext which defines what properties will be
sent on every method invocation. |
source code
|
|
|
getProperties(self)
Returns the active properties for this instance |
source code
|
|
|
getProperty(self,
key)
Returns the property for the given key or "" if none
present |
source code
|
|
|
getPropertyMap(self,
properties=None)
Returns all properties which are prefixed with "omero." or
"Ice." |
source code
|
|
|
joinSession(self,
session)
Uses the given session uuid as name and password to rejoin a running
session |
source code
|
|
|
createSession(self,
username=None,
password=None)
Performs the actual logic of logging in, which is done via the
getRouter(). |
source code
|
|
|
enableKeepAlive(self,
seconds)
Resets the "omero.keep_alive" property on the current
Ice.Communicator which is used on initialization to determine the
time-period between Resource checks. |
source code
|
|
|
getRouter(self,
comm)
Acquires the default router, and throws an exception if it is not of
type Glacier2.Router. |
source code
|
|
|
sha1(self,
filename)
Calculates the local sha1 for a file. |
source code
|
|
|
upload(self,
filename,
name=None,
path=None,
type=None,
ofile=None,
block_size=1024)
Utility method to upload a file to the server. |
source code
|
|
|
download(self,
ofile,
filename=None,
block_size=1024*1024,
filehandle=None) |
source code
|
|
|
|
|
killSession(self)
Calls ISession.closeSession(omero.model.Session) until the returned
reference count is greater than zero. |
source code
|
|
|
_env(self,
_unwrap,
method,
*args)
Helper method to access session environment |
source code
|
|
|
getInput(self,
key,
unwrap=False)
Retrieves an item from the "input" shared (session) memory. |
source code
|
|
|
getOutput(self,
key,
unwrap=False)
Retrieves an item from the "output" shared (session)
memory. |
source code
|
|
|
setInput(self,
key,
value)
Sets an item in the "input" shared (session) memory under
the given name. |
source code
|
|
|
setOutput(self,
key,
value)
Sets an item in the "output" shared (session) memory under
the given name. |
source code
|
|
|
getInputKeys(self)
Returns a list of keys for all items in the "input" shared
(session) memory |
source code
|
|
|
getOutputKeys(self)
Returns a list of keys for all items in the "output" shared
(session) memory |
source code
|
|
|
getInputs(self,
unwrap=False)
Returns all items in the "input" shared (session) memory |
source code
|
|
|
getOutputs(self,
unwrap=False)
Returns all items in the "output" shared (session) memory |
source code
|
|
|
|
|
__getattr__(self,
name)
Compatibility layer, which allows calls to getCommunicator() and
getSession() to be called via self.ic and self.sf |
source code
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|