Class TaskLogging
java.lang.Object
org.tasktide.core.model.task.TaskLogging
Model class to hold the data from task processing
-
Constructor Summary
ConstructorsConstructorDescriptionNull constructorTaskLogging(long procId, ProcessLog procLog, long startTime, long endTime, String threadName, long cpuDuration, int exitCode) Construct with all data for builderTaskLogging(String taskLogId, long procId, ProcessLog procLog, long startTime, long endTime, String threadName, long cpuDuration, int exitCode) Constructor for JSON Deserialization -
Method Summary
Modifier and TypeMethodDescriptionlongGet CPU durationlongGet end timeintGet exit codegetId()Get IdlongGet process IdGet process loglongGet start timeGet thread namevoidprocId(long procId) Set process IdvoidsetCpuDuration(long cpuDuration) Set CPU durationvoidsetCpuDuration(Optional<Duration> cpuDuration) Set CPU durationvoidsetEndTime(long endTime) Set end timevoidsetExitCode(int exitCode) Set exit codevoidSet IdvoidsetProcLog(ProcessLog procLog) Set process logvoidsetStartTime(long startTime) Set start timevoidsetThreadName(String threadName) Set thread nameSerialize to a human readable formatted JSON stringSerialize to JSON stringtoString()Represent as string
-
Constructor Details
-
TaskLogging
public TaskLogging()Null constructor -
TaskLogging
public TaskLogging(long procId, ProcessLog procLog, long startTime, long endTime, String threadName, long cpuDuration, int exitCode) Construct with all data for builder- Parameters:
procId-procLog-startTime-endTime-threadName-cpuDuration-exitCode-
-
TaskLogging
public TaskLogging(String taskLogId, long procId, ProcessLog procLog, long startTime, long endTime, String threadName, long cpuDuration, int exitCode) Constructor for JSON Deserialization- Parameters:
taskLogId-procId-procLog-startTime-endTime-threadName-cpuDuration-exitCode-
-
-
Method Details
-
getId
-
setId
-
getProcId
public long getProcId()Get process Id- Returns:
- long
-
procId
public void procId(long procId) Set process Id- Parameters:
procId-
-
getExitCode
public int getExitCode()Get exit code- Returns:
- int
-
setExitCode
public void setExitCode(int exitCode) Set exit code- Parameters:
exitCode-
-
getProcLog
-
setProcLog
-
getStartTime
public long getStartTime()Get start time- Returns:
- long
-
setStartTime
public void setStartTime(long startTime) Set start time- Parameters:
startTime-
-
getEndTime
public long getEndTime()Get end time- Returns:
- long
-
setEndTime
public void setEndTime(long endTime) Set end time- Parameters:
endTime-
-
getThreadName
-
setThreadName
-
getCpuDuration
public long getCpuDuration()Get CPU duration- Returns:
-
setCpuDuration
public void setCpuDuration(long cpuDuration) Set CPU duration- Parameters:
cpuDuration-
-
setCpuDuration
-
toString
-
toJsonString
-
toJsonDoc
-