Class ProcessStatusRepository

java.lang.Object
org.qubership.atp.mia.repo.impl.ProcessStatusRepository

@Repository public class ProcessStatusRepository extends Object
  • Constructor Details

    • ProcessStatusRepository

      public ProcessStatusRepository()
  • Method Details

    • parseLogMarkers

      public void parseLogMarkers(ProcessStatus processStatus, Command command)
      Pass markers from command to processStatus with evaluation it according to FlowData.
      Parameters:
      processStatus - processStatus
      command - command
    • parseLogStatus

      public void parseLogStatus(ExecutionResponse executionResponse)
      Update process status according to log and markers.
    • parseLogStatus

      public void parseLogStatus(ExecutionResponse executionResponse, int linesAmount)
      Update process status according to log and markers.
      Parameters:
      executionResponse - response.
      linesAmount - amount of last lines to show in case if there is no markers.
    • parseReturnCodeAndUpdateStatus

      public void parseReturnCodeAndUpdateStatus(ExecutionResponse response)
      Parses rest response and sets Statuses.FAIL if there is unexpected code in response. In case if flag 'Check Status Code' turned off this funciton skipped.
      Parameters:
      response - http response