java.lang.Object
org.apache.jena.fuseki.main.FusekiMain
Programmatic ways to create a server builder using command line syntax.
This also has a convenience ways to run a server.
If used in testing, the following may be used:
FusekiServer server = FusekiMain.runAync("--port=0", args);
String URL = server.serverURL();
// or server.getPort()
try {
...
} finally { server.stop(); }
Using port 0 causes the kernel to allocate a free port.
It is important for test to close servers promptly.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FusekiServerDeprecated, for removal: This API element is subject to removal in a future version.static FusekiServer.BuilderCreate aFusekiServer.Builderwhich has been setup according to the command line arguments.static FusekiServer.Builderbuilder(FusekiModules fusekiModules, String... args) Create aFusekiServer.Builderwhich has been setup according to the command line arguments.static FusekiServerBuild, but do not start, a server based on command line syntax.static FusekiServerconstruct(FusekiModules fusekiModules, String... args) Build, but do not start, a server based on modules and the command line syntax.static FusekiServerRun a server asynchronously based on the command line arguments.
-
Constructor Details
-
FusekiMain
public FusekiMain()
-
-
Method Details
-
run
Run a server asynchronously based on the command line arguments. UseFusekiServer.join()to block the caller. -
build
Deprecated, for removal: This API element is subject to removal in a future version.Build, but do not start, a server based on command line syntax. -
construct
Build, but do not start, a server based on command line syntax. -
construct
Build, but do not start, a server based on modules and the command line syntax. -
builder
Create aFusekiServer.Builderwhich has been setup according to the command line arguments. The builder can be further modified.- Parameters:
args- Command line syntax
-
builder
Create aFusekiServer.Builderwhich has been setup according to the command line arguments. The builder can be further modified.- Parameters:
fusekiModules-Fuseki modulesto includeargs- Command line syntax
-
construct(String...)