@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<Record> |
records |
private Summary |
summary |
Constructor and Description |
---|
TopScreenModel(Admin admin,
Mode initialMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
addFilter(String filterString,
boolean ignoreCase) |
void |
clearFilters() |
boolean |
drillDown(Record selectedRecord) |
Mode |
getCurrentMode() |
Field |
getCurrentSortField() |
List<FieldInfo> |
getFieldInfos() |
List<Field> |
getFields() |
List<String> |
getFilterHistories() |
List<RecordFilter> |
getFilters() |
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,
List<RecordFilter> initialFilters,
boolean keepSortFieldAndSortOrderIfPossible) |
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<String> filterHistories
private boolean ascendingSort
public TopScreenModel(Admin admin, Mode initialMode)
public void switchMode(Mode nextMode, List<RecordFilter> initialFilters, boolean keepSortFieldAndSortOrderIfPossible)
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()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.