Class CreateNodeSshCommand
- java.lang.Object
-
- com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
-
- com.sun.enterprise.v3.admin.cluster.CreateNodeSshCommand
-
- All Implemented Interfaces:
AdminCommand
@Service(name="create-node-ssh") @PerLookup @ExecuteOn(DAS) public class CreateNodeSshCommand extends CreateRemoteNodeCommand
Remote AdminCommand to create and ssh node. This command is run only on DAS. Register the node with SSH info on DAS- Author:
- Carla Mott
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
nodehost, remotePassword, remotePort, remoteUser
-
-
Constructor Summary
Constructors Constructor Description CreateNodeSshCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckDefaults()Sometimes the console passes an empty string for a parameter.voidexecute(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 StringgetInstallNodeCommandName()protected List<String>getPasswords()Get list of password file entriesprotected RemoteTypegetType()protected voidinitialize()protected voidpopulateBaseClass()We can't put these values into the base class simply to get the names that the user sees correct.protected voidpopulateCommandArgs(List<String> args)protected voidpopulateParameters(ParameterMap pmap)protected voidvalidate()-
Methods inherited from class com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
executeInternal
-
-
-
-
Method Detail
-
execute
public final void execute(AdminCommandContext context)
Description copied from interface:AdminCommandExecutes 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
-
initialize
protected void initialize()
- Specified by:
initializein classCreateRemoteNodeCommand
-
validate
protected void validate() throws CommandValidationException- Specified by:
validatein classCreateRemoteNodeCommand- Throws:
CommandValidationException
-
checkDefaults
protected final void checkDefaults()
Sometimes the console passes an empty string for a parameter. This makes sure those are defaulted correctly.- Overrides:
checkDefaultsin classCreateRemoteNodeCommand
-
getType
protected final RemoteType getType()
- Specified by:
getTypein classCreateRemoteNodeCommand
-
populateBaseClass
protected void populateBaseClass()
We can't put these values into the base class simply to get the names that the user sees correct. I.e. "ssh" versus "dcom" versus future types...- Specified by:
populateBaseClassin classCreateRemoteNodeCommand
-
populateParameters
protected final void populateParameters(ParameterMap pmap)
- Specified by:
populateParametersin classCreateRemoteNodeCommand
-
populateCommandArgs
protected final void populateCommandArgs(List<String> args)
- Specified by:
populateCommandArgsin classCreateRemoteNodeCommand
-
getPasswords
protected List<String> getPasswords()
Get list of password file entries- Specified by:
getPasswordsin classCreateRemoteNodeCommand- Returns:
- List
-
getInstallNodeCommandName
protected String getInstallNodeCommandName()
- Specified by:
getInstallNodeCommandNamein classCreateRemoteNodeCommand
-
-