51Degrees Pipeline Python  4.2

51Degrees Pipeline for Python
  • pipeline-python
  • fiftyone_pipeline_cloudrequestengine
  • fiftyone_pipeline_cloudrequestengine
  • cloudengine
  • CloudEngine

pipeline-python.fiftyone_pipeline_cloudrequestengine.fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine Class Reference

Detailed Description

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

Inheritance diagram for pipeline-python.fiftyone_pipeline_cloudrequestengine.fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine:

[legend]

Collaboration diagram for pipeline-python.fiftyone_pipeline_cloudrequestengine.fiftyone_pipeline_cloudrequestengine.cloudengine.CloudEngine:

[legend]

Public Member Functions

def  __init__ (self)
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 Attributes

 datakey
 properties

Member Function Documentation

◆ on_registration()

def pipeline-python.fiftyone_pipeline_cloudrequestengine.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

Parameters
pipeline -

◆ pipeline_element_not_found()

def pipeline-python.fiftyone_pipeline_cloudrequestengine.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

Parameters
element - name of flowelement @type flowdata: flowdata
element - flowdata being processsed @rtype: Exception
Returns
: Returns exception

◆ process_internal()

def pipeline-python.fiftyone_pipeline_cloudrequestengine.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

Parameters
flowdata - FlowData to process