DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. CloudHub Connector With Mulesoft

CloudHub Connector With Mulesoft

The CloudHub Connector provides operations like starting, stopping, deploying, and updating Mule apps, as well as sending notifications from your Mule app to CloudHub.

Jitendra Bafna user avatar by
Jitendra Bafna
CORE ·
Apr. 10, 17 · Tutorial
Like (6)
Save
Tweet
Share
9.71K Views

Join the DZone community and get the full member experience.

Join For Free

The CloudHub Connector provides the ability to interact with CloudHub from within your Mule application. It provides various operations like starting, stopping, deploying, and updating Mule applications, as well as sending notifications from your Mule application to CloudHub.

For more details on CloudHub, please go through one of my articles, The Power of Anypoint CloudHub With Mulesoft.

Install the CloudHub connector from Anypoint Exchange. You can connect to exchange from Anypoint Studio and search for the CloudHub Connector. Click Install and to install the CloudHub Connector in your studio.

Image title

Once the Connector is installed, it will restart Anypoint Studio.

Now we will walk through how to 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:

  • Host: localhost.

  • Port: 8081.

  • Method: POST.

  • Path: cloudhub.  

Image title

Drag and drop the CloudHub Connector in message processor region and configure it. Click the green + button near Connector Configuration. It will open a popup window for you. Select CloudHub: Basic Auth Authentication and clickOK.

Image title

Provide the username and password for your Anypoint platform account and Test Connection. Then, click OK.

Image title

Select Operation from the drop-down and select Create Notification. You need to provide Domain, Message, and Priority.

Field Description
Domain

The domain you set for your application when you first created it.

Message

The message you want your notification to show (i.e., "Hello, World"). In the example below, the notification will simply display a message payload.

Priority

The type of notification. Selecting INFO will display an informative message; selecting ERROR will display a red alert message.

Image title

This operation in the CloudHub Connector creates a notification message for the domain that the application is currently running on.

List Application

Now, we will change the Operation to List application. This operation will return a list of the applications deployed to CloudHub with various details like status, worker size, number of workers, application name, worker type, etc.

Image title

Image title

Update Application

The Update application operation is used to update Mule version, worker size, and the number of workers. You can update Auto Restart Monitoring, Multitenanted, Persistent Queues, and Vpn Enabled. 

Image title

Retrieve Application Logs

The operation Retrieve application logs will read the logs of your application like error, warn, information, etc. You can read the log for a specific period of time. It will provide the log depending on your configuration.

Image title

There are many more operations that you can perform using the CloudHub Connector, including:

  • Create, update, delete, and deploy Mule applications.

  • Get applications details.

  • List application.

  • Get, list, and create notifications.

  • Retrieve applications logs.

  • Create, get, update, and delete tenants.

Now, you know what about the different operations that can be performed using CloudHub Connector!

Connector (mathematics) application MuleSoft

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How To Generate Code Coverage Report Using JaCoCo-Maven Plugin
  • The 31 Flavors of Data Lineage and Why Vanilla Doesn’t Cut It
  • Top Authentication Trends to Watch Out for in 2023
  • PHP vs React

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: