public static class ActiveRepairService.ParentRepairSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.util.UUID,ColumnFamilyStore> |
columnFamilyStores |
java.net.InetAddress |
coordinator |
boolean |
failed
Used to mark a repair as failed - if the coordinator thinks that the repair is still ongoing and sends a
request, we need to fail the coordinator as well.
|
java.util.Collection<Range<Token>> |
ranges |
long |
repairedAt
used as fail time if failed is true
|
java.util.Map<java.util.UUID,java.util.Set<java.lang.String>> |
sstableMap |
Constructor and Description |
---|
ActiveRepairService.ParentRepairSession(java.net.InetAddress coordinator,
java.util.List<ColumnFamilyStore> columnFamilyStores,
java.util.Collection<Range<Token>> ranges,
long repairedAt) |
ActiveRepairService.ParentRepairSession(java.net.InetAddress coordinator,
java.util.List<ColumnFamilyStore> columnFamilyStores,
java.util.Collection<Range<Token>> ranges,
long repairedAt,
boolean failed) |
Modifier and Type | Method and Description |
---|---|
ActiveRepairService.ParentRepairSession |
asFailed() |
Refs<SSTableReader> |
getActiveRepairedSSTableRefsForAntiCompaction(java.util.UUID cfId)
Gets the repairing sstables for anticompaction.
|
void |
markSSTablesRepairing(java.util.UUID cfId,
java.util.UUID parentSessionId)
Marks all the unrepaired sstables as repairing unless we have already done so.
|
java.lang.String |
toString() |
public final java.util.Map<java.util.UUID,ColumnFamilyStore> columnFamilyStores
public final java.util.Map<java.util.UUID,java.util.Set<java.lang.String>> sstableMap
public final long repairedAt
public final java.net.InetAddress coordinator
public final boolean failed
public ActiveRepairService.ParentRepairSession(java.net.InetAddress coordinator, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, long repairedAt, boolean failed)
public ActiveRepairService.ParentRepairSession(java.net.InetAddress coordinator, java.util.List<ColumnFamilyStore> columnFamilyStores, java.util.Collection<Range<Token>> ranges, long repairedAt)
public Refs<SSTableReader> getActiveRepairedSSTableRefsForAntiCompaction(java.util.UUID cfId)
cfId
- public void markSSTablesRepairing(java.util.UUID cfId, java.util.UUID parentSessionId)
cfId
- parentSessionId
- used to check that we don't start multiple inc repair sessions over the same sstablespublic ActiveRepairService.ParentRepairSession asFailed()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016 The Apache Software Foundation