public interface MpiStatistics
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
exportTasksToCsv(java.io.Writer writer)
Export tasks statistics to CSV.
|
void |
logCommonFileTransfer(java.lang.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,
java.lang.String commandId,
java.util.Map<java.lang.String,java.lang.String> tags)
Log a job start.
|
void |
logTaskEnd(int taskId,
long taskDuration,
java.util.List<java.lang.Long> commandsDuration,
long dataTransferDuration,
long outputMessageSize,
long workingDataSize,
int exitCode)
Log a task end.
|
void |
logTaskStart(int taskId,
int jobId,
int taskIndex,
org.joda.time.DateTime startTime,
int slaveRank,
int slaveThread,
long inputMessageSize)
Log a task start.
|
void logCommonFileTransfer(java.lang.String fileName, int chunk, long size, long duration)
fileName
- the file namechunk
- chunk numbersize
- file size in bytesduration
- duration of the transfer in msvoid logJobStart(int jobId, java.lang.String commandId, java.util.Map<java.lang.String,java.lang.String> tags)
jobId
- the job idcommandId
- the command idtags
- tags associated to the jobvoid logJobEnd(int jobId)
jobId
- the job idvoid logTaskStart(int taskId, int jobId, int taskIndex, org.joda.time.DateTime startTime, int slaveRank, int slaveThread, long inputMessageSize)
taskId
- the task idjobId
- the job idtaskIndex
- index of the task in the jobstartTime
- task start timeslaveRank
- slave rank that has managed the taskslaveThread
- slave thread that has managed the taskinputMessageSize
- input message size in bytesvoid logTaskEnd(int taskId, long taskDuration, java.util.List<java.lang.Long> commandsDuration, long dataTransferDuration, long outputMessageSize, long workingDataSize, int exitCode)
taskId
- the task idtaskDuration
- task duration in mscommandsDuration
- duration in ms of all commands of the taskdataTransferDuration
- part of the task duration corresponding to data transfer in msoutputMessageSize
- output message size in bytesworkingDataSize
- working data size in bytes on slave sideexitCode
- exit code of the commandvoid exportTasksToCsv(java.io.Writer writer)
writer
- void close()
close
in interface java.lang.AutoCloseable
Copyright © 2020. All rights reserved.