@Test public void testOnSessionInitiated() { NcmountProvider provider = new NcmountProvider(); provider.onSessionInitiated(mock(BindingAwareBroker.ProviderContext.class)); }
@Override public void onSessionInitiated(ProviderContext session) { LOG.info("NcmountProvider Session Initiated"); this.mountService = session.getSALService(MountPointService.class); this.dataBroker = session.getSALService(DataBroker.class); this.rpcReg = session.addRpcImplementation(NcmountService.class, this); if (dataBroker != null) { this.dclReg = dataBroker.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.OPERATIONAL, NETCONF_TOPO_IID.child(Node.class)), this); } }
NcmountProvider implements DataTreeChangeListener<Node>, NcmountService,
        BindingAwareProvider, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("NcmountProvider Session Initiated"); this.mountService = session.getSALService(MountPointService.class); this.dataBroker = session.getSALService(DataBroker.class); this.rpcReg = session.addRpcImplementation(NcmountService.class, this); if (dataBroker != null) { this.dclReg = dataBroker.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.OPERATIONAL, NETCONF_TOPO_IID.child(Node.class)), this); } } }
NcmountProvider implements DataTreeChangeListener<Node>, NcmountService,
        BindingAwareProvider, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("NcmountProvider Session Initiated"); this.mountService = session.getSALService(MountPointService.class); this.dataBroker = session.getSALService(DataBroker.class); this.rpcReg = session.addRpcImplementation(NcmountService.class, this); if (dataBroker != null) { this.dclReg = dataBroker.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.OPERATIONAL, NETCONF_TOPO_IID.child(Node.class)), this); } }  }
NcmountProvider implements DataTreeChangeListener<Node>, NcmountService,
        BindingAwareProvider, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("NcmountProvider Session Initiated"); this.mountService = session.getSALService(MountPointService.class); this.dataBroker = session.getSALService(DataBroker.class); this.rpcReg = session.addRpcImplementation(NcmountService.class, this); if (dataBroker != null) { this.dclReg = dataBroker.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.OPERATIONAL, NETCONF_TOPO_IID.child(Node.class)), this); } }  @Override void onSessionInitiated(ProviderContext session); @Override void close(); @Override ListenableFuture<RpcResult<ShowNodeOutput>> showNode(ShowNodeInput input); @Override ListenableFuture<RpcResult<WriteRoutesOutput>> writeRoutes(final WriteRoutesInput input); @Override ListenableFuture<RpcResult<ListNodesOutput>> listNodes(ListNodesInput input); @Override void onDataTreeChanged(Collection<DataTreeModification<Node>> changes); }
NcmountProvider implements DataTreeChangeListener<Node>, NcmountService,
        BindingAwareProvider, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("NcmountProvider Session Initiated"); this.mountService = session.getSALService(MountPointService.class); this.dataBroker = session.getSALService(DataBroker.class); this.rpcReg = session.addRpcImplementation(NcmountService.class, this); if (dataBroker != null) { this.dclReg = dataBroker.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.OPERATIONAL, NETCONF_TOPO_IID.child(Node.class)), this); } }  @Override void onSessionInitiated(ProviderContext session); @Override void close(); @Override ListenableFuture<RpcResult<ShowNodeOutput>> showNode(ShowNodeInput input); @Override ListenableFuture<RpcResult<WriteRoutesOutput>> writeRoutes(final WriteRoutesInput input); @Override ListenableFuture<RpcResult<ListNodesOutput>> listNodes(ListNodesInput input); @Override void onDataTreeChanged(Collection<DataTreeModification<Node>> changes); static final InstanceIdentifier<Topology> NETCONF_TOPO_IID; }