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

java.lang.Object
  extended by com.sun.enterprise.v3.admin.cluster.CreateRemoteNodeCommand
All Implemented Interfaces:
AdminCommand
Direct Known Subclasses:
CreateNodeDcom, CreateNodeSshCommand

@Service
public abstract class CreateRemoteNodeCommand
extends java.lang.Object
implements AdminCommand

Refactored from CreateNodeSshCommand.java on 9/10/11 Note the use of "protected" visibility is one of those rare times when it is actually necessary. This class is sub-classed in a different package so protected is needed...

Author:
Carla Mott, Byron Nevins

Field Summary
protected  java.lang.String nodehost
           
protected  java.lang.String remotePassword
           
protected  java.lang.String remotePort
           
protected  java.lang.String remoteUser
           
 
Constructor Summary
CreateRemoteNodeCommand()
           
 
Method Summary
protected  void checkDefaults()
          Sometimes the console passes an empty string for a parameter.
 void executeInternal(AdminCommandContext context)
           
protected abstract  java.lang.String getInstallNodeCommandName()
           
protected abstract  java.util.List<java.lang.String> getPasswords()
           
protected abstract  RemoteType getType()
           
protected abstract  void initialize()
           
protected abstract  void populateBaseClass()
           
protected abstract  void populateCommandArgs(java.util.List<java.lang.String> args)
           
protected abstract  void populateParameters(ParameterMap pmap)
           
protected abstract  void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.api.admin.AdminCommand
execute
 

Field Detail

nodehost

protected java.lang.String nodehost

remotePort

protected java.lang.String remotePort

remoteUser

protected java.lang.String remoteUser

remotePassword

protected java.lang.String remotePassword
Constructor Detail

CreateRemoteNodeCommand

public CreateRemoteNodeCommand()
Method Detail

populateBaseClass

protected abstract void populateBaseClass()

initialize

protected abstract void initialize()

populateParameters

protected abstract void populateParameters(ParameterMap pmap)

populateCommandArgs

protected abstract void populateCommandArgs(java.util.List<java.lang.String> args)

getType

protected abstract RemoteType getType()

validate

protected abstract void validate()
                          throws CommandValidationException
Throws:
CommandValidationException

getPasswords

protected abstract java.util.List<java.lang.String> getPasswords()

getInstallNodeCommandName

protected abstract java.lang.String getInstallNodeCommandName()

executeInternal

public final void executeInternal(AdminCommandContext context)

checkDefaults

protected void checkDefaults()
Sometimes the console passes an empty string for a parameter. This makes sure those are defaulted correctly.



Copyright © 2012 GlassFish Community. All Rights Reserved.