com.sun.enterprise.admin.util
Class ClusterOperationUtil
java.lang.Object
com.sun.enterprise.admin.util.ClusterOperationUtil
public class ClusterOperationUtil
- extends java.lang.Object
|
Method Summary |
static void |
clearInstanceList()
|
static java.util.List<Server> |
getCompletedInstances()
|
static ActionReport.ExitCode |
replicateCommand(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.Collection<java.lang.String> targetNames,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat)
|
static ActionReport.ExitCode |
replicateCommand(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.Collection<java.lang.String> targetNames,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat,
java.io.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(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.List<Server> instancesForReplication,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat)
|
static ActionReport.ExitCode |
replicateCommand(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.List<Server> instancesForReplication,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat,
java.io.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 |
ClusterOperationUtil
public ClusterOperationUtil()
getCompletedInstances
public static java.util.List<Server> getCompletedInstances()
clearInstanceList
public static void clearInstanceList()
replicateCommand
public static ActionReport.ExitCode replicateCommand(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.List<Server> instancesForReplication,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat)
replicateCommand
public static ActionReport.ExitCode replicateCommand(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.List<Server> instancesForReplication,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat,
java.io.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(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.Collection<java.lang.String> targetNames,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat)
replicateCommand
public static ActionReport.ExitCode replicateCommand(java.lang.String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
java.util.Collection<java.lang.String> targetNames,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.Habitat habitat,
java.io.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.