本文整理汇总了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);
}
}
示例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();
}
示例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);
}
}
示例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;
}
示例5: stop
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; //导入方法依赖的package包/类
public void stop(BundleContext ctx) {
MultiThreadedHttpConnectionManager.shutdownAll();
}