Merge "BUG 1082 Migrate sal-rest-connector to Async Data Broker API"
authorTony Tkacik <ttkacik@cisco.com>
Sun, 3 Aug 2014 18:10:03 +0000 (18:10 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Sun, 3 Aug 2014 18:10:03 +0000 (18:10 +0000)
1  2 
opendaylight/commons/opendaylight/pom.xml
opendaylight/distribution/opendaylight/pom.xml
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfProviderImpl.java
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/ControllerContext.java
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/streams/listeners/Notificator.java

@@@ -37,15 -36,15 +36,15 @@@ public class RestconfProviderImpl imple
  
      @Override
      public void onSessionInitiated(ProviderSession session) {
-         DataBrokerService dataService = session.getService(DataBrokerService.class);
+         final DOMDataBroker domDataBroker = session.getService(DOMDataBroker.class);
  
          BrokerFacade.getInstance().setContext(session);
-         BrokerFacade.getInstance().setDataService(dataService);
+         BrokerFacade.getInstance().setDomDataBroker( domDataBroker);
  
          SchemaService schemaService = session.getService(SchemaService.class);
 -        listenerRegistration = schemaService.registerSchemaServiceListener(ControllerContext.getInstance());
 +        listenerRegistration = schemaService.registerSchemaContextListener(ControllerContext.getInstance());
          ControllerContext.getInstance().setSchemas(schemaService.getGlobalContext());
-         ControllerContext.getInstance().setMountService(session.getService(MountService.class));
+         ControllerContext.getInstance().setMountService(session.getService(DOMMountPointService.class));
  
          webSocketServerThread = new Thread(WebSocketServer.createInstance(port.getValue().intValue()));
          webSocketServerThread.setName("Web socket server on port " + port);

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.