public class LessAction extends Object implements org.apache.karaf.shell.api.action.Action, org.apache.karaf.shell.api.console.SignalListener
| Modifier and Type | Field and Description |
|---|---|
static int |
ESCAPE_TIMEOUT |
static int |
READ_EXPIRED |
| Constructor and Description |
|---|
LessAction() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkInterrupted()
This is for long running commands to be interrupted by ctrl-c
|
Object |
execute() |
protected boolean |
isTty(OutputStream out) |
protected Object |
readOperation() |
void |
signal(org.apache.karaf.shell.api.console.Signal signal) |
public static final int ESCAPE_TIMEOUT
public static final int READ_EXPIRED
public Object execute() throws Exception
execute in interface org.apache.karaf.shell.api.action.ActionExceptionpublic void signal(org.apache.karaf.shell.api.console.Signal signal)
signal in interface org.apache.karaf.shell.api.console.SignalListenerprotected boolean isTty(OutputStream out)
public static void checkInterrupted()
throws InterruptedException
InterruptedExceptionprotected Object readOperation() throws IOException
IOExceptionCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.