Class TopScreenPresenter
java.lang.Object
org.apache.hadoop.hbase.hbtop.screen.top.TopScreenPresenter
The presentation logic for the top screen.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicBoolean
private int
private long
private long
private final long
private final Paging
private final AtomicLong
private int
private final TopScreenModel
private final TopScreenView
-
Constructor Summary
ConstructorDescriptionTopScreenPresenter
(TopScreenView topScreenView, long initialRefreshDelay, TopScreenModel topScreenModel, List<Field> initialFields, long numberOfIterations) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
void
void
void
arrowUp()
void
void
void
end()
private int
private Record
goToFilterDisplayMode
(Screen screen, Terminal terminal, int row) goToInputModeForFilter
(Screen screen, Terminal terminal, int row, boolean ignoreCase) goToInputModeForRefreshDelay
(Screen screen, Terminal terminal, int row) goToMessageMode
(Screen screen, Terminal terminal, int row, String message) void
home()
void
init()
private void
initFieldDisplayMapAndFieldLengthMap
(List<Field> initialFields) boolean
void
pageDown()
void
pageUp()
long
refresh
(boolean force) private void
reset()
private void
switchMode
(Mode nextMode) void
transitionToFieldScreen
(Screen screen, Terminal terminal) transitionToHelpScreen
(Screen screen, Terminal terminal) transitionToModeScreen
(Screen screen, Terminal terminal) private void
updateTerminalLengthAndPageSize
(TerminalSize terminalSize, Integer pageSize)
-
Field Details
-
topScreenView
-
refreshDelay
-
lastRefreshTimestamp
-
adjustFieldLength
-
topScreenModel
-
terminalLength
-
horizontalScroll
-
paging
-
fieldDisplayMap
-
fieldLengthMap
-
numberOfIterations
-
iterations
-
-
Constructor Details
-
TopScreenPresenter
public TopScreenPresenter(TopScreenView topScreenView, long initialRefreshDelay, TopScreenModel topScreenModel, @Nullable List<Field> initialFields, long numberOfIterations)
-
-
Method Details
-
init
-
updateTerminalLengthAndPageSize
private void updateTerminalLengthAndPageSize(@Nullable TerminalSize terminalSize, @Nullable Integer pageSize) -
refresh
-
adjustFieldLength
-
adjustFieldLengthIfNeeded
-
getDisplayedHeaders
-
getDisplayedRecords
-
getSelectedRecord
-
arrowUp
-
arrowDown
-
pageUp
-
pageDown
-
arrowLeft
-
arrowRight
-
home
-
end
-
getHeaderSize
-
switchSortOrder
-
transitionToHelpScreen
-
transitionToModeScreen
-
transitionToFieldScreen
-
switchMode
-
drillDown
-
reset
-
initFieldDisplayMapAndFieldLengthMap
-
goToMessageMode
-
goToInputModeForRefreshDelay
-
goToInputModeForFilter
public ScreenView goToInputModeForFilter(Screen screen, Terminal terminal, int row, boolean ignoreCase) -
clearFilters
-
goToFilterDisplayMode
-
isIterationFinished
-