|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CloudHubDomainConnectionI
| Method Summary | |
|---|---|
void |
deleteApplication()
Deletes the application by using the connection's domain. |
void |
deployApplication(File file,
long waitMaxTime)
Deploys an application with the provided fileStream |
String |
getDomain()
Returns the connected domain |
com.mulesoft.ch.rest.model.Application |
retrieveApplication()
Retrieves the application based on the connected domain |
com.mulesoft.ch.rest.model.ApplicationStatus |
retrieveApplicationStatus()
Retrieves the application's status |
com.mulesoft.ch.rest.model.Application |
updateApplication(com.mulesoft.ch.rest.model.ApplicationUpdateInfo application)
Updates an application's information on your CloudHub account. |
void |
updateApplicationStatus(com.mulesoft.ch.rest.model.ApplicationStatusChange applicationStatus,
long waitMaxTime)
Updates an application's status based on some specific commands. |
| Methods inherited from interface com.mulesoft.cloudhub.client.CloudHubConnectionI |
|---|
connectWithDomain, createApplication, getAccessToken, getPassowrd, getSupportedMuleVersions, getUrl, getUsername, isDomainAvailable, retrieveAccount, retrieveApplications |
| Method Detail |
|---|
String getDomain()
com.mulesoft.ch.rest.model.Application retrieveApplication()
throws CloudHubException
Application
CloudHubException - if the domain does not exist
com.mulesoft.ch.rest.model.ApplicationStatus retrieveApplicationStatus()
throws CloudHubException
com.mulesoft.ch.rest.model.Application.ApplicationStatus
CloudHubException - if there was an error when retrieving the application status
void deployApplication(File file,
long waitMaxTime)
throws CloudHubException
file - the file to be deployedwaitMaxTime - Maximum time allowed to deploy/undeploy in miliseconds.
Case 1: 0, the connector won't wait CH to finish the deploy/undeploy process and will return a response based on CH API response status.
Case 2: 1, the connector will wait until CH finish the deploy/undeploy process and will throw an exception if the deploy fails.
Case 3: anyOthervalue, the connector will wait that amount of miliseconds for CH to finish the deploy/undeploy process.
If takes longer, it will throw an exception. If takes shorter, it will follow the same process as case 2.
CloudHubException - if there was an error while deploying the application
com.mulesoft.ch.rest.model.Application updateApplication(com.mulesoft.ch.rest.model.ApplicationUpdateInfo application)
throws CloudHubException
deployApplication(java.io.File, long) instead
applicationInfo - an instance of ApplicationUpdateInfo with the information to be updated
Application containing all the new application's information provided by CloudHub
CloudHubException - if there was an error while updating the application
void updateApplicationStatus(com.mulesoft.ch.rest.model.ApplicationStatusChange applicationStatus,
long waitMaxTime)
throws CloudHubException
applicationStatus - an instance of com.mulesoft.cloudhub.client.ApplicationStatusChange with the new application statuswaitMaxTime - Maximum time allowed to deploy/undeploy in miliseconds.
Case 1: 0, the connector won't wait CH to finish the deploy/undeploy process and will return a response based on CH API response status.
Case 2: 1, the connector will wait until CH finish the deploy/undeploy process and will throw an exception if the deploy fails.
Case 3: anyOthervalue, the connector will wait that amount of miliseconds for CH to finish the deploy/undeploy process.
If takes longer, it will throw an exception. If takes shorter, it will follow the same process as case 2.
CloudHubException - if there was an error while updating the application's status.
void deleteApplication()
throws CloudHubException
CloudHubException - if there was an error while deleting the application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||