Interface MpiStatistics

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
CsvMpiStatistics, NoMpiStatistics

public interface MpiStatistics extends AutoCloseable
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Export tasks statistics to CSV.
    void
    logCommonFileTransfer(String fileName, int chunk, long size, long duration)
    Log a common file transfer.
    void
    logJobEnd(int jobId)
    Log a job end.
    void
    logJobStart(int jobId, String commandId, Map<String,String> tags)
    Log a job start.
    void
    logTaskEnd(int taskId, long taskDuration, List<Long> commandsDuration, long dataTransferDuration, long outputMessageSize, long workingDataSize, int exitCode)
    Log a task end.
    void
    logTaskStart(int taskId, int jobId, int taskIndex, ZonedDateTime startTime, int slaveRank, int slaveThread, long inputMessageSize)
    Log a task start.
  • Method Details

    • logCommonFileTransfer

      void logCommonFileTransfer(String fileName, int chunk, long size, long duration)
      Log a common file transfer.
      Parameters:
      fileName - the file name
      chunk - chunk number
      size - file size in bytes
      duration - duration of the transfer in ms
    • logJobStart

      void logJobStart(int jobId, String commandId, Map<String,String> tags)
      Log a job start.
      Parameters:
      jobId - the job id
      commandId - the command id
      tags - tags associated to the job
    • logJobEnd

      void logJobEnd(int jobId)
      Log a job end.
      Parameters:
      jobId - the job id
    • logTaskStart

      void logTaskStart(int taskId, int jobId, int taskIndex, ZonedDateTime startTime, int slaveRank, int slaveThread, long inputMessageSize)
      Log a task start.
      Parameters:
      taskId - the task id
      jobId - the job id
      taskIndex - index of the task in the job
      startTime - task start time
      slaveRank - slave rank that has managed the task
      slaveThread - slave thread that has managed the task
      inputMessageSize - input message size in bytes
    • logTaskEnd

      void logTaskEnd(int taskId, long taskDuration, List<Long> commandsDuration, long dataTransferDuration, long outputMessageSize, long workingDataSize, int exitCode)
      Log a task end.
      Parameters:
      taskId - the task id
      taskDuration - task duration in ms
      commandsDuration - duration in ms of all commands of the task
      dataTransferDuration - part of the task duration corresponding to data transfer in ms
      outputMessageSize - output message size in bytes
      workingDataSize - working data size in bytes on slave side
      exitCode - exit code of the command
    • exportTasksToCsv

      void exportTasksToCsv(Writer writer)
      Export tasks statistics to CSV.
      Parameters:
      writer -
    • close

      void close()
      Specified by:
      close in interface AutoCloseable