Process a "start" event for this Host.
()
| 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 | /** |
no test coverage detected