Class WildflyDeploymentClient
- java.lang.Object
-
- org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyBaseClient
-
- org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyDeploymentClient
-
public class WildflyDeploymentClient extends WildflyBaseClient
Helper client that enables the generic deployment of contents on a Wildfy/EAP server.
-
-
Field Summary
-
Fields inherited from class org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyBaseClient
admin, ADMIN, DEFAULT_ADMIN, DEFAULT_ADMIN_PASSWORD, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_REALM, host, HOST, HTTP_REMOTING_PROTOCOL, HTTPS_REMOTING_PROTOCOL, JBOSS_SERVER_NAME, password, PASSWORD, port, PORT, profile, PROFILE, protocol, PROTOCOL, realm, REALM, REFERENCE_SERVER_HOST, REFERENCE_SERVER_NAME, referenceServerHost, referenceServerName, SERVER_GROUP, serverGroup
-
-
Constructor Summary
Constructors Constructor Description WildflyDeploymentClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeployContent(String deploymentName, String runtimeName, byte[] content, boolean enabled)voidenableDeployment(String deploymentName, boolean enabled)List<String>getDeployments()voidremoveDeployment(String deploymentName)-
Methods inherited from class org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyBaseClient
checkResponse, createControllerClient, createControllerClient, getHosts, getReferenceServerHost, getReferenceServerName, getServers, isFailure, isStandalone, loadConfig, safeClose, testConnection
-
-
-
-
Method Detail
-
deployContent
public void deployContent(String deploymentName, String runtimeName, byte[] content, boolean enabled) throws Exception
- Parameters:
deploymentName- Unique identifier of the deployment. Must be unique across all deployments.runtimeName- Name by which the deployment should be known within a server's runtime. This would be equivalent to the file name of a deployment file, and would form the basis for such things as default Java Enterprise Edition application and module names. This would typically be the same as 'name', but in some cases users may wish to have two deployments with the same 'runtime-name' (e.g. two versions of "foo.war") both available in the deployment content repository, in which case the deployments would need to have distinct 'name' values but would have the same 'runtime-name'.content- Content that comprise the deployment.enabled- Boolean indicating whether the deployment content is currently deployed in the runtime (or should be deployed in the runtime the next time the server starts.)- Throws:
Exception
-
enableDeployment
public void enableDeployment(String deploymentName, boolean enabled) throws Exception
- Parameters:
deploymentName- Unique identifier of the deployment to be enabled/disabled.enabled- true if the deployment should be enabled, false if it should be disabled.- Throws:
Exception
-
getDeployments
public List<String> getDeployments() throws Exception
- Returns:
- The list of deployment names.
- Throws:
Exception
-
-