Class 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
    • Field Summary

      • Fields inherited from class org.opendaylight.controller.md.sal.common.util.jmx.AbstractMXBean

        BASE_JMX_PREFIX
    • 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.
      void clearToastsMade()
      JMX RPC call implemented from the ToasterProviderRuntimeMXBean interface.
      void close()
      Implemented from the AutoCloseable interface.
      Long getToastsMade()
      Accesssor method implemented from the ToasterProviderRuntimeMXBean interface.
      void init()  
      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.
      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.
      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.
      void setDataBroker​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)  
      void setNotificationProvider​(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
      • Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener

        onInitialData
    • 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:
        close in interface AutoCloseable
      • 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:
        onDataTreeChanged in interface org.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:
        cancelToast in interface org.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:
        makeToast in interface org.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:
        restockToaster in interface org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService