Package org.roboquant.server
Class WebServer
-
- All Implemented Interfaces:
public final class WebServerCreate a server, optional with credentials. The website will be protected using digest authentication if username and password are provided.
-
-
Constructor Summary
Constructors Constructor Description WebServer(Function1<WebServerConfig, Unit> configure)
-
Method Summary
Modifier and Type Method Description final BooleangetSecured()Returns true if this webserver is secured with credentials, false otherwise final Unitstop()Stop the web server and close all feeds final Unitrun(Roboquant roboquant, Feed feed, Timeframe timeframe, String name, TimeSpan warmup, Boolean paused)Start a new run and make core metrics available to the webserver. final UnitrunAsync(Roboquant roboquant, Feed feed, Timeframe timeframe, String name, TimeSpan warmup, Boolean paused)Start a new run and make core metrics available to the webserver. -
-
Constructor Detail
-
WebServer
WebServer(Function1<WebServerConfig, Unit> configure)
-
-
Method Detail
-
getSecured
final Boolean getSecured()
Returns true if this webserver is secured with credentials, false otherwise
-
run
final Unit run(Roboquant roboquant, Feed feed, Timeframe timeframe, String name, TimeSpan warmup, Boolean paused)
Start a new run and make core metrics available to the webserver. You can start multiple runs in the same webserver instance. Each run will have its unique name.
-
-
-
-