本文整理了Java中org.apache.catalina.Engine.removeContainerListener()
方法的一些代码示例,展示了Engine.removeContainerListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Engine.removeContainerListener()
方法的具体详情如下:
包路径:org.apache.catalina.Engine
类名称:Engine
方法名:removeContainerListener
暂无
代码示例来源:origin: tomcat/catalina
/**
* Deregister the MBeans for the specified Engine and its nested
* components.
*
* @param engine Engine for which to destroy MBeans
*
* @exception Exception if an exception is thrown during MBean destruction
*/
protected void destroyMBeans(Engine engine) throws Exception {
// Deregister ourselves as a ContainerListener
engine.removeContainerListener(this);
// Deregister the MBeans for each child Host
Container hosts[] = engine.findChildren();
for (int k = 0; k < hosts.length; k++) {
destroyMBeans((Host) hosts[k]);
}
// Deregister the MBeans for the associated nested components
Realm eRealm = engine.getRealm();
if (eRealm != null) {
if (log.isDebugEnabled())
log.debug("Destroying MBean for Realm " + eRealm);
//MBeanUtils.destroyMBean(eRealm);
}
// Deregister the MBean for the Engine itself
if (log.isDebugEnabled()) {
log.debug("Destroying MBean for Engine " + engine);
}
//MBeanUtils.destroyMBean(engine);
}
代码示例来源:origin: org.gatein.wci/wci-tomcat7
void stop()
{
engine.removeContainerListener(this);
//
Container[] childrenContainers = engine.findChildren();
for (Container childContainer : childrenContainers)
{
if (childContainer instanceof Host)
{
Host host = (Host)childContainer;
unregisterHost(host);
}
}
//
registration.cancel();
registration = null;
}
代码示例来源:origin: modcluster/mod_cluster
@Test
public void undeployHost() {
TomcatEventHandler handler = this.createEventHandler(this.eventHandler, this.provider, this.factory);
org.apache.catalina.Engine engine = mock(org.apache.catalina.Engine.class);
ContainerEvent event = new ContainerEvent(engine, Container.REMOVE_CHILD_EVENT, null);
handler.containerEvent(event);
verify(engine).removeContainerListener(handler);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Deregister the MBeans for the specified Engine and its nested
* components.
*
* @param engine Engine for which to destroy MBeans
*
* @exception Exception if an exception is thrown during MBean destruction
*/
protected void destroyMBeans(Engine engine) throws Exception {
// Deregister ourselves as a ContainerListener
engine.removeContainerListener(this);
// Deregister the MBeans for each child Host
Container hosts[] = engine.findChildren();
for (int k = 0; k < hosts.length; k++) {
destroyMBeans((Host) hosts[k]);
}
// Deregister the MBeans for the associated nested components
Realm eRealm = engine.getRealm();
if (eRealm != null) {
if (log.isDebugEnabled())
log.debug("Destroying MBean for Realm " + eRealm);
//MBeanUtils.destroyMBean(eRealm);
}
// Deregister the MBean for the Engine itself
if (log.isDebugEnabled()) {
log.debug("Destroying MBean for Engine " + engine);
}
MBeanUtils.destroyMBean(engine);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Deregister the MBeans for the specified Engine and its nested
* components.
*
* @param engine Engine for which to destroy MBeans
*
* @exception Exception if an exception is thrown during MBean destruction
*/
protected void destroyMBeans(Engine engine) throws Exception {
// Deregister ourselves as a ContainerListener
engine.removeContainerListener(this);
// Deregister the MBeans for each child Host
Container hosts[] = engine.findChildren();
for (int k = 0; k < hosts.length; k++) {
destroyMBeans((Host) hosts[k]);
}
// Deregister the MBeans for the associated nested components
Realm eRealm = engine.getRealm();
if (eRealm != null) {
if (log.isDebugEnabled())
log.debug("Destroying MBean for Realm " + eRealm);
//MBeanUtils.destroyMBean(eRealm);
}
// Deregister the MBean for the Engine itself
if (log.isDebugEnabled()) {
log.debug("Destroying MBean for Engine " + engine);
}
MBeanUtils.destroyMBean(engine);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Deregister the MBeans for the specified Engine and its nested
* components.
*
* @param engine Engine for which to destroy MBeans
*
* @exception Exception if an exception is thrown during MBean destruction
*/
protected void destroyMBeans(Engine engine) throws Exception {
// Deregister ourselves as a ContainerListener
engine.removeContainerListener(this);
// Deregister the MBeans for each child Host
Container hosts[] = engine.findChildren();
for (int k = 0; k < hosts.length; k++) {
destroyMBeans((Host) hosts[k]);
}
// Deregister the MBeans for the associated nested components
Realm eRealm = engine.getRealm();
if (eRealm != null) {
if (log.isDebugEnabled())
log.debug("Destroying MBean for Realm " + eRealm);
//MBeanUtils.destroyMBean(eRealm);
}
// Deregister the MBean for the Engine itself
if (log.isDebugEnabled()) {
log.debug("Destroying MBean for Engine " + engine);
}
MBeanUtils.destroyMBean(engine);
}
代码示例来源:origin: jboss.web/jbossweb
Service service = (Service) source;
Engine engine = (Engine) service.getContainer();
engine.removeContainerListener(this);
((Lifecycle) engine).removeLifecycleListener(this);
for (Container host : engine.findChildren()) {
代码示例来源:origin: org.jboss.web/jbossweb
Service service = (Service) source;
Engine engine = (Engine) service.getContainer();
engine.removeContainerListener(this);
((Lifecycle) engine).removeLifecycleListener(this);
for (Container host : engine.findChildren()) {
内容来源于网络,如有侵权,请联系作者删除!