Packages

c

com.criteo.slab.app

WebServer

case class WebServer(pollingInterval: Int = 60, statsDays: Int = 730, routeGenerator: (StateService) ⇒ PartialFunction[Request, Future[Response]] = _ => PartialFunction.empty, executors: List[Executor[_]] = List.empty)(implicit ec: ExecutionContext) extends Product with Serializable

Slab Web server

pollingInterval

The polling interval in seconds

statsDays

Specifies how many last days of statistics to be retained

routeGenerator

A function that generates custom routes (should starts with "/api")

executors

The executors of the boards

ec

The execution context for the web server

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebServer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebServer(pollingInterval: Int = 60, statsDays: Int = 730, routeGenerator: (StateService) ⇒ PartialFunction[Request, Future[Response]] = _ => PartialFunction.empty, executors: List[Executor[_]] = List.empty)(implicit ec: ExecutionContext)

    pollingInterval

    The polling interval in seconds

    statsDays

    Specifies how many last days of statistics to be retained

    routeGenerator

    A function that generates custom routes (should starts with "/api")

    executors

    The executors of the boards

    ec

    The execution context for the web server

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(port: Int): Unit

    Start the web server

    Start the web server

    port

    The server's port

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def attach[L <: HList, O](board: Board[L])(implicit runBoard: Aux[RunBoard.type, Board[L], Context, Boolean, Future[BoardView]], fetchBoardHistory: Aux[FetchBoardHistory.type, Board[L], Instant, Instant, Future[Seq[(Long, BoardView)]]], fetchBoardHourlySlo: Aux[FetchBoardHourlySlo.type, Board[L], Instant, Instant, Future[Seq[(Long, Double)]]], store: Store[O]): WebServer

    Attach a board to the server

    Attach a board to the server

    board

    The board

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  15. val pollingInterval: Int
  16. val statsDays: Int
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def withRoutes(generator: (StateService) ⇒ PartialFunction[Request, Future[Response]]): WebServer

    generator

    A function that takes StateService and returns routes

    returns

    Web server with the created routes

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped