Class OpendaylightToaster
- java.lang.Object
-
- org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean
-
- org.opendaylight.controller.sample.toaster.provider.OpendaylightToaster
-
- All Implemented Interfaces:
AutoCloseable,EventListener,ToasterProviderRuntimeMXBean,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.Toaster>,org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService,org.opendaylight.yangtools.yang.binding.RpcService
public class OpendaylightToaster extends org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean implements org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService, ToasterProviderRuntimeMXBean, org.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.Toaster>, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description OpendaylightToaster()OpendaylightToaster(ToasterAppConfig toasterAppConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.CancelToastOutput>>cancelToast(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.CancelToastInput input)RPC call implemented from the ToasterService interface that cancels the current toast, if any.voidclearToastsMade()JMX RPC call implemented from the ToasterProviderRuntimeMXBean interface.voidclose()Implemented from the AutoCloseable interface.LonggetToastsMade()Accesssor method implemented from the ToasterProviderRuntimeMXBean interface.voidinit()com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastOutput>>makeToast(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastInput input)RPC call implemented from the ToasterService interface that attempts to make toast.voidonDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.Toaster>> changes)Implemented from the DataTreeChangeListener interface.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.RestockToasterOutput>>restockToaster(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.RestockToasterInput input)RestConf RPC call implemented from the ToasterService interface.voidsetDataBroker(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)voidsetNotificationProvider(org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService)-
Methods inherited from class org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean
getMBeanCategory, getMBeanName, getMBeanType, register, registerMBean, unregister, unregisterMBean
-
-
-
-
Constructor Detail
-
OpendaylightToaster
public OpendaylightToaster()
-
OpendaylightToaster
public OpendaylightToaster(ToasterAppConfig toasterAppConfig)
-
-
Method Detail
-
setNotificationProvider
public void setNotificationProvider(org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService)
-
setDataBroker
public void setDataBroker(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
init
public void init()
-
close
public void close()
Implemented from the AutoCloseable interface.- Specified by:
closein interfaceAutoCloseable
-
onDataTreeChanged
public void onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.Toaster>> changes)
Implemented from the DataTreeChangeListener interface.- Specified by:
onDataTreeChangedin interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.Toaster>
-
cancelToast
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.CancelToastOutput>> cancelToast(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.CancelToastInput input)
RPC call implemented from the ToasterService interface that cancels the current toast, if any.- Specified by:
cancelToastin interfaceorg.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService
-
makeToast
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastOutput>> makeToast(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.MakeToastInput input)
RPC call implemented from the ToasterService interface that attempts to make toast.- Specified by:
makeToastin interfaceorg.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService
-
restockToaster
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.RestockToasterOutput>> restockToaster(org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.RestockToasterInput input)
RestConf RPC call implemented from the ToasterService interface. Restocks the bread for the toaster, resets the toastsMade counter to 0, and sends a ToasterRestocked notification.- Specified by:
restockToasterin interfaceorg.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService
-
clearToastsMade
public void clearToastsMade()
JMX RPC call implemented from the ToasterProviderRuntimeMXBean interface.- Specified by:
clearToastsMadein interfaceToasterProviderRuntimeMXBean
-
getToastsMade
public Long getToastsMade()
Accesssor method implemented from the ToasterProviderRuntimeMXBean interface.- Specified by:
getToastsMadein interfaceToasterProviderRuntimeMXBean
-
-