AFL.automation.APIServer#
Classes
|
|
|
Thread running a caproto server to publish queue status PVs. |
- class AFL.automation.APIServer.APIServer(name, data=None, experiment='Development', contact='tbm@nist.gov', index_template='index.html', new_index_template='index-new.html', plot_template='simple-bokeh.html')[source]#
- __init__(name, data=None, experiment='Development', contact='tbm@nist.gov', index_template='index.html', new_index_template='index-new.html', plot_template='simple-bokeh.html')[source]#
- get_quickbar()[source]#
Return the functions, params, and defaults to be shown in this server’s quickbar
- render_unqueued(func, kwargs_add, **kwargs)[source]#
Convert an unqueued return item into web-suitable output
- deposit_obj()[source]#
Store an object named obj in the driver’s dropbox If a uuid is provided, the object will be stored with that uuid Otherwise, a new uuid will be generated. In either case, the uuid will be returned to the client.
- class AFL.automation.APIServer.CAStatusPublisher(queue_daemon, prefix='AFL:', port=5064, interfaces=None)[source]#
Thread running a caproto server to publish queue status PVs.
- __init__(queue_daemon, prefix='AFL:', port=5064, interfaces=None)[source]#
This constructor should always be called with keyword arguments. Arguments are:
group should be None; reserved for future extension when a ThreadGroup class is implemented.
target is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called.
name is the thread name. By default, a unique name is constructed of the form “Thread-N” where N is a small decimal number.
args is a list or tuple of arguments for the target invocation. Defaults to ().
kwargs is a dictionary of keyword arguments for the target invocation. Defaults to {}.
If a subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread.
- run()[source]#
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
Modules