org.jpos.q2
Class CLI

java.lang.Object
  extended by java.lang.Thread
      extended by org.jpos.q2.CLI
All Implemented Interfaces:
Runnable, jline.SimpleCompletor.SimpleCompletorFilter

public class CLI
extends Thread
implements jline.SimpleCompletor.SimpleCompletorFilter


Nested Class Summary
static interface CLI.Command
           
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CLI(Q2 q2, String line, boolean keepRunning)
           
 
Method Summary
 boolean confirm(String prompt)
           
 String filter(String element)
           
 jline.ConsoleReader getConsoleReader()
           
 PrintStream getOutputStream()
           
 Q2 getQ2()
           
 void print(String s)
           
 void println(String s)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLI

public CLI(Q2 q2,
           String line,
           boolean keepRunning)
    throws IOException
Throws:
IOException
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

print

public void print(String s)

println

public void println(String s)

confirm

public boolean confirm(String prompt)
                throws IOException
Throws:
IOException

getQ2

public Q2 getQ2()

getConsoleReader

public jline.ConsoleReader getConsoleReader()

getOutputStream

public PrintStream getOutputStream()

filter

public String filter(String element)
Specified by:
filter in interface jline.SimpleCompletor.SimpleCompletorFilter


Copyright © 1998-2012 jPOS.org. All Rights Reserved.