From dba22de28e496ae2d6d2fde9384fd1187e4b8fc1 Mon Sep 17 00:00:00 2001
From: Steve Alphonse Siani <alphonse.steve.siani.djissitchi@ibm.com>
Date: Mon, 11 Feb 2019 23:35:16 -0500
Subject: Jython execution component and service

Change-Id: I2610e73a9c7ba073b5fa9d148dcd6fb5b9ad9ae3
Issue-ID: CCSDK-696
Signed-off-by: Steve Alphonse Siani <alphonse.steve.siani.djissitchi@ibm.com>
---
 .../python/ccsdk_blueprints/abstract_ra_processor.py       | 12 ++++++++++++
 .../python/ccsdk_blueprints/resource_assignment_utils.py   | 14 ++++++++++++++
 .../ccsdk_blueprints/sample_ra_processor_function.py       | 12 ++++++++++++
 3 files changed, 38 insertions(+)
 create mode 100644 components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py
 create mode 100644 components/scripts/python/ccsdk_blueprints/resource_assignment_utils.py
 create mode 100644 components/scripts/python/ccsdk_blueprints/sample_ra_processor_function.py

(limited to 'components/scripts/python/ccsdk_blueprints')

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 00000000..f7d54ea8
--- /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 00000000..53cc5d70
--- /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 00000000..8f68bfec
--- /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
-- 
cgit