summaryrefslogtreecommitdiffstats
path: root/cdap/cdapplugin/cdapcloudify/cdap_plugin.py
diff options
context:
space:
mode:
authorTommy Carpenter <tommy@research.att.com>2017-08-22 17:49:55 -0400
committerTommy Carpenter <tommy@research.att.com>2017-08-22 17:50:24 -0400
commit94cbaca0f5d9447afe9b0f392f248470420422e5 (patch)
tree2ab7e46a6d63daa1a8a372d199245511b84d3105 /cdap/cdapplugin/cdapcloudify/cdap_plugin.py
parentc272a87b84189f3bf8b3c7287199b816affc9926 (diff)
[DCAEGEN2-74] merge broker deletion plugin to cdap
Change-Id: If8fecde180c37ae1332e9ef53b9b2e8b17169cbe Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'cdap/cdapplugin/cdapcloudify/cdap_plugin.py')
-rw-r--r--cdap/cdapplugin/cdapcloudify/cdap_plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cdap/cdapplugin/cdapcloudify/cdap_plugin.py b/cdap/cdapplugin/cdapcloudify/cdap_plugin.py
index f5eaf0b..b4d22cd 100644
--- a/cdap/cdapplugin/cdapcloudify/cdap_plugin.py
+++ b/cdap/cdapplugin/cdapcloudify/cdap_plugin.py
@@ -228,4 +228,11 @@ def app_smart_reconfigure(new_config_template, **kwargs):
except Exception as e:
raise NonRecoverableError("CDAP Reconfigure error: {0}".format(e))
+@operation
+def delete_all_registered_apps(connected_broker_dns_name, **kwargs):
+ """
+ Used in the cdap broker deleter node.
+ Deletes all registered applications (in the broker)
+ """
+ discovery.delete_all_registered_apps(connected_broker_dns_name, ctx.logger)