@Test public void testOnSessionInitiated() { IetfsyslogProvider provider = new IetfsyslogProvider(); provider.onSessionInitiated(mock(BindingAwareBroker.ProviderContext.class)); }
@Override public void onSessionInitiated(ProviderContext session) { LOG.info("IetfsyslogProvider Session Initiated"); this.providerContext = session; this.dataService = session.getSALService(DataBroker.class); if (dataService != null) { dcReg = dataService.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.CONFIGURATION, SYSLOG_IID), this); } LOG.info("onSessionInitiated: initialization done"); }
IetfsyslogProvider implements BindingAwareProvider, DataTreeChangeListener<Syslog>, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("IetfsyslogProvider Session Initiated"); this.providerContext = session; this.dataService = session.getSALService(DataBroker.class); if (dataService != null) { dcReg = dataService.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.CONFIGURATION, SYSLOG_IID), this); } LOG.info("onSessionInitiated: initialization done"); } }
IetfsyslogProvider implements BindingAwareProvider, DataTreeChangeListener<Syslog>, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("IetfsyslogProvider Session Initiated"); this.providerContext = session; this.dataService = session.getSALService(DataBroker.class); if (dataService != null) { dcReg = dataService.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.CONFIGURATION, SYSLOG_IID), this); } LOG.info("onSessionInitiated: initialization done"); }  }
IetfsyslogProvider implements BindingAwareProvider, DataTreeChangeListener<Syslog>, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("IetfsyslogProvider Session Initiated"); this.providerContext = session; this.dataService = session.getSALService(DataBroker.class); if (dataService != null) { dcReg = dataService.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.CONFIGURATION, SYSLOG_IID), this); } LOG.info("onSessionInitiated: initialization done"); }  @Override void onSessionInitiated(ProviderContext session); @Override void close(); @Override void onDataTreeChanged(Collection<DataTreeModification<Syslog>> changes); void onDataChanged(DataTreeModification<Syslog> change); }
IetfsyslogProvider implements BindingAwareProvider, DataTreeChangeListener<Syslog>, AutoCloseable { @Override public void onSessionInitiated(ProviderContext session) { LOG.info("IetfsyslogProvider Session Initiated"); this.providerContext = session; this.dataService = session.getSALService(DataBroker.class); if (dataService != null) { dcReg = dataService.registerDataTreeChangeListener( new DataTreeIdentifier<>(LogicalDatastoreType.CONFIGURATION, SYSLOG_IID), this); } LOG.info("onSessionInitiated: initialization done"); }  @Override void onSessionInitiated(ProviderContext session); @Override void close(); @Override void onDataTreeChanged(Collection<DataTreeModification<Syslog>> changes); void onDataChanged(DataTreeModification<Syslog> change); static final InstanceIdentifier<Syslog> SYSLOG_IID; }