public interface CloudHubDomainConnectionI extends CloudHubConnectionI
| Modifier and Type | Method and Description |
|---|---|
com.mulesoft.ch.rest.model.Tenant |
createTenant(com.mulesoft.ch.rest.model.Tenant tenant)
Creates a tenant in the given domain based on the given object
|
void |
deleteApplication()
Deletes the application by using the connection's domain.
|
void |
deleteTenant(String tenantId)
Deletes a tenant from the given domain based on the given tenant id
|
void |
deleteTenantClientCertificates(String tenantId)
This method revokes current certificates for the given tenant from the given domain
|
void |
deleteTenants(List<String> tenantIds)
Deletes a bunch of tenant from the given domain based on the given tenant ids
|
void |
deployApplication(File file,
long waitMaxTime)
Deploys an application with the provided fileStream
|
void |
deployApplication(InputStream fileStream,
long waitMaxTime)
Deploys an application with the provided fileStream
|
File |
downloadApplicationLog(Map<String,String> queryParams)
Downloads the application's logs as a file
|
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.LogResults |
retrieveApplicationLog(Map<String,String> queryParams)
Retrieves the application's logs
|
com.mulesoft.ch.rest.model.ApplicationStatus |
retrieveApplicationStatus()
Retrieves the application's status
|
com.mulesoft.ch.rest.model.Tenant |
retrieveTenant(String tenantId)
Retrieves an specific tenant from the given domain based on the given tenantId
|
InputStream |
retrieveTenantClientCertificates(String tenantId)
This method generates a new set of certificates used to establish a VPN connection
between the given tenant and the remote location.
|
com.mulesoft.ch.rest.model.TenantResults |
retrieveTenants(Integer limit,
Integer offset,
String query,
Boolean enabled)
Retrieves tenants from the given domain using the given parameters as filters.
|
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.
|
com.mulesoft.ch.rest.model.Tenant |
updateTenant(com.mulesoft.ch.rest.model.Tenant tenant)
Updates a tenant in the given domain based on the given object
|
connectWithDomain, createApplication, createConnection, createNotification, getAccessToken, getEnvironmentId, getPassword, getSupportedMuleVersions, getUrl, getUsername, isCsAuthentication, isDomainAvailable, retrieveAccount, retrieveApplications, retrieveNotification, retrieveNotifications, updateNotificationsStatus, updateNotificationStatusString getDomain()
com.mulesoft.ch.rest.model.Application retrieveApplication()
throws CloudHubException
ApplicationCloudHubException - if the domain does not existcom.mulesoft.ch.rest.model.ApplicationStatus retrieveApplicationStatus()
throws CloudHubException
com.mulesoft.ch.rest.model.Application.ApplicationStatusCloudHubException - if there was an error when retrieving the application statuscom.mulesoft.ch.rest.model.LogResults retrieveApplicationLog(Map<String,String> queryParams) throws CloudHubException
LogResultsCloudHubException - if there was an error when retrieving the application logsFile downloadApplicationLog(Map<String,String> queryParams) throws CloudHubException
FileCloudHubException - if there was an error when retrieving the application logsvoid deployApplication(InputStream fileStream, long waitMaxTime) throws CloudHubException
fileStream - the stream containing the zip 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 applicationvoid 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 applicationcom.mulesoft.ch.rest.model.Application updateApplication(com.mulesoft.ch.rest.model.ApplicationUpdateInfo application)
throws CloudHubException
deployApplication(java.io.InputStream, long) insteadapplicationInfo - an instance of ApplicationUpdateInfo with the information to be updatedApplication containing all the new application's information provided by CloudHubCloudHubException - if there was an error while updating the applicationvoid 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 applicationcom.mulesoft.ch.rest.model.TenantResults retrieveTenants(Integer limit, Integer offset, String query, Boolean enabled) throws CloudHubException
limit - Optional. The maximum number of tenants you want to receive in each call.offset - Optional. The off you want to start querying from.query - Optional.enabled - Optional. Flag indicating if you want to retrieve only enabled or disabledTenantResultsCloudHubException - if there was an error while retrieving the tenantscom.mulesoft.ch.rest.model.Tenant retrieveTenant(String tenantId) throws CloudHubException
tenantId - The id the tenant you want to retrieveTenant containing all the information provided by CloudHubCloudHubException - if there was an error while retrieving the tenantInputStream retrieveTenantClientCertificates(String tenantId) throws CloudHubException
tenantId - the id of the tenant you want to generate tenant certificatesInputStream. A zip file containing new certificatesCloudHubException - if there was an error while generating new certificatescom.mulesoft.ch.rest.model.Tenant createTenant(com.mulesoft.ch.rest.model.Tenant tenant)
throws CloudHubException
tenant - an instance of Tenant with the informationTenant containing all the information provided by CloudHubCloudHubException - if there was an error while creating the tenantcom.mulesoft.ch.rest.model.Tenant updateTenant(com.mulesoft.ch.rest.model.Tenant tenant)
throws CloudHubException
tenant - an instance of Tenant with the informationTenant containing all the information provided by CloudHubCloudHubException - if there was an error while updating the tenantvoid deleteTenant(String tenantId) throws CloudHubException
tenantId - the id of the tenant you want to deleteCloudHubException - if there was an error while deleting the tenantvoid deleteTenants(List<String> tenantIds) throws CloudHubException
tenantIds - the list of tenant's ids you want to delete. IMPORTANT: If null or empty, all tenants will be deleted.CloudHubException - if there was an error while deleting the tenantsvoid deleteTenantClientCertificates(String tenantId) throws CloudHubException
tenantId - the id of the tenant you want to generate tenant certificatesCloudHubException - if there was an error while deleting certificatesCopyright © 2012-2016. All Rights Reserved.