|
Buju 0.4 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
biz.bbeans.buju.BServer
Java interpreter non-interactive remote session server. Adapted from bsh.util.Sessiond.
| Nested Class Summary | |
class |
BServer.BConnection
|
| Field Summary | |
static String |
VERSION
Buju version. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
boolean |
accessAllowed(String user,
String password)
Access allowed for the given user and password. |
String |
getInterpScript()
Get the interpreter initialization script. |
static biz.bbeans.usage.BUsage |
getUsage()
Build and return the command line usage for the Main method. |
static void |
main(String[] args)
For usage display on standard out, use the -h option. |
boolean |
paused()
Status of the server. |
boolean |
pauseServer(String password)
Pause the server. |
boolean |
refreshServer(String password)
Refresh the server's data. |
boolean |
restarted()
Status of the server. |
boolean |
restartServer(String password)
Restart the server by creating a new server instance. |
boolean |
resumeServer(String password)
Resume the server after being paused. |
void |
run()
Run the service. |
boolean |
started()
Status of the server. |
boolean |
stopped()
Status of the server. |
boolean |
stopServer(String password)
Stop the server. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
| Field Detail |
public static final String VERSION
| Method Detail |
public boolean accessAllowed(String user,
String password)
throws NoSuchAlgorithmException,
UnsupportedEncodingException
user - User ID.password - User password in clear text.
NoSuchAlgorithmException
UnsupportedEncodingExceptionpublic boolean started()
public boolean paused()
public boolean restarted()
public boolean stopped()
public boolean pauseServer(String password)
throws IOException,
NoSuchAlgorithmException,
UnsupportedEncodingException
password - Admin password.
IOException - If there was a problem closing the server
socket.
NoSuchAlgorithmException - If the encryption algorithm
is not supported.
UnsupportedEncodingException - If UTF-8 character set
encoding is not supported.
public boolean resumeServer(String password)
throws IOException,
NoSuchAlgorithmException,
UnsupportedEncodingException
password - Admin password.
IOException - If there was a problem re-creating the server
socket.
NoSuchAlgorithmException - If the encryption algorithm
is not supported.
UnsupportedEncodingException - If UTF-8 character set
encoding is not supported.
public boolean restartServer(String password)
throws EvalError,
IOException,
NoSuchAlgorithmException
stopServer is called. Then a new BServer instance is
created and started using this server's configuration. This server's
connections and the new server's connections will not share any
interpreters, including the admin interpreter.
password - Admin password.
EvalError - If the admin script does not evaluate
properly.
IOException - If there was a problem closing the server
socket.
NoSuchAlgorithmException - If the encryption algorithm
is not supported.
public boolean refreshServer(String password)
throws EvalError,
IOException,
NoSuchAlgorithmException
password - Admin password.
EvalError - If the admin script does not evaluate
properly.
IOException - If there was a problem reading data.
NoSuchAlgorithmException - If the encryption algorithm
is not supported.
public boolean stopServer(String password)
throws IOException,
NoSuchAlgorithmException,
UnsupportedEncodingException
restartServer.
password - Admin password.
IOException - If there was a problem closing the server
socket.
NoSuchAlgorithmException - If the encryption algorithm
is not supported.
UnsupportedEncodingException - If UTF-8 character set
encoding is not supported.public void run()
stopServer(). Once stopped,
a server instance may not be re-started;
a new server instance should be created instead.
public String getInterpScript()
public static biz.bbeans.usage.BUsage getUsage()
printUsage(PrintStream ps)
on the returned BUsage object.
- Returns:
- Command line usage.
public static void main(String[] args)
|
Buju 0.4 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||