summaryrefslogtreecommitdiffstats
path: root/components/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'components/scripts')
-rw-r--r--components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py12
-rw-r--r--components/scripts/python/ccsdk_blueprints/resource_assignment_utils.py14
-rw-r--r--components/scripts/python/ccsdk_blueprints/sample_ra_processor_function.py12
3 files changed, 38 insertions, 0 deletions
diff --git a/components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py b/components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py
new file mode 100644
index 000000000..f7d54ea88
--- /dev/null
+++ b/components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py
@@ -0,0 +1,12 @@
+from org.onap.ccsdk.apps.blueprintsprocessor.functions.resource.resolution.processor import ResourceAssignmentProcessor
+
+
+class AbstractRAProcessor(ResourceAssignmentProcessor):
+
+ def process(self, execution_request):
+ print "Processing calling.."
+ return None
+
+ def recover(self, runtime_exception, execution_request):
+ print "Recovering calling.."
+ return None
diff --git a/components/scripts/python/ccsdk_blueprints/resource_assignment_utils.py b/components/scripts/python/ccsdk_blueprints/resource_assignment_utils.py
new file mode 100644
index 000000000..53cc5d708
--- /dev/null
+++ b/components/scripts/python/ccsdk_blueprints/resource_assignment_utils.py
@@ -0,0 +1,14 @@
+class ResourceAssignmentUtils:
+
+
+ @classmethod
+ def set_ressource_data_value(cls, ra, runtime_exception, value):
+ print "Set resource here..."
+ # TODO
+ return None
+
+ @staticmethod
+ def set_ressource_value(ra, runtime_exception, value):
+ print "Set resource here..."
+ # TODO
+ return None \ No newline at end of file
diff --git a/components/scripts/python/ccsdk_blueprints/sample_ra_processor_function.py b/components/scripts/python/ccsdk_blueprints/sample_ra_processor_function.py
new file mode 100644
index 000000000..8f68bfec0
--- /dev/null
+++ b/components/scripts/python/ccsdk_blueprints/sample_ra_processor_function.py
@@ -0,0 +1,12 @@
+from abstract_ra_processor import AbstractRAProcessor
+
+
+class SampleRAProcessorFunction(AbstractRAProcessor):
+
+ def process(self, execution_request):
+ print "Processing calling.."
+ return None
+
+ def recover(self, runtime_exception, execution_request):
+ print "Recovering calling.."
+ return None