Class WildflyDeploymentClient


  • public class WildflyDeploymentClient
    extends WildflyBaseClient
    Helper client that enables the generic deployment of contents on a Wildfy/EAP server.
    • Constructor Detail

      • WildflyDeploymentClient

        public WildflyDeploymentClient()
    • 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
      • removeDeployment

        public void removeDeployment​(String deploymentName)
                              throws Exception
        Parameters:
        deploymentName - Unique identifier of the deployment to be removed.
        Throws:
        Exception