Class KeyPressGenerator
java.lang.Object
org.apache.hadoop.hbase.hbtop.terminal.impl.KeyPressGenerator
This generates
KeyPress
objects from the given input stream and offers them to the given
queue.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ExecutorService
private final Reader
private final BlockingQueue<Character>
private final InputStream
private static final org.slf4j.Logger
private int
private int
private KeyPressGenerator.ParseState
private final AtomicBoolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
ctrlAltAndCharacter
(char ch) private void
ctrlAndCharacter
(char ch) private void
doneEscapeSequenceCharacter
(char last) private void
escapeSequenceCharacter
(char ch) private void
private void
private boolean
isAlt
(int param) private boolean
isCtrl
(int param) private boolean
isPrintableChar
(char ch) private boolean
isShift
(int param) private void
private void
void
start()
void
stop()
-
Field Details
-
LOGGER
-
keyPressQueue
-
inputCharacterQueue
-
input
-
inputStream
-
stopThreads
-
executorService
-
parseState
-
param1
-
param2
-
-
Constructor Details
-
KeyPressGenerator
-
-
Method Details
-
start
-
initState
-
readerThread
-
generatorThread
-
ctrlAndCharacter
-
isPrintableChar
-
ctrlAltAndCharacter
-
escapeSequenceCharacter
-
doneEscapeSequenceCharacter
-
isShift
-
isAlt
-
isCtrl
-
offer
-
stop
-