com.mulesoft.cloudhub.client
Interface CloudHubConnectionI

All Known Subinterfaces:
CloudHubDomainConnectionI
All Known Implementing Classes:
CloudHubConnectionImpl, CloudHubDomainConnectionImpl

public interface CloudHubConnectionI


Method Summary
 CloudHubDomainConnectionI connectWithDomain(String domain)
          Returns a connection against a given domain of the CloudHub account
 com.mulesoft.ch.rest.model.Application createApplication(com.mulesoft.ch.rest.model.Application application)
          Creates an application on your CloudHub account.
 String getAccessToken()
           
 String getPassowrd()
           
 List<String> getSupportedMuleVersions()
          This method returns all the supported mule versions by CloudHub
 String getUrl()
           
 String getUsername()
           
 boolean isDomainAvailable(String domain)
          Checks if the domain is valid and available
 com.mulesoft.ch.rest.model.Account retrieveAccount()
          Retrieves the CloudHub Account
 List<com.mulesoft.ch.rest.model.Application> retrieveApplications()
          Retrieves All Applications from an specific CloudHub account
 

Method Detail

getUrl

String getUrl()

getUsername

String getUsername()

getPassowrd

String getPassowrd()

getAccessToken

String getAccessToken()

connectWithDomain

CloudHubDomainConnectionI connectWithDomain(String domain)
Returns a connection against a given domain of the CloudHub account

Parameters:
domain - the domain to which you want to connect
Returns:
an instance of CloudHubDomainConnectionImpl connected with the specified domain

retrieveAccount

com.mulesoft.ch.rest.model.Account retrieveAccount()
                                                   throws CloudHubException
Retrieves the CloudHub Account

Returns:
an instance of Account
Throws:
CloudHubException - if there is an error when retrieving the account

isDomainAvailable

boolean isDomainAvailable(String domain)
                          throws CloudHubException
Checks if the domain is valid and available

Parameters:
domain - the domain to be validated
Returns:
true if the domain is valid and available to be used. False if the domain is already taken.
Throws:
CloudHubException - if there is an error when validating the domain

retrieveApplications

List<com.mulesoft.ch.rest.model.Application> retrieveApplications()
                                                                  throws CloudHubException
Retrieves All Applications from an specific CloudHub account

Returns:
a collection of Application
Throws:
CloudHubException - if there is an error when retrieving the applications

createApplication

com.mulesoft.ch.rest.model.Application createApplication(com.mulesoft.ch.rest.model.Application application)
                                                         throws CloudHubException
Creates an application on your CloudHub account. This method does not deploy your application.

Parameters:
application - an instance of Application containing all the application's information
Returns:
an instance of Application containing all the recently created application's information provided by CloudHub
Throws:
CloudHubException - if there was an error while creating the application

getSupportedMuleVersions

List<String> getSupportedMuleVersions()
                                      throws CloudHubException
This method returns all the supported mule versions by CloudHub

Returns:
a list of strings, with all the supported mule versions by CloudHub
Throws:
CloudHubException


Copyright © 2012-2015. All Rights Reserved.