Record Class PartitionDetector.DetectorStats
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionDetector.DetectorStats
- Record Components:
totalChecks- total number of partition checks performedtotalPartitionsDetected- total partitions detected since startuptotalPartitionsHealed- total partitions healed since startupavgDetectionTimeMs- average time in milliseconds for detectionuptime- detector uptime in milliseconds
- Enclosing class:
PartitionDetector
public static record PartitionDetector.DetectorStats(long totalChecks, long totalPartitionsDetected, long totalPartitionsHealed, double avgDetectionTimeMs, long uptime)
extends Record
Detector statistics for monitoring.
-
Constructor Summary
ConstructorsConstructorDescriptionDetectorStats(long totalChecks, long totalPartitionsDetected, long totalPartitionsHealed, double avgDetectionTimeMs, long uptime) Creates an instance of aDetectorStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgDetectionTimeMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalChecksrecord component.longReturns the value of thetotalPartitionsDetectedrecord component.longReturns the value of thetotalPartitionsHealedrecord component.longuptime()Returns the value of theuptimerecord component.
-
Constructor Details
-
DetectorStats
public DetectorStats(long totalChecks, long totalPartitionsDetected, long totalPartitionsHealed, double avgDetectionTimeMs, long uptime) Creates an instance of aDetectorStatsrecord class.- Parameters:
totalChecks- the value for thetotalChecksrecord componenttotalPartitionsDetected- the value for thetotalPartitionsDetectedrecord componenttotalPartitionsHealed- the value for thetotalPartitionsHealedrecord componentavgDetectionTimeMs- the value for theavgDetectionTimeMsrecord componentuptime- the value for theuptimerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
totalChecks
public long totalChecks()Returns the value of thetotalChecksrecord component.- Returns:
- the value of the
totalChecksrecord component
-
totalPartitionsDetected
public long totalPartitionsDetected()Returns the value of thetotalPartitionsDetectedrecord component.- Returns:
- the value of the
totalPartitionsDetectedrecord component
-
totalPartitionsHealed
public long totalPartitionsHealed()Returns the value of thetotalPartitionsHealedrecord component.- Returns:
- the value of the
totalPartitionsHealedrecord component
-
avgDetectionTimeMs
public double avgDetectionTimeMs()Returns the value of theavgDetectionTimeMsrecord component.- Returns:
- the value of the
avgDetectionTimeMsrecord component
-
uptime
-