|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.server.BaseXServerNew
public final class BaseXServerNew
This is the starter class for the database server. It handles incoming requests and offers some simple threading to allow simultaneous database requests. Add the '-h' option to get a list on all available command-line arguments.
| Field Summary | |
|---|---|
Context |
context
Database Context. |
| Constructor Summary | |
|---|---|
BaseXServerNew(java.lang.String... args)
The server calls this constructor to listen on the given port for incoming connections. |
|
| Method Summary | |
|---|---|
void |
close()
Closes everything up. |
static void |
error(java.lang.Exception ex,
boolean quiet)
Prints a server error message. |
static void |
main(java.lang.String[] args)
Main method, launching the server process. |
void |
quit()
Quits the server. |
void |
stop()
Stops the server socket listener. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Context context
| Constructor Detail |
|---|
public BaseXServerNew(java.lang.String... args)
args - arguments| Method Detail |
|---|
public static void main(java.lang.String[] args)
-h argument.
args - command-line arguments
public void stop()
throws java.io.IOException
java.io.IOException - I/O exceptionpublic void quit()
public void close()
public static void error(java.lang.Exception ex,
boolean quiet)
ex - exception referencequiet - quiet flag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||