Interface IgniteStatisticsManager
-
- All Known Implementing Classes:
IgniteStatisticsManagerImpl
public interface IgniteStatisticsManagerStatistics manager. Coordinate statistics collection and act as source of statistics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcollectStatistics(StatisticsObjectConfiguration... targets)Gather object statistics.voiddropAll()Drop all statistics.voiddropStatistics(StatisticsTarget... targets)Clear object statistics.ObjectStatisticsgetGlobalStatistics(StatisticsKey key)Get global statistics by object.ObjectStatisticsgetLocalStatistics(StatisticsKey key)Get local statistics by object.voidonRowUpdated(String schemaName, String objName, int partId, byte[] keyBytes)To track statistics invalidation.voidrefreshStatistics(StatisticsTarget... targets)Refresh object statistics.voidstop()Stop statistic manager.StatisticsUsageStateusageState()voidusageState(StatisticsUsageState state)Set statistics usage state.
-
-
-
Method Detail
-
collectStatistics
void collectStatistics(StatisticsObjectConfiguration... targets) throws IgniteCheckedException
Gather object statistics.- Parameters:
targets- Target to params map to gather statistics by.- Throws:
IgniteCheckedException- Throws in case of errors.
-
dropStatistics
void dropStatistics(StatisticsTarget... targets) throws IgniteCheckedException
Clear object statistics.- Parameters:
targets- Collection of target to collect statistics by (schema, obj, columns).- Throws:
IgniteCheckedException- In case of errors (for example: unsupported feature)
-
refreshStatistics
void refreshStatistics(StatisticsTarget... targets) throws IgniteCheckedException
Refresh object statistics.- Parameters:
targets- Target to refresh statistics by.- Throws:
IgniteCheckedException- Throws in case of errors.
-
dropAll
void dropAll() throws IgniteCheckedExceptionDrop all statistics.- Throws:
IgniteCheckedException
-
getLocalStatistics
ObjectStatistics getLocalStatistics(StatisticsKey key)
Get local statistics by object.- Parameters:
key- Statistic key.- Returns:
- Object statistics or
nullif there are no available statistics by specified object.
-
getGlobalStatistics
ObjectStatistics getGlobalStatistics(StatisticsKey key)
Get global statistics by object.- Parameters:
key- Statistic key.- Returns:
- Object statistics of
nullif there are no available global statistics by specified object.
-
stop
void stop()
Stop statistic manager.
-
usageState
void usageState(StatisticsUsageState state) throws IgniteCheckedException
Set statistics usage state.- Parameters:
state- Statistics state.- Throws:
IgniteCheckedException
-
usageState
StatisticsUsageState usageState()
- Returns:
- Statistics usage state.
-
-