Class WarningsSnapshot
- java.lang.Object
-
- org.apache.cassandra.service.reads.thresholds.WarningsSnapshot
-
public class WarningsSnapshot extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWarningsSnapshot.Builderstatic classWarningsSnapshot.Counterstatic classWarningsSnapshot.Warnings
-
Field Summary
Fields Modifier and Type Field Description WarningsSnapshot.WarningslocalReadSizeWarningsSnapshot.WarningsrowIndexReadSizeWarningsSnapshot.Warningstombstones
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WarningsSnapshotcreate(WarningsSnapshot.Warnings tombstones, WarningsSnapshot.Warnings localReadSize, WarningsSnapshot.Warnings rowIndexTooLarge)static WarningsSnapshotempty()booleanequals(java.lang.Object o)inthashCode()booleanisDefined()booleanisEmpty()static java.lang.StringlocalReadSizeAbortMessage(long nodes, long bytes, java.lang.String cql)static java.lang.StringlocalReadSizeWarnMessage(int nodes, long bytes, java.lang.String cql)voidmaybeAbort(ReadCommand command, ConsistencyLevel cl, int received, int blockFor, boolean isDataPresent, java.util.Map<InetAddressAndPort,RequestFailureReason> failureReasonByEndpoint)static WarningsSnapshotmerge(WarningsSnapshot... values)static java.lang.StringrowIndexReadSizeAbortMessage(long nodes, long bytes, java.lang.String cql)static java.lang.StringrowIndexSizeWarnMessage(int nodes, long bytes, java.lang.String cql)static java.lang.StringtombstoneAbortMessage(int nodes, long tombstones, java.lang.String cql)static java.lang.StringtombstoneWarnMessage(int nodes, long tombstones, java.lang.String cql)java.lang.StringtoString()
-
-
-
Field Detail
-
tombstones
public final WarningsSnapshot.Warnings tombstones
-
localReadSize
public final WarningsSnapshot.Warnings localReadSize
-
rowIndexReadSize
public final WarningsSnapshot.Warnings rowIndexReadSize
-
-
Method Detail
-
empty
public static WarningsSnapshot empty()
-
create
public static WarningsSnapshot create(WarningsSnapshot.Warnings tombstones, WarningsSnapshot.Warnings localReadSize, WarningsSnapshot.Warnings rowIndexTooLarge)
-
merge
public static WarningsSnapshot merge(WarningsSnapshot... values)
-
isEmpty
public boolean isEmpty()
-
isDefined
public boolean isDefined()
-
maybeAbort
public void maybeAbort(ReadCommand command, ConsistencyLevel cl, int received, int blockFor, boolean isDataPresent, java.util.Map<InetAddressAndPort,RequestFailureReason> failureReasonByEndpoint)
-
tombstoneAbortMessage
public static java.lang.String tombstoneAbortMessage(int nodes, long tombstones, java.lang.String cql)
-
tombstoneWarnMessage
public static java.lang.String tombstoneWarnMessage(int nodes, long tombstones, java.lang.String cql)
-
localReadSizeAbortMessage
public static java.lang.String localReadSizeAbortMessage(long nodes, long bytes, java.lang.String cql)
-
localReadSizeWarnMessage
public static java.lang.String localReadSizeWarnMessage(int nodes, long bytes, java.lang.String cql)
-
rowIndexReadSizeAbortMessage
public static java.lang.String rowIndexReadSizeAbortMessage(long nodes, long bytes, java.lang.String cql)
-
rowIndexSizeWarnMessage
public static java.lang.String rowIndexSizeWarnMessage(int nodes, long bytes, java.lang.String cql)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-