|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.impl.command.ProcessInvocationContext
class ProcessInvocationContext
| Field Summary | |
|---|---|
private ChunkAdapter |
adapter
. |
private ShellProcessContext |
processContext
. |
private CRaSHSession |
session
. |
| Constructor Summary | |
|---|---|
ProcessInvocationContext(CRaSHSession session,
ShellProcessContext processContext)
|
|
| Method Summary | |
|---|---|
void |
flush()
|
Map<String,Object> |
getAttributes()
|
Class<Object> |
getConsumedType()
Returns the class of the consumed type. |
int |
getHeight()
Returns the screen height in chars. |
String |
getProperty(String propertyName)
Returns a generic property, usually this property is resolved by the shell client. |
Map<String,Object> |
getSession()
|
int |
getWidth()
Returns the screen width in chars. |
void |
provide(Object element)
Provide an element. |
String |
readLine(String msg,
boolean echo)
Display a message and read a line on the console. |
boolean |
releaseAlternateBuffer()
Release control of the alternate buffer. |
boolean |
takeAlternateBuffer()
Take control of the alternate buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CRaSHSession session
private final ShellProcessContext processContext
private final ChunkAdapter adapter
| Constructor Detail |
|---|
ProcessInvocationContext(CRaSHSession session,
ShellProcessContext processContext)
| Method Detail |
|---|
public boolean takeAlternateBuffer()
InteractionContextFlushable.flush() method
is invoked.
takeAlternateBuffer in interface InteractionContext<Object>public boolean releaseAlternateBuffer()
InteractionContextFlushable.flush() method
is invoked.
releaseAlternateBuffer in interface InteractionContext<Object>public String getProperty(String propertyName)
InteractionContext
getProperty in interface InteractionContext<Object>propertyName - the property name
public String readLine(String msg,
boolean echo)
InteractionContext
readLine in interface InteractionContext<Object>msg - the message to display before reading a lineecho - wether or not the line read should be echoed when typing
public int getWidth()
ScreenContext
getWidth in interface ScreenContext<Object>public int getHeight()
ScreenContext
getHeight in interface ScreenContext<Object>public Class<Object> getConsumedType()
Consumer
getConsumedType in interface Consumer<Object>
public void provide(Object element)
throws IOException
Pipe
provide in interface Pipe<Object>element - the provided element
IOException
public void flush()
throws IOException
flush in interface FlushableIOExceptionpublic Map<String,Object> getSession()
public Map<String,Object> getAttributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||