@VisibleForTesting
  boolean isRunning() {
    return state == State.RUNNING;
  }
Stops the monitor. Once it stops, it cannot be restarted.
samza-core/src/main/java/org/apache/samza/coordinator/StreamRegexMonitor.java