当前位置: 首页>>代码示例>>Java>>正文


Java ServerLoadMonitor.shutdown方法代码示例

本文整理汇总了Java中org.directwebremoting.extend.ServerLoadMonitor.shutdown方法的典型用法代码示例。如果您正苦于以下问题:Java ServerLoadMonitor.shutdown方法的具体用法?Java ServerLoadMonitor.shutdown怎么用?Java ServerLoadMonitor.shutdown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.directwebremoting.extend.ServerLoadMonitor的用法示例。


在下文中一共展示了ServerLoadMonitor.shutdown方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: shutdownServerLoadMonitorsInContainerList

import org.directwebremoting.extend.ServerLoadMonitor; //导入方法依赖的package包/类
/**
 * Internal use only.
 * <p>If we detect that the server is being shutdown then we want to kill
 * any reverse ajax threads.
 * @param containers The list of containers to look for ServerLoadMonitors in
 * @param title What causes this (for debug purposes)
 */
public static void shutdownServerLoadMonitorsInContainerList(List containers, String title)
{
    if (containers == null || containers.size() == 0)
    {
        log.debug("No containers to shutdown for: " + title);
        return;
    }

    log.debug("Shutting down containers for: " + title);
    for (Iterator it = containers.iterator(); it.hasNext();)
    {
        Container container = (Container) it.next();
        ServerLoadMonitor monitor = (ServerLoadMonitor) container.getBean(ServerLoadMonitor.class.getName());
        monitor.shutdown();
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:ContainerUtil.java

示例2: shutdown

import org.directwebremoting.extend.ServerLoadMonitor; //导入方法依赖的package包/类
/**
 * Kill all comet polls.
 * <p>Technically a servlet engine ought to call this only when all the
 * threads are already removed, however at least Tomcat doesn't do this
 * properly (it waits for a while and then calls destroy anyway).
 * <p>It would be good if we could get {@link #destroy()} to call this
 * method however destroy() is only called once all threads are done so it's
 * too late.
 */
public void shutdown()
{
    ServerLoadMonitor monitor = (ServerLoadMonitor) container.getBean(ServerLoadMonitor.class.getName());
    monitor.shutdown();
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:15,代码来源:DwrServlet.java

示例3: shutdown

import org.directwebremoting.extend.ServerLoadMonitor; //导入方法依赖的package包/类
/**
 * Kill all comet polls.
 * <p>Technically a servlet engine ought to call this only when all the
 * threads are already removed, however at least Tomcat doesn't do this
 * properly (it waits for a while and then calls destroy anyway).
 * <p>It would be good if we could get destroy() to call this
 * method however destroy() is only called once all threads are done so it's
 * too late.
 */
public void shutdown() {
    ServerLoadMonitor monitor = (ServerLoadMonitor) container.getBean(ServerLoadMonitor.class.getName());
    monitor.shutdown();
}
 
开发者ID:florinpatrascu,项目名称:jpublish,代码行数:14,代码来源:DWRProcessor.java


注:本文中的org.directwebremoting.extend.ServerLoadMonitor.shutdown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。