public static interface NanoSparqlServer.SystemProperties
Modifier and Type | Field and Description |
---|---|
static String |
BIGDATA_PROPERTY_FILE
The location to over propertyFile used to create the servlet.
|
static String |
DEFAULT_JETTY_STARTUP_TIMEOUT |
static String |
DEFAULT_JETTY_XML
The default value works when deployed under the IDE with the
bigdata-war/src directory on the classpath. |
static String |
JETTY_DUMP_START
When
true , the state of jetty will be dumped onto a
logger after the server start. |
static String |
JETTY_HOME
The jetty.home property.
|
static String |
JETTY_OVERRIDE_WEB_XML
The location of the
override-web.xml resource. |
static String |
JETTY_PORT
The name of the system property that can be used to override the default
HTTP port in the bundled
jetty.xml file. |
static String |
JETTY_RESOURCE_BASE
This property specifies the resource path for the web application.
|
static String |
JETTY_STARTUP_TIMEOUT
The timeout in seconds that we will await the start of the jetty
Server (default ). |
static String |
JETTY_XML
The name of the system property that can be used to override the
location of the
jetty.xml file that will be used to
configure jetty (default "jetty.xml"). |
static final String JETTY_PORT
jetty.xml
file.static final String JETTY_XML
jetty.xml
file that will be used to
configure jetty (default "jetty.xml").static final String DEFAULT_JETTY_XML
bigdata-war/src
directory on the classpath. When
deploying outside of that context, the value needs to be set
explicitly.static final String JETTY_STARTUP_TIMEOUT
Server
(default ).static final String DEFAULT_JETTY_STARTUP_TIMEOUT
static final String JETTY_DUMP_START
true
, the state of jetty will be dumped onto a
logger after the server start.static final String JETTY_RESOURCE_BASE
jetty.xml
file
MUST contain a line which allows the resourceBase of the web
application to be set from an environment variable. For example:
<SystemProperty name="jetty.resourceBase" default="bigdata-war/src" />The
jetty.resourceBase
variable may identify either a
file or a resource on the class path. To force the use of the web
application embedded within the bigdata.jar
you need to
specify a JAR URL along the following lines (using the appropriate
file path and jar name and version:
jar:file:../lib/bigdata-1.3.0.jar!/bigdata-war/srcThe use of absolute file paths are recommended for reliable resolution.
The order of preference is:
jetty.resourceBase
is specified. The value of this
environment variable will be used to locate the web application.jetty.resourceBase
is not specified (either
null
or whitespace).
bigdata-war/src
resource in the file system (relative to the current working
directory). If found, the jetty.resourceBase
environment
variable is set to this resource using a file:
style
URL. This will cause jetty to use the web application directory in
the file system./WEB-INF/web.xml
using the classpath (this handles the
case when running under the eclipse IDE). If found, the the
jetty.resourceBase
is set to the URL formed by removing
the trailing WEB-INF/web.xml
for the located resource.
This will cause jetty to use the web application resource on the
classpath. If there are multiple such resources on the classpath, the
first such resource will be discovered and used.bigdata-war/src/main/webapp/WEB-INF/web.xml
using the classpath
(this handles the case when running from the command line using a
bigdata JAR). If found, the the jetty.resourceBase
is
set to the URL formed by the trailing WEB-INF/web.xml
for the located resource. This will cause jetty to use the web
application resource on the classpath. If there are multiple such
resources on the classpath, the first such resource will be
discovered and used.jetty.resourceBase
environment variable
is not modified and the default location specified in the
jetty.xml
file will be used. If jetty is unable to
resolve that resource, then the web application will not start.static final String JETTY_OVERRIDE_WEB_XML
override-web.xml
resource. The
default is given in jetty.xml
and serves to locate the
resource when deployed under an IDE. If not explicitly given, value
of the environment variable is set by the same logic that sets the
JETTY_RESOURCE_BASE
environment variable. This allows the
override-web.xml
resource to be found in its default
location (which is the same directory / package as the
web.xml
file) while still preserving the ability to
override the location of that resource explicitly by setting the
environment variable before starting the server.static final String BIGDATA_PROPERTY_FILE
static final String JETTY_HOME
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.