@Override
    public Long getValue() {
      String status = getOptimizingStatusDesc(optimizingStatus);
      if (targetStatus.equals(status)) {
        return statusDuration();
      }
      return 0L;
    }
Handle table self optimizing process completed event.

@param processType optimizing process type.
@param success is optimizing process success.
amoro-ams/src/main/java/org/apache/amoro/server/table/TableOptimizingMetrics.java