Migrate "components" from ccsdk/apps
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / capability_python / Scripts / python / SampleRAProcessor.py
1 from abstract_ra_processor import AbstractRAProcessor
2 from blueprint_constants import *
3
4
5 class SampleRAProcessor(AbstractRAProcessor):
6
7     def __init__(self):
8         AbstractRAProcessor.__init__(self)
9
10     def process(self, resource_assignment):
11         print "Processing calling.." + PROPERTY_BLUEPRINT_BASE_PATH
12         self.set_resource_data_value(resource_assignment, "")
13         return None
14
15     def recover(self, runtime_exception, resource_assignment):
16         print "Recovering calling.." + PROPERTY_BLUEPRINT_BASE_PATH
17         return None