API Reference
Generation of Queue Items
Generic Queue Item
A helper class that generates dictionary with queue item parameters. |
|
The method returns the copy of the dictionary with item parameters, which is ready to be passed to the server. |
|
The method copies item parameters from a dictionary. |
|
The property for read-write access to the item type. |
|
The property for read-write access to the item name. |
|
The read-write property sets or gets the list of item args. |
|
The read-write property sets or gets the copy of the dictionary of item kwargs. |
|
The read-write property that sets or gets the item metadata. |
|
The property for read-write access to the item uid. |
|
The property returns reference to iternal item dictionary. |
|
The read-only property returns the list of item types recognized by the queue server. |
Type-Specific Queue Items
The helper class for creating dictionary representing a plan. |
|
The helper class for creating dictionary representing an instruction. |
|
The helper class for creating dictionary representing a function. |
Miscellaneous API
Creates |
|
Cancel the currently running operation. |
|
Checks if the monitor was cancelled. |
|
Time when the operation started (seconds). |
|
Time since the operation started (seconds). |
|
Timeout (seconds). |
|
Modify timeout for the current operation (seconds). |
|
Each callbacks is called only once before the operation is cancelled. |
Synchronous Communication with 0MQ Server
API for communication with RE Manager using 0MQ protocol. |
|
Close RE Manager client. |
Configuration of REManagerAPI
Get and set the default user name. |
|
Get and set the default user group name. |
|
Set the default user name to 'login name'. |
Low-Level API
Send request to RE Manager and receive the response. |
API for controlling RE Manager
Load status of RE Manager. |
|
Current implementation of the API loads status of RE Manager, but this may change in future releases. |
|
Returns config info for RE Manager. |
|
Wait for RE Manager to return to |
|
Wait for RE Manager to switch to |
|
Wait for RE Manager to switch to |
|
The function periodically checks RE Manager status and blocks until the |
API for controlling RE Environment
Open RE Worker environment. |
|
Close RE Worker environment. |
|
Destroy RE Worker environment. |
|
Update RE Worker environment cache. |
API for Monitoring Available Resources
Generate the new lists of allowed plans and devices based on current user group permissions and the lists of existing plans and devices. |
|
Download the dictionary of user group permissions currently used by RE Manager. |
|
Uploads the dictionary of user group permissions. |
|
Returns the list (dictionary) of allowed plans. |
|
Returns the list (dictionary) of allowed devices. |
|
Returns the list (dictionary) of existing plans. |
|
Returns the list (dictionary) of existing devices. |
API for management of RE Queue
Returns the list of items (plans and instructions) in the plan queue and currently running plan. |
|
Remove all items from the plan queue. |
|
Add item to the queue. |
|
Add a batch of items to the queue. |
|
Update an existing item in the queue. |
|
Load an existing queue item. |
|
Remove an item from the queue. |
|
Remove a batch of items from the queue. |
|
Move an item to a different position in the queue. |
|
Move a batch of items to a different position in the queue. |
|
Immediately execute the submitted item. |
|
Start execution of the queue. |
|
Request RE Manager to stop execution of the queue after completion of the currently running plan. |
|
Cancel the pending request to stop execution of the queue after the currently running plan. |
|
Set parameters that define the mode of plan queue execution. |
|
Enable/disable autostart mode. |
API for Controlling RE History
Returns the list of plans in the history. |
|
Remove all items from the history. |
API for Locking RE Manager
Lock RE Manager with a lock key. |
|
Locks the environment in RE Manager. |
|
Locks the queue in RE Manager. |
|
Locks the environment and the queue in RE Manager. |
|
Unlock RE Manager. |
|
Returns status information of the current lock. |
|
Get/set current lock key. |
|
Enable/disable access to locked API. |
|
Returns the default lock key. |
|
Set the default lock key. |
|
Get/set path of the file with the default lock key. |
API for Executing Tasks
Upload and execute script in RE Worker namespace. |
|
Start execution of a function in RE Worker namespace. |
|
Returns the status of one or more tasks executed by the worker process. |
|
Get the status and results of task execution. |
|
Wait for one or multiple tasks to be completed. |
API for controlling Run Engine
Request the list of active runs generated by the currently executed plans. |
|
Request Run Engine to pause currently running plan. |
|
Request Run Engine to resume paused plan. |
|
Request Run Engine to stop paused plan. |
|
Request Run Engine to abort paused plan. |
|
Request Run Engine to halt paused plan. |
API for controlling IPython kernel
Send interrupt request (Ctrl-C) to the running IPython kernel. |
API for monitoring console output of RE manager
Each instance of REManagerAPI holds a reference to a Console Monitor. The reference
is accessible using the console_monitor property. The Console Monitor is initialized as
part of REManagerAPI instantiation and ready for use.
Reference to a |
The package implements multiple console monitors (synchronous/asynchronous monitors for 0MQ and HTTP communication), which expose identical API. The class for monitoring console output using 0MQ for synchronous applications:
Console Monitor API (0MQ). |
|
Indicates if monitoring is enabled. |
|
Enable monitoring of the console output. |
|
Disable monitoring of the console output. |
|
Disable monitoring and wait for completion. |
|
Clear the message buffer. |
|
Returns the next message from the buffer. |
|
Get/set the maximum size of the text buffer. |
|
Returns UID of the current text buffer. |
|
Returns text representation of console output. |
Other console monitor classes support identical API:
Console Monitor API (0MQ). |
|
Console Monitor API (HTTP). |
|
Console Monitor API (HTTP). |
API for monitoring system info of RE Manager
Each instance of REManagerAPI holds a reference to System Info Monitor. The monitor operates
similary to the Console Monitor and allows to receive streamed system information in real time.
The stream currently contains only messages with RE Manager status. Additional messages may be
added to the stream later.
Reference to a |
The respective System Info Monitor class methods set_authorization_key
System Info Monitor API (0MQ). |
|
Indicates if monitoring is enabled. |
|
Enable monitoring of the system info. |
|
Disable monitoring of the system info. |
|
|
Disable monitoring and wait for completion. |
Clear the message buffer. |
|
Returns the next message from the buffer. |
Other system info monitor classes support identical API:
System Info Monitor API (0MQ). |
|
Console Monitor API (HTTP). |
|
Console Monitor API (HTTP). |
Asynchronous Communication with 0MQ Server
API for communication with RE Manager using 0MQ protocol. |
Synchronous Communication with HTTP Server
API for communication with RE Manager using HTTP (RESTful API) protocol. |
ASynchronous Communication with HTTP Server
API for communication with RE Manager using HTTP (RESTful API) protocol. |