本文整理了Java中org.apache.catalina.Context.getPaused()
方法的一些代码示例,展示了Context.getPaused()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.getPaused()
方法的具体详情如下:
包路径:org.apache.catalina.Context
类名称:Context
方法名:getPaused
[英]Is this Context paused whilst it is reloaded?
[中]此上下文在重新加载时是否暂停?
代码示例来源:origin: org.apache.tomee/tomee-catalina
private static boolean undeploy(final StandardContext standardContext, final Container host) {
final Container child = host.findChild(standardContext.getName());
// skip undeployment if redeploying (StandardContext.redeploy())
if (child instanceof org.apache.catalina.Context && org.apache.catalina.Context.class.cast(child).getPaused()) {
return true;
}
// skip undeployment if restarting
final TomEEWebappClassLoader tomEEWebappClassLoader = lazyClassLoader(
org.apache.catalina.Context.class.isInstance(child) ? org.apache.catalina.Context.class.cast(child) : null);
if (tomEEWebappClassLoader != null && tomEEWebappClassLoader.isRestarting()) {
return true;
}
if (child != null) {
host.removeChild(standardContext);
return true;
}
return false;
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
// Don't un-map a context that is paused
if (context.getPaused()){
return;
}
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if(log.isDebugEnabled())
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, connector));
mapper.removeContextVersion(hostName, contextPath,
context.getWebappVersion());
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
// Don't un-map a context that is paused
if (context.getPaused()){
return;
}
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if(log.isDebugEnabled())
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, connector));
mapper.removeContextVersion(hostName, contextPath,
context.getWebappVersion());
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
// Don't un-map a context that is paused
if (context.getPaused()){
return;
}
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if(log.isDebugEnabled())
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, connector));
mapper.removeContextVersion(hostName, contextPath,
context.getWebappVersion());
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
// Don't un-map a context that is paused
if (context.getPaused()){
return;
}
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if(log.isDebugEnabled()) {
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, connector));
}
mapper.removeContextVersion(hostName, contextPath,
context.getWebappVersion());
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
// Don't un-map a context that is paused
if (context.getPaused()){
return;
}
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if(log.isDebugEnabled()) {
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, service));
}
mapper.removeContextVersion(context, hostName, contextPath,
context.getWebappVersion());
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
// Don't un-map a context that is paused
if (context.getPaused()){
return;
}
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if(log.isDebugEnabled()) {
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, connector));
}
mapper.removeContextVersion(hostName, contextPath,
context.getWebappVersion());
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if (context.getPaused()) {
if (log.isDebugEnabled()) {
log.debug(sm.getString("mapperListener.pauseContext",
contextPath, service));
}
mapper.pauseContextVersion(context, hostName, contextPath,
context.getWebappVersion());
} else {
if (log.isDebugEnabled()) {
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, service));
}
mapper.removeContextVersion(context, hostName, contextPath,
context.getWebappVersion());
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Unregister context.
*/
private void unregisterContext(Context context) {
String contextPath = context.getPath();
if ("/".equals(contextPath)) {
contextPath = "";
}
String hostName = context.getParent().getName();
if (context.getPaused()) {
if (log.isDebugEnabled()) {
log.debug(sm.getString("mapperListener.pauseContext",
contextPath, service));
}
mapper.pauseContextVersion(context, hostName, contextPath,
context.getWebappVersion());
} else {
if (log.isDebugEnabled()) {
log.debug(sm.getString("mapperListener.unregisterContext",
contextPath, service));
}
mapper.removeContextVersion(context, hostName, contextPath,
context.getWebappVersion());
}
}
代码示例来源:origin: codefollower/Tomcat-Research
if (!c.getPaused()) {
unregisterContext(c);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
if (!c.getPaused()) {
unregisterContext(c);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
if (!mapRequired && request.getContext().getPaused()) {
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
if (!mapRequired && request.getContext().getPaused()) {
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
if (!mapRequired && request.getContext().getPaused()) {
代码示例来源:origin: codefollower/Tomcat-Research
if (!mapRequired && request.getContext().getPaused()) {
内容来源于网络,如有侵权,请联系作者删除!