Class MasterTime

  • All Implemented Interfaces:
    Runnable

    public class MasterTime
    extends TimerTask
    Keep a persistent roughly monotone view of how long a master has been overseeing this cluster.
    • Method Detail

      • getTime

        public long getTime()
        How long has this cluster had a Master?
        Returns:
        Approximate total duration this cluster has had a Master, in milliseconds.
      • shutdown

        public void shutdown()
        Shut down the time keeping.