TaurusManager
- class TaurusManager(*p, **k)[source]
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
Import from
taurus.core.taurusmanager
as:from taurus.core.taurusmanager import TaurusManager
- DefaultSerializationMode = 1
- PLUGIN_KEY = '__taurus_plugin__'
- addJob(job, callback=None, *args, **kw)[source]
Deprecated. Wrapper of enqueueJob. See enqueueJob documentation.
- applyPendingOperations(ops)[source]
Executes the given operations
- Parameters:
ops (sequence<taurus.core.taurusoperation.TaurusOperation>) – the sequence of operations
- default_scheme = 'tango'
- enqueueJob(job, callback=None, job_args=(), job_kwargs=None, serialization_mode=None)[source]
Enqueue a job (callable) to the queue. The new job will be processed by a separate thread
- Parameters:
job (callable) – a callable object
callback (callable) – called after the job has been processed
job_args (sequence) – positional arguments passed to the job
job_kwargs (dict) – keyword arguments passed to the job
serialization_mode (TaurusSerializationMode) – serialization mode
- findObject(absolute_name)[source]
Finds the object with the given name
- Parameters:
absolute_name (str) – the object name
- Returns:
the taurus model object or None if no suitable name found
- Return type:
- findObjectClass(absolute_name)[source]
Finds the object class for the given object name
- Parameters:
absolute_name (str) – the object name
- Returns:
the taurus model class object or None if no suitable name found
- Return type:
class taurus.core.taurusmodel.TaurusModel or None
- getAttribute(name)[source]
Returns a attribute object for the given name
- Parameters:
name (str) – attribute name
- Returns:
the attribute for the given name
- Return type:
- getAuthority(name)[source]
Returns a database object for the given name
- Parameters:
name (str) – database name
- Returns:
the authority for the given name
- Return type:
- getConfiguration(**kwargs)
Returns a configuration object for the given name
- param name:
configuration name
- type name:
str
- return:
the configuration for the given name
- rtype:
taurus.core.taurusconfiguration.TaurusConfiguration
Deprecated since version 4.0: Use getAttribute instead
- getDefaultFactory()[source]
Gives the default factory.
- Returns:
the default taurus factory
- Return type:
- getDevice(name)[source]
Returns a device object for the given name
- Parameters:
name (str) – device name
- Returns:
the device for the given name
- Return type:
- getFactory(scheme=None)[source]
Gives the factory class object supporting the given scheme
- Parameters:
scheme (str or None) – the scheme. If None the default scheme is used
- Returns:
the factory class object for the given scheme or None if a proper factory is not found
- Return type:
- getObject(cls, name)[source]
Gives the object for the given class with the given name
- Parameters:
cls (taurus.core.taurusmodel.TaurusModel) – object class
name (str) – the object name
- Returns:
a taurus model object
- Return type:
- getOperationMode()[source]
Deprecated. Gives the current operation mode.
- Returns:
the current operation mode
- Return type:
OperationMode
- getPlugins()[source]
Gives the information about the existing plugins
- Returns:
the list of plugins
- Return type:
dict<str, class taurus.core.taurusfactory.TaurusFactory>
- getSerializationMode()[source]
Gives the serialization operation mode.
- Returns:
the current serialization mode
- Return type:
TaurusSerializationMode
- init(*args, **kwargs)[source]
Singleton instance initialization. For internal usage only. Do NOT call this method directly