X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Ftoaster-consumer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fconfig%2Fkitchen_service%2Fimpl%2FKitchenServiceModule.java;h=75432769f22753445e7d16ccb59a11a0a87122c8;hp=a23def6262a0af8e6938f59c4f7a92e3c14b0eb7;hb=9e525899b4f66248ac4efac0a70cf0dc74305f95;hpb=b1ad47e987f7e73ebcd44f2076f57550715f75d6 diff --git a/opendaylight/md-sal/samples/toaster-consumer/src/main/java/org/opendaylight/controller/config/yang/config/kitchen_service/impl/KitchenServiceModule.java b/opendaylight/md-sal/samples/toaster-consumer/src/main/java/org/opendaylight/controller/config/yang/config/kitchen_service/impl/KitchenServiceModule.java index a23def6262..75432769f2 100644 --- a/opendaylight/md-sal/samples/toaster-consumer/src/main/java/org/opendaylight/controller/config/yang/config/kitchen_service/impl/KitchenServiceModule.java +++ b/opendaylight/md-sal/samples/toaster-consumer/src/main/java/org/opendaylight/controller/config/yang/config/kitchen_service/impl/KitchenServiceModule.java @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2014, 2015 Brocade Communications Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + /** * Generated file @@ -9,13 +17,16 @@ */ package org.opendaylight.controller.config.yang.config.kitchen_service.impl; +import java.util.concurrent.Future; + import org.opendaylight.controller.sample.kitchen.api.EggsType; import org.opendaylight.controller.sample.kitchen.api.KitchenService; import org.opendaylight.controller.sample.kitchen.impl.KitchenServiceImpl; import org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToastType; import org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService; -import org.opendaylight.yangtools.concepts.Registration; +import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.binding.NotificationListener; +import org.opendaylight.yangtools.yang.common.RpcResult; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -47,7 +58,7 @@ public final class KitchenServiceModule extends AbstractKitchenServiceModule { final KitchenServiceImpl kitchenService = new KitchenServiceImpl(toasterService); - final Registration toasterListenerReg = + final ListenerRegistration toasterListenerReg = getNotificationServiceDependency().registerNotificationListener( kitchenService ); final KitchenServiceRuntimeRegistration runtimeReg = @@ -63,7 +74,9 @@ public final class KitchenServiceModule extends AbstractKitchenServiceModule { } @Override - public boolean makeBreakfast( final EggsType eggs, final Class toast, final int toastDoneness ) { + public Future> makeBreakfast( final EggsType eggs, + final Class toast, + final int toastDoneness ) { return kitchenService.makeBreakfast( eggs, toast, toastDoneness ); } }