Class GlassFishClusterExecutor
- java.lang.Object
-
- com.sun.enterprise.v3.admin.cluster.GlassFishClusterExecutor
-
- All Implemented Interfaces:
ClusterExecutor
@Service(name="GlassFishClusterExecutor") public class GlassFishClusterExecutor extends Object implements ClusterExecutor
A ClusterExecutor is responsible for remotely executing commands. The list of target servers (either clusters or remote instances) is obtained from the parameter list.- Author:
- Vijay Ramachandran
-
-
Constructor Summary
Constructors Constructor Description GlassFishClusterExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionReport.ExitCode
execute(String commandName, AdminCommand command, AdminCommandContext context, ParameterMap parameters)
Execute the passed command on targeted remote instances.
-
-
-
Method Detail
-
execute
public ActionReport.ExitCode execute(String commandName, AdminCommand command, AdminCommandContext context, ParameterMap parameters)
Execute the passed command on targeted remote instances. The list of remote instances is usually retrieved from the passed parameters (with a "target" parameter for instance) or from the configuration.
Each remote execution must return a different ActionReport so the user or framework can get feedback on the success or failure or such executions.
- Specified by:
execute
in interfaceClusterExecutor
- Parameters:
commandName
- the command to executecontext
- the original command contextparameters
- the parameters passed to the original local commandcommand
- the command to execute- Returns:
- an array of @{link org.glassfish.api.ActionReport} for each remote execution status.
-
-