Package com.sun.enterprise.v3.server
Class AppServerStartup
- java.lang.Object
-
- com.sun.enterprise.v3.server.AppServerStartup
-
- All Implemented Interfaces:
com.sun.enterprise.module.bootstrap.ModuleStartup,org.glassfish.hk2.api.PostConstruct
@Service @Rank(50) public class AppServerStartup extends Object implements org.glassfish.hk2.api.PostConstruct, com.sun.enterprise.module.bootstrap.ModuleStartup
Main class for Glassfish startup This class spawns a non-daemon Thread when the start() is called. Having a non-daemon thread allows us to control lifecycle of server JVM. The thead is stopped when stop() is called.- Author:
- Jerome Dochez, sahoo@sun.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppServerStartup.AppInstanceListener
-
Constructor Summary
Constructors Constructor Description AppServerStartup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostConstruct()static voidprintModuleStatus(com.sun.enterprise.module.ModulesRegistry registry, Level level)booleanrun()voidsetStartupContext(com.sun.enterprise.module.bootstrap.StartupContext context)voidstart()voidstop()
-
-
-
Method Detail
-
setStartupContext
@Inject public void setStartupContext(com.sun.enterprise.module.bootstrap.StartupContext context)
- Specified by:
setStartupContextin interfacecom.sun.enterprise.module.bootstrap.ModuleStartup
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
start
public void start()
- Specified by:
startin interfacecom.sun.enterprise.module.bootstrap.ModuleStartup
-
run
public boolean run()
- Returns:
- True is startup succeeded, false if an error occurred preventing the server from starting
-
printModuleStatus
public static void printModuleStatus(com.sun.enterprise.module.ModulesRegistry registry, Level level)
-
stop
public void stop()
- Specified by:
stopin interfacecom.sun.enterprise.module.bootstrap.ModuleStartup
-
-