本文整理了Java中org.apache.catalina.Lifecycle.getState()
方法的一些代码示例,展示了Lifecycle.getState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lifecycle.getState()
方法的具体详情如下:
包路径:org.apache.catalina.Lifecycle
类名称:Lifecycle
方法名:getState
[英]Obtain the current state of the source component.
[中]获取源组件的当前状态。
代码示例来源:origin: org.apache.tomee/tomee-catalina
@Override
public LifecycleState getState() {
if (delegate instanceof Lifecycle) {
return ((Lifecycle) delegate).getState();
}
return null;
}
代码示例来源:origin: com.github.jsimone/webapp-runner-main
public void lifecycleEvent(LifecycleEvent event) {
if (event.getLifecycle().getState() == LifecycleState.FAILED) {
Server server = tomcat.getServer();
if (server instanceof StandardServer) {
System.err.println("SEVERE: Context [" + ctxName + "] failed in [" + event.getLifecycle().getClass().getName() + "] lifecycle. Allowing Tomcat to shutdown.");
((StandardServer) server).stopAwait();
}
}
}
});
代码示例来源:origin: jsimone/webapp-runner
public void lifecycleEvent(LifecycleEvent event) {
if (event.getLifecycle().getState() == LifecycleState.FAILED) {
Server server = tomcat.getServer();
if (server instanceof StandardServer) {
System.err.println("SEVERE: Context [" + ctxName + "] failed in [" + event.getLifecycle().getClass().getName() + "] lifecycle. Allowing Tomcat to shutdown.");
((StandardServer) server).stopAwait();
}
}
}
});
代码示例来源:origin: com.att.nsa/nsaServerLibrary
@Override
public void lifecycleEvent(LifecycleEvent event) {
if (event.getLifecycle().getState() == state) {
synchronized (mutex) {
tomcat.getServer().removeLifecycleListener(this);
mutex.notify();
}
}
}
});
代码示例来源:origin: ch.rasc/embeddedtc
@Override
public void lifecycleEvent(LifecycleEvent event) {
if (event.getLifecycle().getState() == LifecycleState.FAILED) {
((StandardServer) EmbeddedTomcat.this.tomcat.getServer()).stopAwait();
}
}
});
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
((Lifecycle) manager).getState().isAvailable() ) {
((Lifecycle) manager).stop();
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
((Lifecycle) manager).getState().isAvailable() ) {
((Lifecycle) manager).stop();
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
代码示例来源:origin: codefollower/Tomcat-Research
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
((Lifecycle) manager).getState().isAvailable()) {
((Lifecycle) manager).stop();
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
((Lifecycle) manager).getState().isAvailable()) {
((Lifecycle) manager).stop();
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
if (manager instanceof Lifecycle && ((Lifecycle) manager).getState().isAvailable()) {
((Lifecycle) manager).stop();
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
if (manager instanceof Lifecycle && ((Lifecycle) manager).getState().isAvailable()) {
((Lifecycle) manager).stop();
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
代码示例来源:origin: codefollower/Tomcat-Research
((Lifecycle) manager).getState().isAvailable()) {
((Lifecycle) manager).stop();
((Lifecycle) pipeline).getState().isAvailable()) {
((Lifecycle) pipeline).stop();
内容来源于网络,如有侵权,请联系作者删除!