com.sun.enterprise.v3.admin.cluster
Class GlassFishClusterExecutor

java.lang.Object
  extended by com.sun.enterprise.v3.admin.cluster.GlassFishClusterExecutor
All Implemented Interfaces:
ClusterExecutor, org.jvnet.hk2.component.PostConstruct

@Service(name="GlassFishClusterExecutor")
public class GlassFishClusterExecutor
extends java.lang.Object
implements ClusterExecutor, org.jvnet.hk2.component.PostConstruct

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
GlassFishClusterExecutor()
           
 
Method Summary
 ActionReport.ExitCode execute(java.lang.String commandName, AdminCommand command, AdminCommandContext context, ParameterMap parameters)
          Execute the passed command on targeted remote instances.
 void postConstruct()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlassFishClusterExecutor

public GlassFishClusterExecutor()
Method Detail

postConstruct

public void postConstruct()
Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct

execute

public ActionReport.ExitCode execute(java.lang.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 interface ClusterExecutor
Parameters:
commandName - the command to execute
context - the original command context
parameters - the parameters passed to the original local command
Returns:
an array of @{link org.glassfish.api.ActionReport} for each remote execution status.


Copyright © 2012 GlassFish Community. All Rights Reserved.