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

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

@Service(name="create-instance")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
@ExecuteOn(value=DAS)
public class CreateInstanceCommand
extends java.lang.Object
implements AdminCommand

Remote AdminCommand to create an instance. This command is run only on DAS. 1. Register the instance on DAS 2. Create the file system on the instance node via ssh, DCOM, node agent, or other 3. Bootstrap a minimal set of config files on the instance for secure admin.

Author:
Jennifer Chou

Constructor Summary
CreateInstanceCommand()
           
 
Method Summary
 void createInstanceFilesystem(AdminCommandContext context)
           
 void execute(AdminCommandContext context)
           
 boolean validateDasOptions(AdminCommandContext context)
          This ensures we don't step on another domain's node files on a remote instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateInstanceCommand

public CreateInstanceCommand()
Method Detail

execute

public void execute(AdminCommandContext context)
Specified by:
execute in interface AdminCommand

createInstanceFilesystem

public void createInstanceFilesystem(AdminCommandContext context)

validateDasOptions

public boolean validateDasOptions(AdminCommandContext context)
This ensures we don't step on another domain's node files on a remote instance. See bug GLASSFISH-14985.



Copyright © 2012 GlassFish Community. All Rights Reserved.