public final class MainProp extends AProp
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object[] |
DBPATH
Database path.
|
static java.lang.Object[] |
DEBUG
Debug mode.
|
static java.lang.Object[] |
EVENTPORT
Server: port, used for sending events.
|
static java.lang.Object[] |
HOST
Server: host, used for connecting new clients.
|
static java.lang.Object[] |
HTTPPATH
HTTP path.
|
static java.lang.Object[] |
HTTPPORT
Server: port, used for starting the HTTP server.
|
static java.lang.Object[] |
KEEPALIVE
Keep alive time of clients; deactivated if set to 0.
|
static java.lang.Object[] |
LANG
Language name.
|
static java.lang.Object[] |
LANGKEYS
Flag to include key names in the language strings.
|
static java.lang.Object[] |
NONPROXYHOSTS
Server: non-proxy host.
|
static java.lang.Object[] |
PARALLEL
Defines the number of parallel readers.
|
static java.lang.Object[] |
PORT
Server: port, used for connecting new clients.
|
static java.lang.Object[] |
PROXYHOST
Server: proxy host.
|
static java.lang.Object[] |
PROXYPORT
Server: proxy port.
|
static java.lang.Object[] |
REPOPATH
Package repository path.
|
static java.lang.Object[] |
SERVERHOST
Server: host, used for binding the server.
|
static java.lang.Object[] |
SERVERPORT
Server: port, used for binding the server.
|
static java.lang.Object[] |
STOPPORT
Server: port, used for stopping the HTTP server.
|
static java.lang.Object[] |
TIMEOUT
Timeout for processing client requests; deactivated if set to 0.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
dbexists(java.lang.String db)
Checks if the specified database exists.
|
IOFile |
dbpath()
Returns the current database path.
|
IOFile |
dbpath(java.lang.String db)
Returns a file instance for the specified database.
|
protected void |
finish()
Sets static properties.
|
java.lang.String |
random(java.lang.String db)
Returns a random temporary name for the specified database.
|
public static final java.lang.Object[] DBPATH
public static final java.lang.Object[] HTTPPATH
public static final java.lang.Object[] REPOPATH
public static final java.lang.Object[] LANG
public static final java.lang.Object[] LANGKEYS
public static final java.lang.Object[] HOST
public static final java.lang.Object[] PORT
public static final java.lang.Object[] SERVERHOST
public static final java.lang.Object[] SERVERPORT
public static final java.lang.Object[] EVENTPORT
public static final java.lang.Object[] HTTPPORT
public static final java.lang.Object[] STOPPORT
public static final java.lang.Object[] PROXYHOST
public static final java.lang.Object[] PROXYPORT
public static final java.lang.Object[] NONPROXYHOSTS
public static final java.lang.Object[] TIMEOUT
public static final java.lang.Object[] KEEPALIVE
public static final java.lang.Object[] DEBUG
public static final java.lang.Object[] PARALLEL
public IOFile dbpath(java.lang.String db)
db - name of the databasepublic java.lang.String random(java.lang.String db)
db - name of databasepublic IOFile dbpath()
public boolean dbexists(java.lang.String db)
db - name of the databaseprotected void finish()
AProp