private final long globalNotificationQuota;
private final boolean switchFeaturesMandatory;
private boolean isNotificationFlowRemovedOff;
-
+ private boolean skipTableFeatures;
private static final int SPY_RATE = 10;
private final DataBroker dataBroker;
private final long barrierIntervalNanos;
private final int barrierCountLimit;
+
private ExtensionConverterProvider extensionConverterProvider;
private ScheduledThreadPoolExecutor spyPool;
private final ClusterSingletonServiceProvider singletonServiceProvider;
final boolean switchFeaturesMandatory,
final long barrierInterval,
final int barrierCountLimit,
-
final MessageSpy messageSpy,
final boolean isNotificationFlowRemovedOff,
final ClusterSingletonServiceProvider singletonServiceProvider,
final NotificationPublishService notificationPublishService,
final HashedWheelTimer hashedWheelTimer,
- final ConvertorExecutor convertorExecutor) {
+ final ConvertorExecutor convertorExecutor,
+ final boolean skipTableFeatures) {
+
this.switchFeaturesMandatory = switchFeaturesMandatory;
this.globalNotificationQuota = globalNotificationQuota;
this.isNotificationFlowRemovedOff = isNotificationFlowRemovedOff;
+ this.skipTableFeatures = skipTableFeatures;
this.dataBroker = Preconditions.checkNotNull(dataBroker);
this.convertorExecutor = convertorExecutor;
this.hashedWheelTimer = hashedWheelTimer;
messageSpy,
translatorLibrary,
this,
- convertorExecutor);
+ convertorExecutor,
+ skipTableFeatures);
deviceContexts.putIfAbsent(deviceInfo, deviceContext);
@Override
public void onDeviceContextLevelDown(final DeviceInfo deviceInfo) {
- deviceContexts.remove(deviceInfo);
- if (LOG.isDebugEnabled()) {
- LOG.debug("Device context removed for node {}", deviceInfo.getLOGValue());
- }
-
LifecycleService lifecycleService = lifecycleServices.remove(deviceInfo);
if (LOG.isDebugEnabled()) {
LOG.debug("Lifecycle service removed for node {}", deviceInfo.getLOGValue());
LOG.warn("Closing lifecycle service for node {} was unsuccessful ", deviceInfo.getLOGValue(), e);
}
}
+
+ deviceContexts.remove(deviceInfo);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Device context removed for node {}", deviceInfo.getLOGValue());
+ }
+
}
@Override
return this.isNotificationFlowRemovedOff;
}
+
+ @Override
+ public void setSkipTableFeatures(boolean skipTableFeaturesValue) {
+ skipTableFeatures = skipTableFeaturesValue;
+ }
+
}