本文整理匯總了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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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);
}
}
}
示例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");
}
示例8: deactivate
import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
hostsConsistentMap.removeListener(hostLocationTracker);
prevHosts.clear();
log.info("Stopped");
}
示例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");
}
示例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);
}
示例11: deactivate
import org.apache.felix.scr.annotations.Deactivate; //導入依賴的package包/類
@Deactivate
public void deactivate() {
if (!connectedSwitches.isEmpty()) {
cleanup();
}
cfgService.unregisterProperties(getClass(), false);
}
示例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");
}
示例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.");
}
示例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");
}
示例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");
}