taurus taurus

Previous topic

TaurusLockInfo

Next topic

TaurusModel

This Page

TaurusManager

Inheritance diagram of TaurusManager

class TaurusManager

Bases: taurus.core.util.singleton.Singleton, taurus.core.util.log.Logger

A taurus.core.util.Singleton class designed to provide Taurus management.

Example:

>>> import taurus.core
>>> manager = taurus.core.TaurusManager()
>>> print manager == taurus.core.TaurusManager()
True
DefaultSerializationMode = 1
addJob(job, callback=None, *args, **kw)

Add a new job (callable) to the queue. The new job will be processed by a separate thread

Parameters:
  • job (:class:~`callable`) – a callable object
  • callback (:class:~`callable`) – called after the job has been processed
  • args (:class:~`list`) – list of arguments passed to the job
  • kw (:class:~`dict`) – keyword arguments passed to the job
applyPendingOperations(ops)

Executes the given operations

Parameters:ops (sequence<taurus.core.TaurusOperation>) – the sequence of operations
changeDefaultPollingPeriod(period)
cleanUp()

Cleanup

default_scheme = 'tango'
findObject(absolute_name)

Finds the object with the given name

Parameters:absolute_name (:class:~`str`) – the object name
Return type::class:~`taurus.core.TaurusModel` or :class:~`None`
Returns:the taurus model object or None if no suitable name found
findObjectClass(absolute_name)

Finds the object class for the given object name

Parameters:absolute_name (:class:~`str`) – the object name
Return type::class:~`class taurus.core.TaurusModel` or :class:~`None`
Returns:the taurus model class object or None if no suitable name found
getAttribute(name)

Returns a attribute object for the given name

Parameters:name (:class:~`str`) – attribute name
Return type::class:~`taurus.core.TaurusAttribute`
Returns:the attribute for the given name
getConfiguration(name)

Returns a configuration object for the given name

Parameters:name (:class:~`str`) – configuration name
Return type::class:~`taurus.core.TaurusConfiguration`
Returns:the configuration for the given name
getDatabase(name)

Returns a database object for the given name

Parameters:name (:class:~`str`) – database name
Return type::class:~`taurus.core.TaurusDatabase`
Returns:the database for the given name
getDefaultFactory()

Gives the default factory.

Return type::class:~`taurus.core.TaurusFactory`
Returns:the default taurus factory
getDevice(name)

Returns a device object for the given name

Parameters:name (:class:~`str`) – device name
Return type::class:~`taurus.core.TaurusDevice`
Returns:the device for the given name
getFactory(scheme=None)

Gives the factory class object supporting the given scheme

Parameters:scheme (:class:~`str` or :class:~`None`) – the scheme. If None the default scheme is used
Return type::class:~`taurus.core.TaurusFactory` or :class:~`None`
Returns:the factory class object for the given scheme or None if a proper factory is not found
getObject(cls, name)

Gives the object for the given class with the given name

Parameters:
  • cls (:class:~`taurus.core.TaurusModel`) – object class
  • name (:class:~`str`) – the object name
Return type:

:class:~`taurus.core.TaurusModel` or :class:~`None`

Returns:

a taurus model object

getOperationMode()

Gives the current operation mode.

Return type::class:~`OperationMode`
Returns:the current operation mode
getPlugins()

Gives the information about the existing plugins

Return type::class:~`dict` <:class:~`str`, :class:~`class taurus.core.TaurusFactory`>
Returns:the list of plugins
getSerializationMode()

Gives the serialization operation mode.

Return type::class:~`TaurusSerializationMode`
Returns:the current serialization mode
init(*args, **kwargs)

Singleton instance initialization. For internal usage only. Do NOT call this method directly

reInit()

Reinitialization

setOperationMode(mode)

Sets the operation mode for the system.

Parameters:mode (:class:~`OperationMode`) – the new operation mode
setSerializationMode(mode)

Sets the serialization mode for the system.

Parameters:mode (:class:~`TaurusSerializationMode`) – the new serialization mode