WebServer

com.netflix.atlas.pekko.WebServer
See theWebServer companion object
class WebServer(config: Config, classFactory: ClassFactory, registry: Registry, val system: ActorSystem, val materializer: Materializer) extends AbstractService, StrictLogging

Web server instance.

Value parameters

classFactory

Used to create instances of class names from the config file via the injector. The endpoints listed in atlas.pekko.endpoints will be created using this factory.

config

System configuration used for main server settings. In particular atlas.pekko.port is used for setting the server port.

registry

Metrics registry for reporting server stats.

system

Instance of the actor system.

Attributes

Companion
object
Graph
Supertypes
trait StrictLogging
class AbstractService
trait AutoCloseable
trait Service
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def actorSystem: ActorSystem

Inherited methods

def close(): Unit

Attributes

Inherited from:
AbstractService
def isHealthy(): Boolean

Attributes

Inherited from:
AbstractService
final def name(): String

Attributes

Inherited from:
AbstractService
@PostConstruct
final def start(): Unit

Attributes

Inherited from:
AbstractService
final def state(): State

Attributes

Inherited from:
AbstractService
final def stop(): Unit

Attributes

Inherited from:
AbstractService

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
StrictLogging

Implicits

Implicits

implicit val materializer: Materializer
implicit val system: ActorSystem