Check status of all webapps.
()
| 1632 | * Check status of all webapps. |
| 1633 | */ |
| 1634 | protected void check() { |
| 1635 | |
| 1636 | if (host.getAutoDeploy()) { |
| 1637 | // Check for resources modification to trigger redeployment |
| 1638 | DeployedApplication[] apps = deployed.values().toArray(new DeployedApplication[0]); |
| 1639 | for (DeployedApplication app : apps) { |
| 1640 | if (tryAddServiced(app.name)) { |
| 1641 | try { |
| 1642 | checkResources(app, false); |
| 1643 | } finally { |
| 1644 | removeServiced(app.name); |
| 1645 | } |
| 1646 | } |
| 1647 | } |
| 1648 | |
| 1649 | // Check for old versions of applications that can now be undeployed |
| 1650 | if (host.getUndeployOldVersions()) { |
| 1651 | checkUndeploy(); |
| 1652 | } |
| 1653 | |
| 1654 | // Hotdeploy applications |
| 1655 | deployApps(); |
| 1656 | } |
| 1657 | } |
| 1658 | |
| 1659 | |
| 1660 | /** |
no test coverage detected