-
Notifications
You must be signed in to change notification settings - Fork 0
Siddhi App Management
Madhawa Vidanapathirana edited this page Aug 21, 2017
·
4 revisions
Using DAS Python Client following operations can be undertaken on Siddhi App Management of WSO2 DAS 4.0.
- List all Siddhi Apps.
- Retrieve Siddhi App using name.
- Retrieve Status of Siddhi App.
- Save a new Siddhi App in DAS.
- Update a Siddhi App stored in DAS.
- Delete a Siddhi App stored in DAS.
- Install DAS Python Client by following Installation Guide.
- WSO2 DAS 4.0 must be already installed and running. If not, follow the steps below.
- Obtain WSO2 DAS 4.0-M6 binary distribution from https://github.com/wso2/product-das/releases/tag/v4.0.0-M6.
- Extract
wso2das-4.0.0-SNAPSHOT.zipto a suitable location (sayDAS_HOME). - Navigate to
DAS_Home/bin/and runsh worker.sh.
from DAS4PythonAPI.DAS4PythonClient import DAS4PythonClient
dasPythonClient = DAS4PythonClient('http://localhost:9090') # host URL of DAS
siddhiAppManagementClient = dasPythonClient.getSiddhiAppManagementClient()
print(siddhiAppManagementClient.listSiddhiApps()) # prints a list of siddhi appsfrom DAS4PythonAPI.DAS4PythonClient import DAS4PythonClient
dasPythonClient = DAS4PythonClient('http://localhost:9090') # host URL of DAS
siddhiAppManagementClient = dasPythonClient.getSiddhiAppManagementClient()
app = siddhiAppManagementClient.retrieveSiddhiApp("TestSiddhiApp")
print(app)from DAS4PythonAPI.DAS4PythonClient import DAS4PythonClient
dasPythonClient = DAS4PythonClient('http://localhost:9090') # host URL of DAS
siddhiAppManagementClient = dasPythonClient.getSiddhiAppManagementClient()
status = siddhiAppManagementClient.retrieveStatusSiddhiApp("TestSiddhiApp")
print (status) # prints status of siddhi app (active)