Class PingNodeSshCommand
- java.lang.Object
-
- com.sun.enterprise.v3.admin.cluster.PingNodeRemoteCommand
-
- com.sun.enterprise.v3.admin.cluster.PingNodeSshCommand
-
- All Implemented Interfaces:
AdminCommand
@Service(name="ping-node-ssh") @PerLookup @CommandLock(NONE) @ExecuteOn(DAS) public class PingNodeSshCommand extends PingNodeRemoteCommand
Remote AdminCommand to validate the connection to an SSH node.- Author:
- Joe Di Pol
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.v3.admin.cluster.PingNodeRemoteCommand
name
-
-
Constructor Summary
Constructors Constructor Description PingNodeSshCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter valuesprotected String
validateSubType(Node node)
-
Methods inherited from class com.sun.enterprise.v3.admin.cluster.PingNodeRemoteCommand
executeInternal
-
-
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommand
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Parameters:
context
- information
-
validateSubType
protected String validateSubType(Node node)
- Specified by:
validateSubType
in classPingNodeRemoteCommand
- Parameters:
node
- the node of interest- Returns:
- null if all-OK, otherwise return an error message
-
-