Class EmbeddedDeployerImpl

    • Constructor Detail

      • EmbeddedDeployerImpl

        public EmbeddedDeployerImpl()
    • Method Detail

      • getApplicationsDir

        public File getApplicationsDir()
        Description copied from interface: EmbeddedDeployer
        Returns the location of the applications directory, where deployed applications are saved.
        Specified by:
        getApplicationsDir in interface EmbeddedDeployer
        Returns:
        the deployed application directory.
      • setAutoDeploy

        public void setAutoDeploy​(boolean flag)
        Description copied from interface: EmbeddedDeployer
        Enables or disables the auto-deployment feature
        Specified by:
        setAutoDeploy in interface EmbeddedDeployer
        Parameters:
        flag - set to true to enable, false to disable
      • deploy

        public String deploy​(File archive,
                             DeployCommandParameters params)
        Description copied from interface: EmbeddedDeployer
        Deploys a file or directory to the servers passing the deployment command parameters Starts the server if it is not started yet.
        Specified by:
        deploy in interface EmbeddedDeployer
        Parameters:
        archive - archive or directory of the application
        params - deployment command parameters
        Returns:
        the deployed application name
      • deploy

        public String deploy​(ReadableArchive archive,
                             DeployCommandParameters params)
        Description copied from interface: EmbeddedDeployer
        Deploys an archive abstraction to the servers passing the deployment command parameters
        Specified by:
        deploy in interface EmbeddedDeployer
        Parameters:
        archive - archive or directory of the application
        params - deployment command parameters
        Returns:
        the deployed application name
      • undeploy

        public void undeploy​(String name,
                             UndeployCommandParameters params)
        Description copied from interface: EmbeddedDeployer
        Undeploys a previously deployed application
        Specified by:
        undeploy in interface EmbeddedDeployer
        Parameters:
        name - name returned by {@link EmbeddedDeployer#deploy(File, org.glassfish.api.deployment.DeployCommandParameters}
        params - the undeployment parameters, can be null for default values