com.sun.enterprise.v3.admin
Class RestartServer

java.lang.Object
  extended by com.sun.enterprise.v3.admin.RestartServer
Direct Known Subclasses:
RestartDomainCommand

public class RestartServer
extends Object

For non-verbose mode: Stop this server, spawn a new JVM that will wait for this JVM to die. The new JVM then starts the server again. For verbose mode: We want the asadmin console itself to do the respawning -- so just return a special int from System.exit(). This tells asadmin to restart.

Author:
Byron Nevins

Constructor Summary
RestartServer()
           
 
Method Summary
protected  void doExecute(AdminCommandContext context)
          Restart of the application server : All running services are stopped.
protected  void setDebug(Boolean b)
           
protected  void setRegistry(com.sun.enterprise.module.ModulesRegistry registryIn)
           
protected  void setServerName(String serverNameIn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestartServer

public RestartServer()
Method Detail

setDebug

protected final void setDebug(Boolean b)

setRegistry

protected final void setRegistry(com.sun.enterprise.module.ModulesRegistry registryIn)

setServerName

protected final void setServerName(String serverNameIn)

doExecute

protected final void doExecute(AdminCommandContext context)
Restart of the application server : All running services are stopped. LookupManager is flushed. Client code that started us should notice the special return value and restart us.



Copyright © 2012. All Rights Reserved.