| Modifier and Type | Field and Description |
|---|---|
(package private) Runnable |
CLOSE_TASK
.
|
private static Text |
CONTINUE_PROMPT
.
|
(package private) ProcessContext |
current
.
|
private LineParser |
lineBuffer
.
|
private MultiLineVisitor |
lineVisitor
.
|
private CloseableList |
listeners
.
|
(package private) Object |
lock
.
|
(package private) Logger |
log
.
|
(package private) static Runnable |
NOOP
.
|
(package private) LinkedList<TermEvent> |
queue
.
|
private Runnable |
READ_TERM_TASK
.
|
(package private) Shell |
shell
.
|
(package private) Status |
status
.
|
(package private) Term |
term
.
|
private Object |
termLock
.
|
private boolean |
termReading
.
|
(package private) boolean |
waitingEvent
A flag useful for unit testing to know when the thread is reading.
|
(package private) Runnable |
WRITE_PROMPT_TASK
.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Closeable listener) |
(package private) void |
close() |
private void |
complete(CharSequence prefix) |
void |
flush() |
Class<Chunk> |
getConsumedType()
Returns the class of the element generic type.
|
boolean |
isWaitingEvent() |
(package private) boolean |
iterate() |
(package private) ProcessContext |
peekProcess() |
void |
provide(Chunk element)
Provide an element.
|
(package private) void |
readTerm() |
void |
run() |
(package private) void |
writePromptFlush() |
private static final Text CONTINUE_PROMPT
final Runnable WRITE_PROMPT_TASK
final Runnable CLOSE_TASK
private final Runnable READ_TERM_TASK
final LinkedList<TermEvent> queue
ProcessContext current
volatile boolean waitingEvent
private final CloseableList listeners
private final LineParser lineBuffer
private final MultiLineVisitor lineVisitor
private boolean termReading
public boolean isWaitingEvent()
boolean iterate() throws InterruptedException, IOException
InterruptedExceptionIOExceptionProcessContext peekProcess()
void readTerm()
void close()
public void addListener(Closeable listener)
public Class<Chunk> getConsumedType()
ConsumergetConsumedType in interface Consumer<Chunk>public void provide(Chunk element) throws IOException
Consumerprovide in interface Consumer<Chunk>element - the provided elementIOExceptionpublic void flush() throws IOException
flush in interface FlushableIOExceptionvoid writePromptFlush()
private void complete(CharSequence prefix)
Copyright © 2014 eXo Platform SAS. All Rights Reserved.