@InterfaceAudience.Private public class TopScreenModel extends Object
Modifier and Type | Field and Description |
---|---|
private Admin |
admin |
private boolean |
ascendingSort |
private Mode |
currentMode |
private Field |
currentSortField |
private List<FieldInfo> |
fieldInfos |
private List<Field> |
fields |
private List<String> |
filterHistories |
private List<RecordFilter> |
filters |
private static org.slf4j.Logger |
LOGGER |
private List<RecordFilter> |
pushDownFilters |
private List<Record> |
records |
private Summary |
summary |
Constructor and Description |
---|
TopScreenModel(Admin admin,
Mode initialMode,
List<Field> initialFields,
Field initialSortField,
Boolean initialAscendingSort,
List<RecordFilter> initialFilters) |
Modifier and Type | Method and Description |
---|---|
boolean |
addFilter(String filterString,
boolean ignoreCase) |
void |
clearFilters() |
private void |
decomposePushDownFilter() |
boolean |
drillDown(Record selectedRecord) |
Mode |
getCurrentMode() |
Field |
getCurrentSortField() |
List<FieldInfo> |
getFieldInfos() |
List<Field> |
getFields() |
List<String> |
getFilterHistories() |
List<RecordFilter> |
getFilters() |
Collection<? extends RecordFilter> |
getPushDownFilters() |
List<Record> |
getRecords() |
Summary |
getSummary() |
void |
refreshMetricsData() |
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 |
switchSortOrder() |
private static final org.slf4j.Logger LOGGER
private Mode currentMode
private Field currentSortField
private List<FieldInfo> fieldInfos
private final List<RecordFilter> filters
private final List<RecordFilter> pushDownFilters
private final List<String> filterHistories
private boolean ascendingSort
public TopScreenModel(Admin admin, Mode initialMode, @Nullable List<Field> initialFields, @Nullable Field initialSortField, @Nullable Boolean initialAscendingSort, @Nullable List<RecordFilter> initialFilters)
public void switchMode(Mode nextMode, boolean keepSortFieldAndSortOrderIfPossible, List<RecordFilter> initialFilters)
public void switchMode(Mode nextMode, Field initialSortField, boolean keepSortFieldAndSortOrderIfPossible, @Nullable List<Field> initialFields, @Nullable Boolean initialAscendingSort, @Nullable List<RecordFilter> initialFilters)
public void setSortFieldAndFields(Field sortField, List<Field> fields)
public void refreshMetricsData()
private void refreshSummary(ClusterMetrics clusterMetrics)
private void refreshRecords(ClusterMetrics clusterMetrics)
public void switchSortOrder()
public void clearFilters()
public Mode getCurrentMode()
public Field getCurrentSortField()
public List<FieldInfo> getFieldInfos()
public Summary getSummary()
public List<Record> getRecords()
public List<RecordFilter> getFilters()
public List<String> getFilterHistories()
private void decomposePushDownFilter()
public Collection<? extends RecordFilter> getPushDownFilters()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.