|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mulesoft.cloudhub.client.CloudHubConnectionImpl
com.mulesoft.cloudhub.client.CloudHubDomainConnectionImpl
public class CloudHubDomainConnectionImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.mulesoft.cloudhub.client.CloudHubConnectionImpl |
|---|
CloudHubConnectionImpl.ObjectMapper |
| Field Summary |
|---|
| Fields inherited from class com.mulesoft.cloudhub.client.CloudHubConnectionImpl |
|---|
accessToken, apiToken, client, ENVIRONMENT_ID, gson, NEW_DEFAULT_URL, password, url, username |
| Constructor Summary | |
|---|---|
protected |
CloudHubDomainConnectionImpl(CloudHubConnectionI con,
String environmentId,
boolean csAuthentication,
String domain)
|
|
CloudHubDomainConnectionImpl(String url,
String accessToken,
boolean debug)
|
| Method Summary | |
|---|---|
void |
deleteApplication()
Deletes the application by using the connection's domain. |
void |
deployApplication(File file,
long maxWaitTime)
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 newApplicationInfo)
Updates an application's information on your CloudHub account. |
void |
updateApplicationStatus(com.mulesoft.ch.rest.model.ApplicationStatusChange applicationStatusChange,
long maxWaitTime)
Updates an application's status based on some specific commands. |
| Methods inherited from class com.mulesoft.cloudhub.client.CloudHubConnectionImpl |
|---|
addEnvironmentHeader, authorizeResource, buildExpception, connectWithDomain, createApplication, createApplicationBuilder, createBuilder, createResource, getAccessToken, getPassowrd, getSupportedMuleVersions, getUrl, getUsername, init, isDomainAvailable, retrieveAccount, retrieveApplications |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.mulesoft.cloudhub.client.CloudHubConnectionI |
|---|
connectWithDomain, createApplication, getAccessToken, getPassowrd, getSupportedMuleVersions, getUrl, getUsername, isDomainAvailable, retrieveAccount, retrieveApplications |
| Constructor Detail |
|---|
protected CloudHubDomainConnectionImpl(CloudHubConnectionI con,
String environmentId,
boolean csAuthentication,
String domain)
public CloudHubDomainConnectionImpl(String url,
String accessToken,
boolean debug)
| Method Detail |
|---|
public String getDomain()
CloudHubDomainConnectionI
getDomain in interface CloudHubDomainConnectionI
public com.mulesoft.ch.rest.model.Application retrieveApplication()
throws CloudHubException
CloudHubDomainConnectionI
retrieveApplication in interface CloudHubDomainConnectionIApplication
CloudHubException - if the domain does not exist
public com.mulesoft.ch.rest.model.ApplicationStatus retrieveApplicationStatus()
throws CloudHubException
CloudHubDomainConnectionI
retrieveApplicationStatus in interface CloudHubDomainConnectionIcom.mulesoft.ch.rest.model.Application.ApplicationStatus
CloudHubException - if there was an error when retrieving the application status
public void deployApplication(File file,
long maxWaitTime)
CloudHubDomainConnectionI
deployApplication in interface CloudHubDomainConnectionIfile - the file to be deployedmaxWaitTime - 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.
public com.mulesoft.ch.rest.model.Application updateApplication(com.mulesoft.ch.rest.model.ApplicationUpdateInfo newApplicationInfo)
throws CloudHubException
CloudHubDomainConnectionICloudHubDomainConnectionI.deployApplication(java.io.File, long) instead
updateApplication in interface CloudHubDomainConnectionIApplication containing all the new application's information provided by CloudHub
CloudHubException - if there was an error while updating the application
public void updateApplicationStatus(com.mulesoft.ch.rest.model.ApplicationStatusChange applicationStatusChange,
long maxWaitTime)
throws CloudHubException
CloudHubDomainConnectionI
updateApplicationStatus in interface CloudHubDomainConnectionIapplicationStatusChange - an instance of com.mulesoft.cloudhub.client.ApplicationStatusChange with the new application statusmaxWaitTime - 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.
public void deleteApplication()
throws CloudHubException
CloudHubDomainConnectionI
deleteApplication in interface CloudHubDomainConnectionICloudHubException - 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 | |||||||||