cloudhub connector with mulesoft
TRANSCRIPT
CLOUDHUB CONNECTORCloudHub connector provides the ability to interact with CloudHub from within
Mule application. It provides various operations like start, stop, deploy and update
mule applications as well as send notifications from your mule application to
cloudhub.
For more details on CloudHub, please go through my article Introduction To Power
Of Anypoint CloudHub With Mulesoft.
Install CloudHub connector from Anypoint Exchange. You can connect to
exchange from Anypoint Studio and search for cloudhub connector. Click Install
and it will install cloudhub connector in your studio.
CLOUDHUB CONNECTOROnce connector is installed, it will restart the Anypoint studio. Now we will
walkthrough how we can implement the cloudhub connector in your mule
application.
Create Notification
Place the HTTP listener into the canvas and click to open the Properties console.
Click the green + and configure as follows:
CLOUDHUB CONNECTOR
Drag and Drop the cloudhub connector in message processor region and
configure it. Click on green add button near Connector Configuration. It will open
popup window for you. Select CloudHub: Basic Auth Authentication and Click OK.
CLOUDHUB CONNECTOR
Provide the username and password of Anypoint platform account and Test
Connection. Click OK.
CLOUDHUB CONNECTOR
Select Operation from drop-down and in this case we will going to select Create
Notification. You need provide Domain, Message and Priority.
CLOUDHUB CONNECTORSelect Operation from drop-down and in this case we will going to select Create Notification. You need provide Domain, Message and Priority. This operation in the CloudHub connector creates a notification message for the domain that the application is currently running on.
CLOUDHUB CONNECTORSelect Operation from drop-down and in this case we will going to select Create Notification. You need provide Domain, Message and Priority. This operation in the CloudHub connector creates a notification message for the domain that the application is currently running on.
CLOUDHUB CONNECTORList Application
Now we will change the Operation to List application. This operation will return list of the application deployed to cloudhub with various details like status, worker size, no. of workers, application name, workertype etc.
CLOUDHUB CONNECTORUpdate Application
Update application operation is used to update Mule Version, Worker Size and number of workers. You can update Auto Restart Monitoring, Multitenanted, Persistent Queues and VPN Enabled.
CLOUDHUB CONNECTORRetrieve Application Logs
Retrieve application logs will read the logs of your application like error, warn, information etc. You can read the log for specific period of time. It will provide the log depending on your configuration.
CLOUDHUB CONNECTOR
There are many more operation that you can perform using CloudHub Connector.
Create, Update, Delete and Deploy Mule applications.
Get applications details.
List application.
Get, List and Create Notification.
Retrieve applications logs.
Create, Get, Update and Delete tenants.