org.glassfish.deployment.admin
Class DeploymentCommandUtils

java.lang.Object
  extended by org.glassfish.deployment.admin.DeploymentCommandUtils

public class DeploymentCommandUtils
extends java.lang.Object

Utility methods useful from deployment-related commands.

Author:
Tim Quinn

Constructor Summary
DeploymentCommandUtils()
           
 
Method Summary
static java.io.File renameUploadedFileOrCopyInPlaceFile(java.io.File finalUploadDir, java.io.File fileParam, java.util.logging.Logger logger, ServerEnvironment env)
           
static ActionReport.ExitCode replicateEnableDisableToContainingCluster(java.lang.String commandName, Domain domain, java.lang.String target, java.lang.String appName, org.jvnet.hk2.component.Habitat habitat, AdminCommandContext context, AdminCommand command)
          Replicates an enable or disable command to all instances in the cluster of which the target is a member.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentCommandUtils

public DeploymentCommandUtils()
Method Detail

replicateEnableDisableToContainingCluster

public static ActionReport.ExitCode replicateEnableDisableToContainingCluster(java.lang.String commandName,
                                                                              Domain domain,
                                                                              java.lang.String target,
                                                                              java.lang.String appName,
                                                                              org.jvnet.hk2.component.Habitat habitat,
                                                                              AdminCommandContext context,
                                                                              AdminCommand command)
                                                                       throws java.lang.IllegalArgumentException,
                                                                              java.lang.IllegalAccessException
Replicates an enable or disable command to all instances in the cluster of which the target is a member. If the target is not cluster member this method is a no-op.

Parameters:
commandName - name of the command to replicate to cluster instances
domain - domain containing the relevant configuration
target - name of the target being enabled or disabled
appName - name of the application being enabled or disabled
habitat - hk2 habitat
context - command context passed to the running enable or disable command
command - command object
Returns:
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException

renameUploadedFileOrCopyInPlaceFile

public static java.io.File renameUploadedFileOrCopyInPlaceFile(java.io.File finalUploadDir,
                                                               java.io.File fileParam,
                                                               java.util.logging.Logger logger,
                                                               ServerEnvironment env)
                                                        throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.