wt.epm.query
Class QueryTerminal
java.lang.Object
wt.epm.query.QueryTerminal
- public class QueryTerminal
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_OUTPUT_LINE_LENGTH
private static final int MAX_OUTPUT_LINE_LENGTH
- See Also:
- Constant Field Values
logging
private boolean logging
stdReader
private BufferedReader stdReader
reader
private BufferedReader reader
QueryTerminal
public QueryTerminal()
readLine
private String readLine()
throws IOException
- Throws:
IOException
login
public void login()
throws IOException
- Throws:
IOException
login
protected static void login(String username,
String password)
print
protected static void print(QueryResult qr)
runOnServer
private Object runOnServer(String method,
Object[] args)
setParameter
private void setParameter(String name,
String value)
processFile
private void processFile(String cmd)
throws QueryException
- Throws:
QueryException
execute
public void execute()
throws IOException
- Throws:
IOException
log
private void log(String message)
processCommandLine
public void processCommandLine(String[] args)
throws QueryException,
FileNotFoundException
- Throws:
QueryException
FileNotFoundException
main
public static void main(String[] args)