@Test @Ignore public void testSomething() throws Exception { MakeToastInput toastInput = new MakeToastInputBuilder().setToasterDoneness(Uint32.valueOf(1)) .setToasterToastType(WheatBread.class).build(); Future<RpcResult<MakeToastOutput>> makeToast = toaster.makeToast(toastInput); RpcResult<MakeToastOutput> rpcResult = makeToast.get(); assertNotNull(rpcResult); assertTrue(rpcResult.isSuccessful()); }
@Override public ListenableFuture<RpcResult<MakeToastOutput>> makeToast(final MakeToastInput input) { LOG.info("makeToast: {}", input); final SettableFuture<RpcResult<MakeToastOutput>> futureResult = SettableFuture.create(); checkStatusAndMakeToast(input, futureResult, toasterAppConfig.getMaxMakeToastTries().toJava()); return futureResult; }
OpendaylightToaster extends AbstractMXBean implements ToasterService, ToasterProviderRuntimeMXBean, DataTreeChangeListener<Toaster>, AutoCloseable { @Override public ListenableFuture<RpcResult<MakeToastOutput>> makeToast(final MakeToastInput input) { LOG.info("makeToast: {}", input); final SettableFuture<RpcResult<MakeToastOutput>> futureResult = SettableFuture.create(); checkStatusAndMakeToast(input, futureResult, toasterAppConfig.getMaxMakeToastTries().toJava()); return futureResult; } }
OpendaylightToaster extends AbstractMXBean implements ToasterService, ToasterProviderRuntimeMXBean, DataTreeChangeListener<Toaster>, AutoCloseable { @Override public ListenableFuture<RpcResult<MakeToastOutput>> makeToast(final MakeToastInput input) { LOG.info("makeToast: {}", input); final SettableFuture<RpcResult<MakeToastOutput>> futureResult = SettableFuture.create(); checkStatusAndMakeToast(input, futureResult, toasterAppConfig.getMaxMakeToastTries().toJava()); return futureResult; } OpendaylightToaster();  OpendaylightToaster(final ToasterAppConfig toasterAppConfig); }
OpendaylightToaster extends AbstractMXBean implements ToasterService, ToasterProviderRuntimeMXBean, DataTreeChangeListener<Toaster>, AutoCloseable { @Override public ListenableFuture<RpcResult<MakeToastOutput>> makeToast(final MakeToastInput input) { LOG.info("makeToast: {}", input); final SettableFuture<RpcResult<MakeToastOutput>> futureResult = SettableFuture.create(); checkStatusAndMakeToast(input, futureResult, toasterAppConfig.getMaxMakeToastTries().toJava()); return futureResult; } OpendaylightToaster();  OpendaylightToaster(final ToasterAppConfig toasterAppConfig); void setNotificationProvider(final NotificationPublishService notificationPublishService); void setDataBroker(final DataBroker dataBroker); void init(); @Override void close(); @Override void onDataTreeChanged(final Collection<DataTreeModification<Toaster>> changes); @Override ListenableFuture<RpcResult<CancelToastOutput>> cancelToast(final CancelToastInput input); @Override ListenableFuture<RpcResult<MakeToastOutput>> makeToast(final MakeToastInput input); @Override ListenableFuture<RpcResult<RestockToasterOutput>> restockToaster(final RestockToasterInput input); @Override void clearToastsMade(); @Override Long getToastsMade(); }
OpendaylightToaster extends AbstractMXBean implements ToasterService, ToasterProviderRuntimeMXBean, DataTreeChangeListener<Toaster>, AutoCloseable { @Override public ListenableFuture<RpcResult<MakeToastOutput>> makeToast(final MakeToastInput input) { LOG.info("makeToast: {}", input); final SettableFuture<RpcResult<MakeToastOutput>> futureResult = SettableFuture.create(); checkStatusAndMakeToast(input, futureResult, toasterAppConfig.getMaxMakeToastTries().toJava()); return futureResult; } OpendaylightToaster();  OpendaylightToaster(final ToasterAppConfig toasterAppConfig); void setNotificationProvider(final NotificationPublishService notificationPublishService); void setDataBroker(final DataBroker dataBroker); void init(); @Override void close(); @Override void onDataTreeChanged(final Collection<DataTreeModification<Toaster>> changes); @Override ListenableFuture<RpcResult<CancelToastOutput>> cancelToast(final CancelToastInput input); @Override ListenableFuture<RpcResult<MakeToastOutput>> makeToast(final MakeToastInput input); @Override ListenableFuture<RpcResult<RestockToasterOutput>> restockToaster(final RestockToasterInput input); @Override void clearToastsMade(); @Override Long getToastsMade();  }