Class WebServer

  • All Implemented Interfaces:

    
    public final class WebServer
    
                        

    Create a server, optional with credentials. The website will be protected using digest authentication if username and password are provided.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Boolean secured
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean getSecured() Returns true if this webserver is secured with credentials, false otherwise
      final Unit stop() Stop the web server and close all feeds
      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.
      final Unit runAsync(Roboquant roboquant, Feed feed, Timeframe timeframe, String name, TimeSpan warmup, Boolean paused) Start a new run and make core metrics available to the webserver.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSecured

         final Boolean getSecured()

        Returns true if this webserver is secured with credentials, false otherwise

      • stop

         final Unit stop()

        Stop the web server and close all feeds

      • 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.

      • runAsync

         final Unit runAsync(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.