private Long statusDuration() {
      return System.currentTimeMillis() - statusSetTimestamp;
    }
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