Class TaskLogging

java.lang.Object
org.tasktide.core.model.task.TaskLogging

@Embeddable public class TaskLogging extends Object
Model class to hold the data from task processing
  • 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

      public String getId()
      Get Id
      Returns:
      String
    • setId

      public void setId(String taskLogId)
      Set Id
      Parameters:
      taskLogId -
    • 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

      public ProcessLog getProcLog()
      Get process log
      Returns:
      ProcessLog
    • setProcLog

      public void setProcLog(ProcessLog procLog)
      Set process log
      Parameters:
      procLog -
    • 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

      public String getThreadName()
      Get thread name
      Returns:
      String
    • setThreadName

      public void setThreadName(String threadName)
      Set thread name
      Parameters:
      threadName -
    • getCpuDuration

      public long getCpuDuration()
      Get CPU duration
      Returns:
    • setCpuDuration

      public void setCpuDuration(long cpuDuration)
      Set CPU duration
      Parameters:
      cpuDuration -
    • setCpuDuration

      public void setCpuDuration(Optional<Duration> cpuDuration)
      Set CPU duration
      Parameters:
      cpuDuration -
    • toString

      public String toString()
      Represent as string
      Overrides:
      toString in class Object
      Returns:
      String
    • toJsonString

      public String toJsonString()
      Serialize to JSON string
      Returns:
      String
    • toJsonDoc

      public String toJsonDoc()
      Serialize to a human readable formatted JSON string
      Returns:
      String