Package com.cockroachlabs.data.test
Record Class CockroachDBConcurrencyRunner.Result
java.lang.Object
java.lang.Record
com.cockroachlabs.data.test.CockroachDBConcurrencyRunner.Result
- Enclosing class:
CockroachDBConcurrencyRunner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.longfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationsPerThreadrecord component.doublelongReturns the value of thesuccessesrecord component.intthreads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalOperationsrecord component.
-
Constructor Details
-
Result
public Result(int threads, int iterationsPerThread, long totalOperations, long successes, long failures, long durationMs, List<Throwable> errors) Creates an instance of aResultrecord class.- Parameters:
threads- the value for thethreadsrecord componentiterationsPerThread- the value for theiterationsPerThreadrecord componenttotalOperations- the value for thetotalOperationsrecord componentsuccesses- the value for thesuccessesrecord componentfailures- the value for thefailuresrecord componentdurationMs- the value for thedurationMsrecord componenterrors- the value for theerrorsrecord component
-
-
Method Details
-
opsPerSecond
public double opsPerSecond() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
threads
public int threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-
iterationsPerThread
public int iterationsPerThread()Returns the value of theiterationsPerThreadrecord component.- Returns:
- the value of the
iterationsPerThreadrecord component
-
totalOperations
public long totalOperations()Returns the value of thetotalOperationsrecord component.- Returns:
- the value of the
totalOperationsrecord component
-
successes
public long successes()Returns the value of thesuccessesrecord component.- Returns:
- the value of the
successesrecord component
-
failures
public long failures()Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-