org.glassfish.deployment.admin
Class DeploymentCommandUtils
java.lang.Object
org.glassfish.deployment.admin.DeploymentCommandUtils
public class DeploymentCommandUtils
- extends java.lang.Object
Utility methods useful from deployment-related commands.
- Author:
- Tim Quinn
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeploymentCommandUtils
public DeploymentCommandUtils()
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 instancesdomain - domain containing the relevant configurationtarget - name of the target being enabled or disabledappName - name of the application being enabled or disabledhabitat - hk2 habitatcontext - command context passed to the running enable or disable commandcommand - 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.