com.sun.enterprise.admin.util
Class ClusterOperationUtil

java.lang.Object
  extended by com.sun.enterprise.admin.util.ClusterOperationUtil

public class ClusterOperationUtil
extends Object


Constructor Summary
ClusterOperationUtil()
           
 
Method Summary
static void clearInstanceList()
           
static List<Server> getCompletedInstances()
           
static ActionReport.ExitCode replicateCommand(String commandName, FailurePolicy failPolicy, FailurePolicy offlinePolicy, Collection<String> targetNames, AdminCommandContext context, ParameterMap parameters, org.jvnet.hk2.component.Habitat habitat)
           
static ActionReport.ExitCode replicateCommand(String commandName, FailurePolicy failPolicy, FailurePolicy offlinePolicy, Collection<String> targetNames, AdminCommandContext context, ParameterMap parameters, org.jvnet.hk2.component.Habitat habitat, File intermediateDownloadDir)
          Replicates a given command on the given list of targets, optionally gathering downloaded result payloads from the instance commands into a directory.
static ActionReport.ExitCode replicateCommand(String commandName, FailurePolicy failPolicy, FailurePolicy offlinePolicy, List<Server> instancesForReplication, AdminCommandContext context, ParameterMap parameters, org.jvnet.hk2.component.Habitat habitat)
           
static ActionReport.ExitCode replicateCommand(String commandName, FailurePolicy failPolicy, FailurePolicy offlinePolicy, List<Server> instancesForReplication, AdminCommandContext context, ParameterMap parameters, org.jvnet.hk2.component.Habitat habitat, File intermediateDownloadDir)
          Replicates a given command on the given list of targets, optionally gathering downloaded result payloads from the instance commands into a directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterOperationUtil

public ClusterOperationUtil()
Method Detail

getCompletedInstances

public static List<Server> getCompletedInstances()

clearInstanceList

public static void clearInstanceList()

replicateCommand

public static ActionReport.ExitCode replicateCommand(String commandName,
                                                     FailurePolicy failPolicy,
                                                     FailurePolicy offlinePolicy,
                                                     List<Server> instancesForReplication,
                                                     AdminCommandContext context,
                                                     ParameterMap parameters,
                                                     org.jvnet.hk2.component.Habitat habitat)

replicateCommand

public static ActionReport.ExitCode replicateCommand(String commandName,
                                                     FailurePolicy failPolicy,
                                                     FailurePolicy offlinePolicy,
                                                     List<Server> instancesForReplication,
                                                     AdminCommandContext context,
                                                     ParameterMap parameters,
                                                     org.jvnet.hk2.component.Habitat habitat,
                                                     File intermediateDownloadDir)
Replicates a given command on the given list of targets, optionally gathering downloaded result payloads from the instance commands into a directory.

If intermediateDownloadDir is non-null, then any files returned from the instances in the payload of the HTTP response will be stored in a directory tree like this:

 ${intermediateDownloadDir}/
     ${instanceA}/
         file(s) returned from instance A
     ${instanceB}/
         file(s) returned from instance B
     ...
 
where ${instanceA}, ${instanceB}, etc. are the names of the instances to which the command was replicated. This method does no further processing on the downloaded files but leaves that to the calling command.


replicateCommand

public static ActionReport.ExitCode replicateCommand(String commandName,
                                                     FailurePolicy failPolicy,
                                                     FailurePolicy offlinePolicy,
                                                     Collection<String> targetNames,
                                                     AdminCommandContext context,
                                                     ParameterMap parameters,
                                                     org.jvnet.hk2.component.Habitat habitat)

replicateCommand

public static ActionReport.ExitCode replicateCommand(String commandName,
                                                     FailurePolicy failPolicy,
                                                     FailurePolicy offlinePolicy,
                                                     Collection<String> targetNames,
                                                     AdminCommandContext context,
                                                     ParameterMap parameters,
                                                     org.jvnet.hk2.component.Habitat habitat,
                                                     File intermediateDownloadDir)
Replicates a given command on the given list of targets, optionally gathering downloaded result payloads from the instance commands into a directory.

If intermediateDownloadDir is non-null, then any files returned from the instances in the payload of the HTTP response will be stored in a directory tree like this:

 ${intermediateDownloadDir}/
     ${instanceA}/
         file(s) returned from instance A
     ${instanceB}/
         file(s) returned from instance B
     ...
 
where ${instanceA}, ${instanceB}, etc. are the names of the instances to which the command was replicated. This method does no further processing on the downloaded files but leaves that to the calling command.



Copyright © 2012 GlassFish Community. All Rights Reserved.