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 void
checkDefaults()
Sometimes the console passes an empty string for a parameter.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
getInstallNodeCommandName()
protected List<String>
getPasswords()
Get list of password file entriesprotected RemoteType
getType()
protected void
initialize()
protected void
populateBaseClass()
We can't put these values into the base class simply to get the names that the user sees correct.protected void
populateCommandArgs(List<String> args)
protected void
populateParameters(ParameterMap pmap)
protected void
validate()
-
Methods inherited from class com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
executeInternal
-
-
-
-
Method Detail
-
initialize
protected void initialize()
- Specified by:
initialize
in classCreateRemoteNodeCommand
-
execute
public final 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
-
validate
protected void validate() throws CommandValidationException
- Specified by:
validate
in classCreateRemoteNodeCommand
- Throws:
CommandValidationException
-
getType
protected RemoteType getType()
- Specified by:
getType
in classCreateRemoteNodeCommand
-
checkDefaults
protected final void checkDefaults()
Sometimes the console passes an empty string for a parameter. This makes sure those are defaulted correctly.- Overrides:
checkDefaults
in 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:
populateBaseClass
in classCreateRemoteNodeCommand
-
populateParameters
protected final void populateParameters(ParameterMap pmap)
- Specified by:
populateParameters
in classCreateRemoteNodeCommand
-
populateCommandArgs
protected final void populateCommandArgs(List<String> args)
- Specified by:
populateCommandArgs
in classCreateRemoteNodeCommand
-
getPasswords
protected List<String> getPasswords()
Get list of password file entries- Specified by:
getPasswords
in classCreateRemoteNodeCommand
- Returns:
- List
-
getInstallNodeCommandName
protected String getInstallNodeCommandName()
- Specified by:
getInstallNodeCommandName
in classCreateRemoteNodeCommand
-
-