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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutorServiceprivate final Readerprivate final BlockingQueue<Character>private final InputStreamprivate static final org.slf4j.Loggerprivate intprivate intprivate KeyPressGenerator.ParseStateprivate final AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidctrlAltAndCharacter(char ch) private voidctrlAndCharacter(char ch) private voiddoneEscapeSequenceCharacter(char last) private voidescapeSequenceCharacter(char ch) private voidprivate voidprivate booleanisAlt(int param) private booleanisCtrl(int param) private booleanisPrintableChar(char ch) private booleanisShift(int param) private voidprivate voidvoidstart()voidstop()
-
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
-