Class DeviceClockManager

  • All Implemented Interfaces:
    org.onosproject.net.device.DeviceClockService

    public class DeviceClockManager
    extends java.lang.Object
    implements org.onosproject.net.device.DeviceClockService
    Clock service to issue Timestamp based on Device Mastership.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onosproject.cluster.ClusterService clusterService  
      protected org.onosproject.cluster.NodeId localNodeId  
      protected org.onosproject.mastership.MastershipService mastershipService  
      protected org.onosproject.mastership.MastershipTermService mastershipTermService  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      void deactivate()  
      org.onosproject.store.Timestamp getTimestamp​(org.onosproject.net.DeviceId deviceId)  
      boolean isTimestampAvailable​(org.onosproject.net.DeviceId deviceId)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mastershipTermService

        protected org.onosproject.mastership.MastershipTermService mastershipTermService
      • mastershipService

        protected org.onosproject.mastership.MastershipService mastershipService
      • clusterService

        protected org.onosproject.cluster.ClusterService clusterService
      • localNodeId

        protected org.onosproject.cluster.NodeId localNodeId
    • Constructor Detail

      • DeviceClockManager

        public DeviceClockManager()
    • Method Detail

      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • getTimestamp

        public org.onosproject.store.Timestamp getTimestamp​(org.onosproject.net.DeviceId deviceId)
        Specified by:
        getTimestamp in interface org.onosproject.net.device.DeviceClockService
      • isTimestampAvailable

        public boolean isTimestampAvailable​(org.onosproject.net.DeviceId deviceId)
        Specified by:
        isTimestampAvailable in interface org.onosproject.net.device.DeviceClockService