jPOS 1.6.1 API Documentation

org.jpos.q2
Class CLI

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

public class CLI
extends java.lang.Thread
implements jline.SimpleCompletor.SimpleCompletorFilter


Nested Class Summary
static interface CLI.Command
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CLI(Q2 q2, java.lang.String line, boolean keepRunning)
           
 
Method Summary
 boolean confirm(java.lang.String prompt)
           
 java.lang.String filter(java.lang.String element)
           
 jline.ConsoleReader getConsoleReader()
           
 java.io.PrintStream getOutputStream()
           
 Q2 getQ2()
           
 void print(java.lang.String s)
           
 void println(java.lang.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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLI

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

run

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

print

public void print(java.lang.String s)

println

public void println(java.lang.String s)

confirm

public boolean confirm(java.lang.String prompt)
                throws java.io.IOException
Throws:
java.io.IOException

getQ2

public Q2 getQ2()

getConsoleReader

public jline.ConsoleReader getConsoleReader()

getOutputStream

public java.io.PrintStream getOutputStream()

filter

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

jPOS.org