Mark a context as being reloaded. Reversion of this state is performed by calling addContextVersion(...) when context starts up. @param ctxt The actual context @param hostName Virtual host name this context belongs to @param contextPath Context path @param version Context
(Context ctxt, String hostName, String contextPath, String version)
| 376 | * @param version Context version |
| 377 | */ |
| 378 | public void pauseContextVersion(Context ctxt, String hostName, String contextPath, String version) { |
| 379 | hostName = renameWildcardHost(hostName); |
| 380 | ContextVersion contextVersion = findContextVersion(hostName, contextPath, version, true); |
| 381 | if (contextVersion == null || !ctxt.equals(contextVersion.object)) { |
| 382 | return; |
| 383 | } |
| 384 | contextVersion.markPaused(); |
| 385 | } |
| 386 | |
| 387 | |
| 388 | private ContextVersion findContextVersion(String hostName, String contextPath, String version, boolean silent) { |