container/src/main/java/com/streamsets/datacollector/execution/runner/common/ThreadHealthReporter.java
public boolean reportHealth(String threadName, int scheduledDelay, long timestamp) {
    ThreadHealthReport threadHealthReport = new ThreadHealthReport(threadName, scheduledDelay, timestamp);
    if(threadToGaugeMap.containsKey(threadName)) {
      threadToGaugeMap.get(threadName).setThreadHealthReport(threadHealthReport);
      return true;
    }
    return false;
  }
public boolean reportHealth(String threadName, int scheduledDelay, long timestamp) {
    ThreadHealthReport threadHealthReport = new ThreadHealthReport(threadName, scheduledDelay, timestamp);
    if(threadToGaugeMap.containsKey(threadName)) {
      threadToGaugeMap.get(threadName).setThreadHealthReport(threadHealthReport);
      return true;
    }
    return false;
  }
public boolean reportHealth ( String threadName , int scheduledDelay , long timestamp ) { ThreadHealthReport threadHealthReport = new ThreadHealthReport ( threadName , scheduledDelay , timestamp ) ; if ( threadToGaugeMap . containsKey ( threadName ) ) { threadToGaugeMap . get ( threadName ) . setThreadHealthReport ( threadHealthReport ) ; return true ; } return false ; }
Updates gauge for the registered thread with the given details.
Note that the value of the threadName argument must match the one used to register.
@param threadName
@param scheduledDelay
@param timestamp
@return
Updates gauge for the registered thread with the given details . Note that the value of the threadName argument must match the one used to register .