Class RecoveryStatistic
java.lang.Object
org.gridgain.internal.recovery.statistic.RecoveryStatistic
- All Implemented Interfaces:
TimeStatisticCollector,StatisticsProvider
Thread-safe recovery statistic provider and accumulator implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongrecoveredPartitionsForTable(int tableId) Returns count of recovered partitions for specified table.longReturns count of recovered rows.longrecoveredRowsForPartition(int tableId, int partitionId) Returns count of recovered rows for specified partition and table.longrecoveredRowsForTable(int tableId) Returns count of recovered rows for specified table.longReturns count of recovered tables.voidMarks recovery as finished now.voidMarks recovery as started now.longReturns time spend for recovery process in millis.longrecoveryTimeForPartition(int tableId, int partitionId) Returns time spend for recovery process in millis for specified partition and table.longrecoveryTimeForTable(int tableId) Returns time spend for recovery process in millis for specified table.rowsStatisticAccumulator(int tableId, int partition) Returns statistic accumulator for specified table and partition.timeStatisticCollector(int tableId)
-
Constructor Details
-
RecoveryStatistic
public RecoveryStatistic()
-
-
Method Details
-
timeStatisticCollector
-
rowsStatisticAccumulator
Returns statistic accumulator for specified table and partition.- Parameters:
tableId- Table id.partition- Partition id.
-
recoveredTables
public long recoveredTables()Description copied from interface:StatisticsProviderReturns count of recovered tables.- Specified by:
recoveredTablesin interfaceStatisticsProvider
-
recoveredPartitionsForTable
public long recoveredPartitionsForTable(int tableId) Description copied from interface:StatisticsProviderReturns count of recovered partitions for specified table.- Specified by:
recoveredPartitionsForTablein interfaceStatisticsProvider- Parameters:
tableId- Table id.
-
recoveredRows
public long recoveredRows()Description copied from interface:StatisticsProviderReturns count of recovered rows.- Specified by:
recoveredRowsin interfaceStatisticsProvider
-
recoveredRowsForTable
public long recoveredRowsForTable(int tableId) Description copied from interface:StatisticsProviderReturns count of recovered rows for specified table.- Specified by:
recoveredRowsForTablein interfaceStatisticsProvider- Parameters:
tableId- Table id.
-
recoveredRowsForPartition
public long recoveredRowsForPartition(int tableId, int partitionId) Description copied from interface:StatisticsProviderReturns count of recovered rows for specified partition and table.- Specified by:
recoveredRowsForPartitionin interfaceStatisticsProvider- Parameters:
tableId- Table id.partitionId- Partition id.
-
recoveryTime
public long recoveryTime()Description copied from interface:StatisticsProviderReturns time spend for recovery process in millis.- Specified by:
recoveryTimein interfaceStatisticsProvider
-
recoveryTimeForTable
public long recoveryTimeForTable(int tableId) Description copied from interface:StatisticsProviderReturns time spend for recovery process in millis for specified table.- Specified by:
recoveryTimeForTablein interfaceStatisticsProvider- Parameters:
tableId- Table id.
-
recoveryTimeForPartition
public long recoveryTimeForPartition(int tableId, int partitionId) Description copied from interface:StatisticsProviderReturns time spend for recovery process in millis for specified partition and table.- Specified by:
recoveryTimeForPartitionin interfaceStatisticsProvider- Parameters:
tableId- Table id.
-
recoveryStarted
public void recoveryStarted()Description copied from interface:TimeStatisticCollectorMarks recovery as started now.- Specified by:
recoveryStartedin interfaceTimeStatisticCollector
-
recoveryFinished
public void recoveryFinished()Description copied from interface:TimeStatisticCollectorMarks recovery as finished now.- Specified by:
recoveryFinishedin interfaceTimeStatisticCollector
-