public class CloudHubClient extends AbstractMuleClient
| Modifier and Type | Field and Description |
|---|---|
static String |
A_APPLICATION_LOGS |
static String |
A_APPLICATION_PATH |
static String |
A_INSTANCE_LOGS |
static String |
APPLICATION_ENVIRONMENT |
static String |
APPLICATION_STATUS |
static String |
APPLICATIONS_DOMAINS_PATH |
static String |
APPLICATIONS_PATH |
static String |
BASE_API_PATH |
static String |
BASE_API_VERSION_PATH |
static String |
DEPLOYMENTS_PATH |
static String |
SUPPORTED_VERSIONS_PATH |
authenticationServiceClient, baseUri, CLIENT, DEFAULT_BASE_URL, ID, NAME, ORGANIZATION, SUB_ORGANIZATION_IDS, UNAUTHORIZED, USERlog| Constructor and Description |
|---|
CloudHubClient(CloudHubDeployment cloudhubDeployment,
DeployerLog log) |
| Modifier and Type | Method and Description |
|---|---|
Application |
createApplication(Application application,
File file)
Creates an
Application |
void |
deleteApplications(String domain)
Deletes an
Application based on its domain name |
List<Application> |
getApplications()
Look up all the applications
|
Application |
getApplications(String domain)
Look up a
Application based on its domain name |
List<Deployment> |
getDeployments(Application application)
Retrieve the list of
Deployment for an Application |
InputStream |
getEntireLogs(Application application,
String instanceId)
Retrieves the entire logs records from an
Application given the instanceId |
Environment |
getEnvironment() |
List<LogRecord> |
getLogs(Application application,
DeploymentLogRequest deploymentLogRequest)
Retrieves the logs records from an
Application given a DeploymentLogRequest |
List<SupportedVersion> |
getSupportedMuleVersions()
Retrieve a list of
SupportedVersion |
boolean |
isDomainAvailable(String domain)
It checks the availability of a given doamain name
|
void |
startApplications(String domain)
Starts an
Application based on its domain name |
void |
stopApplications(String domain)
Stops an
Application based on its domain name |
Application |
updateApplication(Application application,
File file)
Update an already existing
Application |
buildOrganization, configureRequest, createBusinessGroupPath, findEnvironmentByName, getBusinessGroupIdByBusinessGroupPath, getEnvId, getEnvironments, getMe, getOrgId, getSuborganizationIds, init, renewTokencheckResponseStatus, checkResponseStatus, configureSecurityContext, delete, delete, get, get, get, getTarget, getUserAgent, initialize, patch, patch, post, post, post, put, put, readJsonEntity, setUserAgentpublic static final String BASE_API_PATH
public static final String SUPPORTED_VERSIONS_PATH
public static final String APPLICATION_STATUS
public static final String APPLICATIONS_DOMAINS_PATH
public static final String BASE_API_VERSION_PATH
public static final String APPLICATIONS_PATH
public static final String A_APPLICATION_PATH
public static final String A_APPLICATION_LOGS
public static final String A_INSTANCE_LOGS
public static final String DEPLOYMENTS_PATH
public static final String APPLICATION_ENVIRONMENT
public CloudHubClient(CloudHubDeployment cloudhubDeployment, DeployerLog log)
public List<Application> getApplications()
Applicationpublic Application getApplications(String domain)
Application based on its domain namedomain - the domain name of the applicationApplicationpublic Application createApplication(Application application, File file)
Applicationapplication - the Application entityfile - the file of the ApplicationApplication just createdpublic Application updateApplication(Application application, File file)
Applicationapplication - the Application entityfile - the file of the ApplicationApplication just updatedpublic void deleteApplications(String domain)
Application based on its domain namedomain - the domain name of the applicationpublic void startApplications(String domain)
Application based on its domain namedomain - the domain name of the applicationpublic void stopApplications(String domain)
Application based on its domain namedomain - the domain name of the applicationpublic boolean isDomainAvailable(String domain)
domain - the domain namepublic List<SupportedVersion> getSupportedMuleVersions()
SupportedVersionSupportedVersionpublic List<Deployment> getDeployments(Application application)
Deployment for an Applicationapplication - the applicationDeploymentpublic List<LogRecord> getLogs(Application application, DeploymentLogRequest deploymentLogRequest)
Application given a DeploymentLogRequestapplication - the applicationdeploymentLogRequest - the specific request filter for the logsLogRecordpublic InputStream getEntireLogs(Application application, String instanceId)
Application given the instanceIdapplication - the applicationinstanceId - the id of the instance to get the logsInputStreampublic Environment getEnvironment()
Copyright © 2024 MuleSoft Inc. All rights reserved.