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

java.lang.Object
  extended by com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
      extended by com.sun.enterprise.v3.admin.cluster.CreateNodeSshCommand
All Implemented Interfaces:
AdminCommand

@Service(name="create-node-ssh")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
@ExecuteOn(value=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
CreateNodeSshCommand()
           
 
Method Summary
protected  void checkDefaults()
          Sometimes the console passes an empty string for a parameter.
 void execute(AdminCommandContext context)
           
protected  java.lang.String getInstallNodeCommandName()
           
protected  java.util.List<java.lang.String> getPasswords()
          Get list of password file entries
protected  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(java.util.List<java.lang.String> args)
           
protected  void populateParameters(ParameterMap pmap)
           
protected  void validate()
           
 
Methods inherited from class com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
executeInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateNodeSshCommand

public CreateNodeSshCommand()
Method Detail

execute

public final void execute(AdminCommandContext context)

initialize

protected void initialize()
Specified by:
initialize in class CreateRemoteNodeCommand

validate

protected void validate()
                 throws CommandValidationException
Specified by:
validate in class CreateRemoteNodeCommand
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:
checkDefaults in class CreateRemoteNodeCommand

getType

protected final RemoteType getType()
Specified by:
getType in class CreateRemoteNodeCommand

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:
populateBaseClass in class CreateRemoteNodeCommand

populateParameters

protected final void populateParameters(ParameterMap pmap)
Specified by:
populateParameters in class CreateRemoteNodeCommand

populateCommandArgs

protected final void populateCommandArgs(java.util.List<java.lang.String> args)
Specified by:
populateCommandArgs in class CreateRemoteNodeCommand

getPasswords

protected java.util.List<java.lang.String> getPasswords()
Get list of password file entries

Specified by:
getPasswords in class CreateRemoteNodeCommand
Returns:
List

getInstallNodeCommandName

protected java.lang.String getInstallNodeCommandName()
Specified by:
getInstallNodeCommandName in class CreateRemoteNodeCommand


Copyright © 2012 GlassFish Community. All Rights Reserved.