Class TestZKLeaderManager.MockLeader

java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.zookeeper.TestZKLeaderManager.MockLeader
All Implemented Interfaces:
Runnable, org.apache.hadoop.hbase.Stoppable
Enclosing class:
TestZKLeaderManager

private static class TestZKLeaderManager.MockLeader extends Thread implements org.apache.hadoop.hbase.Stoppable
  • Field Details

    • stopped

      private volatile boolean stopped
    • watcher

      private org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher
    • zkLeader

      private org.apache.hadoop.hbase.zookeeper.ZKLeaderManager zkLeader
    • master

    • index

      private int index
  • Constructor Details

    • MockLeader

      MockLeader(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, int index)
  • Method Details

    • isMaster

      public boolean isMaster()
    • getIndex

      public int getIndex()
    • getWatcher

      public org.apache.hadoop.hbase.zookeeper.ZKWatcher getWatcher()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • abdicate

      void abdicate()
    • stop

      public void stop(String why)
      Specified by:
      stop in interface org.apache.hadoop.hbase.Stoppable
    • isStopped

      public boolean isStopped()
      Specified by:
      isStopped in interface org.apache.hadoop.hbase.Stoppable