|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.term.processor.Processor
public final class Processor
The processor is the glue between a term object and a shell object. It mainly read the input from the term and executes shell commands.
The class implements the Runnable interface to perform its processing.
| Field Summary | |
|---|---|
private List<Closeable> |
listeners
. |
(package private) org.slf4j.Logger |
log
. |
(package private) ShellProcess |
process
The current process being executed. |
private Shell |
shell
. |
private AtomicReference<Status> |
status
. |
(package private) Term |
term
. |
| Constructor Summary | |
|---|---|
Processor(Term term,
Shell shell)
|
|
| Method Summary | |
|---|---|
void |
addListener(Closeable listener)
|
Result |
execute()
|
State |
getState()
|
boolean |
isAvailable()
|
void |
run()
|
(package private) void |
writePrompt()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final org.slf4j.Logger log
final Term term
private final AtomicReference<Status> status
private final Shell shell
volatile ShellProcess process
private final List<Closeable> listeners
| Constructor Detail |
|---|
public Processor(Term term,
Shell shell)
| Method Detail |
|---|
public void run()
run in interface Runnablepublic boolean isAvailable()
public State getState()
public Result execute()
void writePrompt()
public void addListener(Closeable listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||