TaurusManager
¶
digraph inheritance2f5bf39b1f {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"Logger" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="The taurus logger class. All taurus pertinent classes should inherit"];
"Object" -> "Logger" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Object" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"Singleton" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="This class allows Singleton objects"];
"TaurusManager" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A :class:`taurus.core.util.singleton.Singleton` class designed to provide Taurus management."];
"Singleton" -> "TaurusManager" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Logger" -> "TaurusManager" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
TaurusManager
(*p, **k)[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]¶ 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 :type job:
callable
:param job: a callable object :type callback:callable
:param callback: called after the job has been processed :type job_args:sequence
:param job_args: positional arguments passed to the job :type job_kwargs:dict
:param job_kwargs: keyword arguments passed to the job :type serialization_mode:TaurusSerializationMode
:param serialization_mode: serialization mode
-
findObject
(absolute_name)[source]¶ Finds the object with the given name
- Parameters
absolute_name (
str
) – the object name- Return type
TaurusModel
orNone
- 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 (
str
) – the object name- Return type
TaurusModel
orNone
- 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 (
str
) – attribute name- Return type
TaurusAttribute
- Returns
the attribute for the given name
-
getAuthority
(name)[source]¶ Returns a database object for the given name
- Parameters
name (
str
) – database name- Return type
TaurusAuthority
- Returns
the authority for the given name
-
getConfiguration
(**kwargs)¶ Returns a configuration object for the given name
- type name
str
- param name
configuration name
- rtype
TaurusConfiguration
- return
the configuration for the given name
Deprecated since version 4.0: Use getAttribute instead
-
getDefaultFactory
()[source]¶ Gives the default factory.
- Return type
TaurusFactory
- Returns
the default taurus factory
-
getDevice
(name)[source]¶ Returns a device object for the given name
- Parameters
name (
str
) – device name- Return type
TaurusDevice
- Returns
the device for the given name
-
getFactory
(scheme=None)[source]¶ Gives the factory class object supporting the given scheme
- Parameters
scheme (
str
orNone
) – the scheme. If None the default scheme is used- Return type
TaurusFactory
orNone
- 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 (
TaurusModel
) – object classname (
str
) – the object name
- Return type
TaurusModel
orNone
- Returns
a taurus model object
-
getOperationMode
()[source]¶ Deprecated. Gives the current operation mode.
- Return type
OperationMode
- Returns
the current operation mode
-
getPlugins
()[source]¶ Gives the information about the existing plugins
- Return type
dict
<str
,TaurusFactory
>- Returns
the list of plugins
-
getScheme
(name)[source]¶ Returns the scheme name for a given model name
- Parameters
name (
str
) – model name- Return type
str
- Returns
scheme name
-
getSerializationMode
()[source]¶ Gives the serialization operation mode.
- Return type
TaurusSerializationMode
- Returns
the current serialization mode
-
init
(*args, **kwargs)[source]¶ Singleton instance initialization. For internal usage only. Do NOT call this method directly
-