MCPcopy Index your code
hub / github.com/apache/tomcat / start

Method start

java/org/apache/catalina/startup/HostConfig.java:1585–1608  ·  view source on GitHub ↗

Process a "start" event for this Host.

()

Source from the content-addressed store, hash-verified

1583 * Process a "start" event for this Host.
1584 */
1585 public void start() {
1586
1587 if (log.isTraceEnabled()) {
1588 log.trace(sm.getString("hostConfig.start"));
1589 }
1590
1591 try {
1592 ObjectName hostON = host.getObjectName();
1593 oname = new ObjectName(hostON.getDomain() + ":type=Deployer,host=" + host.getName());
1594 Registry.getRegistry(null).registerComponent(this, oname, this.getClass().getName());
1595 } catch (Exception e) {
1596 log.warn(sm.getString("hostConfig.jmx.register", oname), e);
1597 }
1598
1599 if (!host.getAppBaseFile().isDirectory()) {
1600 log.error(sm.getString("hostConfig.appBase", host.getName(), host.getAppBaseFile().getPath()));
1601 host.setDeployOnStartup(false);
1602 host.setAutoDeploy(false);
1603 }
1604
1605 if (host.getDeployOnStartup()) {
1606 deployApps();
1607 }
1608 }
1609
1610
1611 /**

Callers 1

lifecycleEventMethod · 0.95

Calls 15

getRegistryMethod · 0.95
deployAppsMethod · 0.95
isTraceEnabledMethod · 0.65
traceMethod · 0.65
getStringMethod · 0.65
getObjectNameMethod · 0.65
getDomainMethod · 0.65
getNameMethod · 0.65
registerComponentMethod · 0.65
warnMethod · 0.65
isDirectoryMethod · 0.65
getAppBaseFileMethod · 0.65

Tested by

no test coverage detected