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


Java MultiThreadedHttpConnectionManager.shutdownAll方法代码示例

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


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

示例1: shutdown

import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; //导入方法依赖的package包/类
public void shutdown() {
    super.shutdown();
    try {
        AlfrescoSolrDataModel.getInstance().close();
        SOLRAPIClientFactory.close();
        MultiThreadedHttpConnectionManager.shutdownAll();
        boolean testcase = Boolean.parseBoolean(System.getProperty("alfresco.test", "false"));
        if(testcase) {
        if (!scheduler.isShutdown()) {
            scheduler.pauseAll();
            scheduler.shutdown();
        }
        }
    } catch(Exception e) {
        log.info("", e);
    }
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:18,代码来源:AlfrescoCoreAdminHandler.java

示例2: destroy

import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; //导入方法依赖的package包/类
/**
 * distroy the ConfigurationContext
 */
@Override
public void destroy() {
    //stoping listner manager
    try {
        if (configContext != null) {
            configContext.terminate();
        }
    } catch (AxisFault axisFault) {
        log.info(axisFault.getMessage());
    }
    try {
        super.destroy();
    } catch (Exception e) {
        log.info(e.getMessage());
    }
    // AXIS2-4898: MultiThreadedHttpConnectionManager starts a thread that is not stopped by the
    // shutdown of the connection manager. If we want to avoid a resource leak, we need to call
    // shutdownAll here.
    MultiThreadedHttpConnectionManager.shutdownAll();
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:24,代码来源:AxisServlet.java

示例3: ___internalStop

import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; //导入方法依赖的package包/类
/**
 * Internal: Stop services
 */
private static void ___internalStop() {
    _jmmcLogger.info("Stopping internal services ...");
    try {
        // Save common settings if needed:
        CommonPreferences.saveToFileIfNeeded();

        // Save session settings if needed:
        SessionSettingsPreferences.saveToFileIfNeeded();

        // Stop the job runner (if any)
        LocalLauncher.shutdown();

        // Stop the task executor (if any)
        TaskSwingWorkerExecutor.shutdown();

        // Stop the parallel job executor (if any)
        ParallelJobExecutor.shutdown();

        // Disconnect from SAMP Hub (if any)
        SampManager.shutdown();

        // Close all HTTP connections (http client) (if any)
        MultiThreadedHttpConnectionManager.shutdownAll();

        // Switch to logging exception handler:
        MCSExceptionHandler.installLoggingHandler();

    } catch (RuntimeException re) {
        // should not happen but anyway log any potential exception:
        _jmmcLogger.warn("A runtime exception occured while stopping services: ", re);
    }
}
 
开发者ID:JMMC-OpenDev,项目名称:jMCS,代码行数:36,代码来源:Bootstrapper.java

示例4: destroy

import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; //导入方法依赖的package包/类
/**
 * Method which is called when the Context is destroyed.
 */
@PreDestroy
public void destroy() {
	MultiThreadedHttpConnectionManager.shutdownAll();
	connmanager = null;
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:9,代码来源:AppointmentManager.java

示例5: stop

import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; //导入方法依赖的package包/类
public void stop(BundleContext ctx) {
  MultiThreadedHttpConnectionManager.shutdownAll();
}
 
开发者ID:mcculls,项目名称:osgi-in-action,代码行数:4,代码来源:Activator.java


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