Class CreateNodeDcom
- java.lang.Object
-
- com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
-
- com.sun.enterprise.v3.admin.cluster.dcom.CreateNodeDcom
-
- All Implemented Interfaces:
AdminCommand
@Service(name="create-node-dcom") @PerLookup @CommandLock(NONE) @ExecuteOn(DAS) public class CreateNodeDcom extends CreateRemoteNodeCommand
Remote AdminCommand to create a DCOM node- Author:
- Byron Nevins
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
nodehost, remotePassword, remotePort, remoteUser
-
-
Constructor Summary
Constructors Constructor Description CreateNodeDcom()
-
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
-
initialize
protected void initialize()
- Specified by:
initializein classCreateRemoteNodeCommand
-
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
-
validate
protected void validate() throws CommandValidationException- Specified by:
validatein classCreateRemoteNodeCommand- Throws:
CommandValidationException
-
getType
protected RemoteType getType()
- Specified by:
getTypein classCreateRemoteNodeCommand
-
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
-
populateBaseClass
protected final 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
-
-