import org.opendaylight.controller.md.sal.binding.api.NotificationService;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration;
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev170930.ServicehandlerService;
import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubpce.rev170426.StubpceListener;
import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.StubrendererListener;
import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev161014.OrgOpenroadmServiceService;
private ListenerRegistration<StubpceListener> stubpcelistenerRegistration;
private ListenerRegistration<StubrendererListener> stubrendererlistenerRegistration;
private RpcRegistration<OrgOpenroadmServiceService> rpcRegistration;
+ private RpcRegistration<ServicehandlerService> rpcRegistrationServiceHandler;
public ServicehandlerProvider(final DataBroker dataBroker, RpcProviderRegistry rpcProviderRegistry,
stubpcelistenerRegistration = notificationService.registerNotificationListener(consumer);
stubrendererlistenerRegistration = notificationService.registerNotificationListener(consumer);
rpcRegistration = rpcRegistry.addRpcImplementation(OrgOpenroadmServiceService.class, consumer);
+ rpcRegistrationServiceHandler = rpcRegistry.addRpcImplementation(ServicehandlerService.class, consumer);
}
/**
stubpcelistenerRegistration.close();
stubrendererlistenerRegistration.close();
rpcRegistration.close();
+ rpcRegistrationServiceHandler.close();
}
}