public static class ActiveRepairService.ParentRepairSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.net.InetAddress |
coordinator |
boolean |
isGlobal |
boolean |
isIncremental |
long |
repairedAt |
java.util.Map<java.util.UUID,java.util.Set<java.lang.String>> |
sstableMap |
Constructor and Description |
---|
ParentRepairSession(java.net.InetAddress coordinator,
java.util.List<ColumnFamilyStore> columnFamilyStores,
java.util.Collection<Range<Token>> ranges,
boolean isIncremental,
long repairedAt,
boolean isGlobal) |
Modifier and Type | Method and Description |
---|---|
Refs<SSTableReader> |
getActiveRepairedSSTableRefsForAntiCompaction(java.util.UUID cfId,
java.util.UUID parentSessionId)
Get the still active sstables we should run anticompaction on
note that validation and streaming do not call this method - they have to work on the actual active sstables on the node, we only call this
to know which sstables are still there that were there when we started the repair
|
long |
getRepairedAt() |
void |
markSSTablesRepairing(java.util.UUID cfId,
java.util.UUID parentSessionId)
Mark sstables repairing - either all sstables or only the unrepaired ones depending on
whether this is an incremental or full repair
|
void |
maybeSnapshot(java.util.UUID cfId,
java.util.UUID parentSessionId) |
java.lang.String |
toString() |
public final java.util.Map<java.util.UUID,java.util.Set<java.lang.String>> sstableMap
public final boolean isIncremental
public final boolean isGlobal
public final long repairedAt
public final java.net.InetAddress coordinator
public ParentRepairSession(java.net.InetAddress coordinator, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, boolean isIncremental, long repairedAt, boolean isGlobal)
public void markSSTablesRepairing(java.util.UUID cfId, java.util.UUID parentSessionId)
cfId
- the column familyparentSessionId
- the parent repair session id, used to make sure we don't start multiple repairs over the same sstablespublic Refs<SSTableReader> getActiveRepairedSSTableRefsForAntiCompaction(java.util.UUID cfId, java.util.UUID parentSessionId)
cfId
- parentSessionId
- for checking if there exists a snapshot for this repairpublic void maybeSnapshot(java.util.UUID cfId, java.util.UUID parentSessionId)
public long getRepairedAt()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 The Apache Software Foundation