public class AgentClient extends AbstractClient
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEPTED |
static String |
APPLICATIONS_PATH |
static String |
DOMAINS_PATH |
log| Constructor and Description |
|---|
AgentClient(DeployerLog log,
Deployment deployment) |
| Modifier and Type | Method and Description |
|---|---|
void |
deployApplication(String applicationName,
File file)
Deploys a mule application to the agent.
|
protected void |
deployArtifact(String artifactName,
File file,
String resourcePath)
Deploys a mule artifact to the agent.
|
void |
deployDomain(String domainName,
File file)
Deploys a mule domain to the agent.
|
AgentInfo |
getAgentInfo()
Retrieves agent information relative to the Agent instance being queried.
|
Application |
getApplication(String appName)
Retrieves the application information.
|
protected void |
init() |
void |
undeployApplication(String appName)
Undeploys a mule application.
|
protected void |
undeployArtifact(String artifactName,
String resourcePath)
Undeploys a mule artifact.
|
void |
undeployDomain(String domainName)
Undeploys a mule domain.
|
checkResponseStatus, checkResponseStatus, configureRequest, configureSecurityContext, delete, delete, get, get, get, getTarget, getUserAgent, initialize, patch, patch, post, post, post, put, put, readJsonEntity, setUserAgentpublic static final String APPLICATIONS_PATH
public static final String DOMAINS_PATH
public static final int ACCEPTED
public AgentClient(DeployerLog log, Deployment deployment)
protected void init()
init in class AbstractClientpublic void deployApplication(String applicationName, File file)
applicationName - The name of application to be deployedfile - The application contents filepublic void deployDomain(String domainName, File file)
domainName - The name of domain to be deployedfile - The domain contents fileprotected void deployArtifact(String artifactName, File file, String resourcePath)
artifactName - The name of artifact to be deployedfile - The artifact contents fileresourcePath - The relative path to the resourcepublic void undeployApplication(String appName)
appName - The name of application to be undeployedpublic void undeployDomain(String domainName)
domainName - The name of domain to be undeployedprotected void undeployArtifact(String artifactName, String resourcePath)
artifactName - The name of artifact to be undeployedresourcePath - The relative path of the resourcepublic Application getApplication(String appName)
appName - The application name of which the information is being gatheredApplication instanceCopyright © 2018 MuleSoft Inc. All rights reserved.