當前位置: 首頁>>代碼示例>>Java>>正文


Java Deactivate類代碼示例

本文整理匯總了Java中org.apache.felix.scr.annotations.Deactivate的典型用法代碼示例。如果您正苦於以下問題:Java Deactivate類的具體用法?Java Deactivate怎麽用?Java Deactivate使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Deactivate類屬於org.apache.felix.scr.annotations包,在下文中一共展示了Deactivate類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate(ComponentContext context) {
    cfgService.unregisterProperties(getClass(), false);
    listener.disable();
    controller.removeListener(listener);
    providerRegistry.unregister(this);

    /**
     * Stop additional statistic requesters.
     * - Seunghyeon
     */
    portCollectors.values().forEach(PortStatsCollector::stop);
    tableCollectors.values().forEach(TableStatsCollector::stop);
    queueCollectors.values().forEach(QueueStatsCollector::stop);
    flowCollectors.values().forEach(FlowStatsCollector::stop);
    aggregateCollectors.values().forEach(AggregateStatsCollector::stop);

    portCollectors.clear();
    tableCollectors.clear();
    queueCollectors.clear();
    flowCollectors.clear();
    aggregateCollectors.clear();

    providerService = null;
    LOG.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:27,代碼來源:OpenFlowDeviceProvider.java

示例2: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    cfgService.unregisterProperties(getClass(), false);
    tearDown();

    deviceProviderRegistry.unregister(deviceProvider);
    hostProviderRegistry.unregister(hostProvider);
    linkProviderRegistry.unregister(linkProvider);
    flowRuleProviderRegistry.unregister(flowRuleProvider);
    packetProviderRegistry.unregister(packetProvider);

    deviceProviderService = null;
    hostProviderService = null;
    linkProviderService = null;
    flowRuleProviderService = null;
    packetProviderService = null;

    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:20,代碼來源:NullProviders.java

示例3: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    log.info("Stopping...");
    try {
        executorService.shutdown();
        executorService.awaitTermination(5, TimeUnit.SECONDS);
    } catch (InterruptedException e) {
        List<Runnable> runningTasks = executorService.shutdownNow();
        log.warn("Unable to stop the following tasks: {}", runningTasks);
    }
    deviceService.removeListener(deviceListener);
    topologyService.removeListener(topologyListener);
    hostService.removeListener(hostListener);
    flowRuleService.removeFlowRulesById(appId);

    appActive = false;
    APP_HANDLES.remove(appName);

    log.info("STOPPED");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:21,代碼來源:AbstractUpgradableFabricApp.java

示例4: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    eventDispatcher.removeSink(VtnRscEvent.class);
    floatingIpService.removeListener(floatingIpListener);
    routerService.removeListener(routerListener);
    routerInterfaceService.removeListener(routerInterfaceListener);
    portPairService.removeListener(portPairListener);
    portPairGroupService.removeListener(portPairGroupListener);
    flowClassifierService.removeListener(flowClassifierListener);
    portChainService.removeListener(portChainListener);
    virtualPortService.removeListener(virtualPortListener);

    l3vniTenantMap.destroy();
    l3vniTenantRouterMap.destroy();
    classifierOvsMap.destroy();
    sffOvsMap.destroy();
    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:19,代碼來源:VtnRscManager.java

示例5: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate(ComponentContext context) {
    if (backupEnabled) {
        replicaInfoManager.removeListener(flowTable);
        backupTask.cancel(true);
    }
    configService.unregisterProperties(getClass(), false);
    unregisterMessageHandlers();
    deviceTableStats.removeListener(tableStatsListener);
    deviceTableStats.destroy();
    eventHandler.shutdownNow();
    messageHandlingExecutor.shutdownNow();
    backupSenderExecutor.shutdownNow();
    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:16,代碼來源:DistributedFlowRuleStore.java

示例6: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate(ComponentContext context) {
  if (this.restClient != null) {
    try {
      this.restClient.close();
    }
    catch (IOException ioe) {
      LOG.warn("Could not close ElasticSearch RestClient", ioe);
    }
  }
}
 
開發者ID:deveth0,項目名稱:elasticsearch-aem,代碼行數:12,代碼來源:ElasticSearchService.java

示例7: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
protected void deactivate() {
    deviceService.removeListener(deviceListener);
    linkService.removeListener(linkListener);
    registry.unregister(this);
    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:8,代碼來源:OpticalLinkProvider.java

示例8: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    hostsConsistentMap.removeListener(hostLocationTracker);
    prevHosts.clear();

    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:8,代碼來源:DistributedHostStore.java

示例9: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    cfgService.unregisterProperties(getClass(), false);
    withdrawIntercepts();
    packetService.removeProcessor(processor);
    processor = null;
    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:9,代碼來源:ProxyArp.java

示例10: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    deviceService.removeListener(deviceListener);
    networkConfigService.removeListener(networkConfigListener);
    hostService.removeListener(hostListener);
    interfaceService.removeListener(interfaceListener);
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:8,代碼來源:ControlPlaneRedirectManager.java

示例11: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    if (!connectedSwitches.isEmpty()) {
        cleanup();
    }
    cfgService.unregisterProperties(getClass(), false);
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:8,代碼來源:OpenFlowControllerImpl.java

示例12: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
protected void deactivate() {
    cfgService.removeListener(cfgListener);
    cfgService.unregisterConfigFactory(deviceConfigFactory);
    cfgService.unregisterConfigFactory(appConfigFactory);
    cfgService.unregisterConfigFactory(mcastConfigFactory);

    // Withdraw ARP packet-in
    TrafficSelector.Builder selector = DefaultTrafficSelector.builder();
    selector.matchEthType(Ethernet.TYPE_ARP);
    packetService.cancelPackets(selector.build(), PacketPriority.CONTROL, appId, Optional.empty());

    packetService.removeProcessor(processor);
    linkService.removeListener(linkListener);
    deviceService.removeListener(deviceListener);
    multicastRouteService.removeListener(mcastListener);
    cordConfigService.removeListener(cordConfigListener);

    processor = null;
    linkListener = null;
    deviceListener = null;
    groupHandlerMap.clear();

    nsNextObjStore.destroy();
    subnetNextObjStore.destroy();
    portNextObjStore.destroy();
    tunnelStore.destroy();
    policyStore.destroy();
    subnetVidStore.destroy();
    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:32,代碼來源:SegmentRoutingManager.java

示例13: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate(ComponentContext context) {
    installer.shutdown();
    testRunner.shutdown();
    configService.unregisterProperties(getClass(), false);
    log.info("Stopped.");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:8,代碼來源:FlowPerfApp.java

示例14: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    interfaceService.removeListener(interfaceListener);
    networkConfig.removeListener(configListener);
    multicastRouteService.removeListener(multicastListener);
    networkConfig.unregisterConfigFactory(pimConfigFactory);

    // Shutdown the periodic hello task.
    scheduledExecutorService.shutdown();

    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:13,代碼來源:PimInterfaceManager.java

示例15: deactivate

import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
    cfgService.unregisterProperties(getClass(), false);

    stopReport();
    metricsService.unregisterReporter(this);

    log.info("Stopped");
}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:10,代碼來源:DefaultGangliaMetricsReporter.java


注:本文中的org.apache.felix.scr.annotations.Deactivate類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。