private synchronized void setState(State newState) {
    state = newState;
    this.notifyAll();
  }
Sets the state to <code>newState</code>.
@param newState the new state.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/FileChangeWatcher.java