Package com.sun.enterprise.v3.admin
Class RestartServer
- java.lang.Object
-
- com.sun.enterprise.v3.admin.RestartServer
-
- Direct Known Subclasses:
RestartDomainCommand
,RestartInstanceInstanceCommand
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
Constructors Constructor Description RestartServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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.
-
-