TaurusManager
¶
-
class
TaurusManager
[source]¶ Bases:
taurus.core.util.singleton.Singleton
,taurus.core.util.log.Logger
A
taurus.core.util.singleton.Singleton
class designed to provide Taurus management.Example:
>>> import taurus.core.taurusmanager >>> manager = taurus.core.taurusmanager.TaurusManager() >>> print manager == taurus.core.taurusmanager.TaurusManager() True
-
DefaultSerializationMode
= 1¶
-
PLUGIN_KEY
= '__taurus_plugin__'¶
-
addJob
(job, callback=None, *args, **kw)[source]¶ 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)[source]¶ Executes the given operations
Parameters: ops (sequence<taurus.core.taurusoperation.TaurusOperation>) – the sequence of operations
-
default_scheme
= 'tango'¶
-
findObject
(absolute_name)[source]¶ Finds the object with the given name
Parameters: absolute_name (:class:~`str`) – the object name Return type: :class:~`taurus.core.taurusmodel.TaurusModel` or :class:~`None` Returns: the taurus model object or None if no suitable name found
-
findObjectClass
(absolute_name)[source]¶ Finds the object class for the given object name
Parameters: absolute_name (:class:~`str`) – the object name Return type: :class:~`class taurus.core.taurusmodel.TaurusModel` or :class:~`None` Returns: the taurus model class object or None if no suitable name found
-
getAttribute
(name)[source]¶ Returns a attribute object for the given name
Parameters: name (:class:~`str`) – attribute name Return type: :class:~`taurus.core.taurusattribute.TaurusAttribute` Returns: the attribute for the given name
-
getConfiguration
(name)[source]¶ Returns a configuration object for the given name
Parameters: name (:class:~`str`) – configuration name Return type: :class:~`taurus.core.taurusconfiguration.TaurusConfiguration` Returns: the configuration for the given name
-
getDatabase
(name)[source]¶ Returns a database object for the given name
Parameters: name (:class:~`str`) – database name Return type: :class:~`taurus.core.taurusdatabase.TaurusDatabase` Returns: the database for the given name
-
getDefaultFactory
()[source]¶ Gives the default factory.
Return type: :class:~`taurus.core.taurusfactory.TaurusFactory` Returns: the default taurus factory
-
getDevice
(name)[source]¶ Returns a device object for the given name
Parameters: name (:class:~`str`) – device name Return type: :class:~`taurus.core.taurusdevice.TaurusDevice` Returns: the device for the given name
-
getFactory
(scheme=None)[source]¶ 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.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)[source]¶ Gives the object for the given class with the given name
Parameters: - cls (:class:~`taurus.core.taurusmodel.TaurusModel`) – object class
- name (:class:~`str`) – the object name
Return type: :class:~`taurus.core.taurusmodel.TaurusModel` or :class:~`None`
Returns: a taurus model object
-
getOperationMode
()[source]¶ Gives the current operation mode.
Return type: :class:~`OperationMode` Returns: the current operation mode
-
getPlugins
()[source]¶ Gives the information about the existing plugins
Return type: :class:~`dict` <:class:~`str`, :class:~`class taurus.core.taurusfactory.TaurusFactory`> Returns: the list of plugins
-
getSerializationMode
()[source]¶ Gives the serialization operation mode.
Return type: :class:~`TaurusSerializationMode` Returns: the current serialization mode
-
init
(*args, **kwargs)[source]¶ Singleton instance initialization. For internal usage only. Do NOT call this method directly
-