All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.fherbreteau.gatling.sftp.client.result.SftpResult.scala Maven / Gradle / Ivy

package io.github.fherbreteau.gatling.sftp.client.result

import io.gatling.commons.stats.Status
import io.github.fherbreteau.gatling.sftp.client.OperationDef

trait SftpResult {
  def operation: OperationDef

  def startTimestamp: Long

  def endTimestamp: Long

  def status: Status

  def message: Option[String]
}

final case class SftpFailure(
                              operation: OperationDef,
                              startTimestamp: Long,
                              endTimestamp: Long,
                              errorMessage: String,
                              status: Status
                            ) extends SftpResult {
  override def message: Option[String] = Some(errorMessage)
}

final case class SftpResponse(
                               operation: OperationDef,
                               startTimestamp: Long,
                               endTimestamp: Long,
                               status: Status
                             ) extends SftpResult {
  override def message: Option[String] = None
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy