Class TopScreenModel
java.lang.Object
org.apache.hadoop.hbase.hbtop.screen.top.TopScreenModel
The data and business logic for the top screen.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Admin
private boolean
private Mode
private Field
private final List<RecordFilter>
private static final org.slf4j.Logger
private final List<RecordFilter>
private Summary
-
Constructor Summary
ConstructorDescriptionTopScreenModel
(Admin admin, Mode initialMode, List<Field> initialFields, Field initialSortField, Boolean initialAscendingSort, List<RecordFilter> initialFilters) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
private void
boolean
Collection<? extends RecordFilter>
void
private void
refreshRecords
(ClusterMetrics clusterMetrics) private void
refreshSummary
(ClusterMetrics clusterMetrics) void
setSortFieldAndFields
(Field sortField, List<Field> fields) void
switchMode
(Mode nextMode, boolean keepSortFieldAndSortOrderIfPossible, List<RecordFilter> initialFilters) void
switchMode
(Mode nextMode, Field initialSortField, boolean keepSortFieldAndSortOrderIfPossible, List<Field> initialFields, Boolean initialAscendingSort, List<RecordFilter> initialFilters) void
-
Field Details
-
LOGGER
-
admin
-
currentMode
-
currentSortField
-
fieldInfos
-
fields
-
summary
-
records
-
filters
-
pushDownFilters
-
filterHistories
-
ascendingSort
-
-
Constructor Details
-
TopScreenModel
public TopScreenModel(Admin admin, Mode initialMode, @Nullable List<Field> initialFields, @Nullable Field initialSortField, @Nullable Boolean initialAscendingSort, @Nullable List<RecordFilter> initialFilters)
-
-
Method Details
-
switchMode
public void switchMode(Mode nextMode, boolean keepSortFieldAndSortOrderIfPossible, List<RecordFilter> initialFilters) -
switchMode
public void switchMode(Mode nextMode, Field initialSortField, boolean keepSortFieldAndSortOrderIfPossible, @Nullable List<Field> initialFields, @Nullable Boolean initialAscendingSort, @Nullable List<RecordFilter> initialFilters) -
setSortFieldAndFields
-
refreshMetricsData
-
refreshSummary
-
refreshRecords
-
switchSortOrder
-
addFilter
-
clearFilters
-
drillDown
-
getCurrentMode
-
getCurrentSortField
-
getFieldInfos
-
getFields
-
getSummary
-
getRecords
-
getFilters
-
getFilterHistories
-
decomposePushDownFilter
-
getPushDownFilters
-