com.sun.enterprise.v3.admin
Class RestartServer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestartServer
public RestartServer()
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.