*/
package org.opendaylight.controller.config.yang.netconf.mdsal.monitoring;
-import org.opendaylight.controller.config.util.capability.Capability;
+import java.util.Collections;
+import java.util.Set;
import org.opendaylight.controller.sal.common.util.NoopAutoCloseable;
+import org.opendaylight.netconf.api.capability.Capability;
import org.opendaylight.netconf.api.monitoring.CapabilityListener;
import org.opendaylight.netconf.api.monitoring.NetconfMonitoringService;
import org.opendaylight.netconf.mapping.api.NetconfOperation;
import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactoryListener;
import org.opendaylight.netconf.monitoring.GetSchema;
-import java.util.Collections;
-import java.util.Set;
-
public class MdsalMonitoringMapperFactory implements NetconfOperationServiceFactory, AutoCloseable {
private final NetconfOperationService operationService;
private static final Set<Capability> CAPABILITIES = Collections.emptySet();
- public MdsalMonitoringMapperFactory(final NetconfOperationServiceFactoryListener netconfOperationServiceFactoryListener,
- final NetconfMonitoringService netconfMonitoringService,
- final MonitoringToMdsalWriter monitoringToMdsalWriter) {
+ public MdsalMonitoringMapperFactory(
+ final NetconfOperationServiceFactoryListener netconfOperationServiceFactoryListener,
+ final NetconfMonitoringService netconfMonitoringService,
+ final MonitoringToMdsalWriter monitoringToMdsalWriter) {
this.netconfOperationServiceFactoryListener = netconfOperationServiceFactoryListener;
this.monitoringToMdsalWriter = monitoringToMdsalWriter;
@Override
public Set<Capability> getCapabilities() {
- // TODO
- // No capabilities exposed to prevent clashes with schemas from mdsal-netconf-connector (it exposes all the schemas)
- // If the schemas exposed by mdsal-netconf-connector are filtered, this class would expose monitoring related models
+ // TODO No capabilities exposed to prevent clashes with schemas from mdsal-netconf-connector (it exposes
+ // all the schemas). If the schemas exposed by mdsal-netconf-connector are filtered, this class would expose
+ // monitoring related models.
return CAPABILITIES;
}
}
/**
- * Invoke using blueprint
+ * Invoked using blueprint.
*/
@Override
public void close() {
netconfOperationServiceFactoryListener.onRemoveNetconfOperationServiceFactory(this);
}
-}
\ No newline at end of file
+}