◆ __init__()
def fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine.__init__ | ( | self | ) |
List of Pipelines the FlowElement has been added to.
Reimplemented from fiftyone_pipeline_core.flowelement.FlowElement.
\r\n
This is a template for all 51Degrees cloud engines.
It requires the 51Degrees cloudRequestEngine to be placed in a pipeline before it. It takes that raw JSON response and parses it to extract the device part. It also uses this data to generate a list of properties and an evidence key filter
def | __init__ (self)
List of Pipelines the FlowElement has been added to. More...
|
def | on_registration (self, pipeline)
Callback called when an engine is added to a pipeline In this case sets up the properties list for the element from data in the CloudRequestEngine. More...
|
def | pipeline_element_not_found (self, element, flowdata)
Custom error when an element cannot be found in the pipeline. More...
|
def | process_internal (self, flowdata)
Process function of a cloud engine. More...
|
Public Member Functions inherited from fiftyone_pipeline_engines.engine.Engine | |
def | __init__ (self, data_file=None)
Constructor for an engine. More...
|
def | set_cache (self, cache)
Add a cache to an engine @type cashe: Cache. More...
|
def | set_restricted_properties (self, properties_list)
Add a subset of properties. More...
|
def | in_cache (self, flowdata)
A method to check if a flowdata's evidence is in the cache. More...
|
def | refresh (self, identifier) |
def fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine.__init__ | ( | self | ) |
List of Pipelines the FlowElement has been added to.
Reimplemented from fiftyone_pipeline_core.flowelement.FlowElement.
def fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine.on_registration | ( | self, | |
pipeline | |||
) |
Callback called when an engine is added to a pipeline In this case sets up the properties list for the element from data in the CloudRequestEngine.
@type pipeline: Pipeline
Reimplemented from fiftyone_pipeline_engines.engine.Engine.
def fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine.pipeline_element_not_found | ( | self, | |
element, | |||
flowdata | |||
) |
Custom error when an element cannot be found in the pipeline.
@type element: string
def fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine.process_internal | ( | self, | |
flowdata | |||
) |
Process function of a cloud engine.
This organises and parses data returned from the Cloud Request Engine and adds it to the FlowData
@type flowdata: FlowData
Reimplemented from fiftyone_pipeline_core.flowelement.FlowElement.
fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine.datakey |
fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine.properties |