The address to which the Admin HTTP server is bound.
The address to which the Admin HTTP server is bound.
This method allows for further configuration of the http server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,
This method allows for further configuration of the http server for parameters not exposed by this trait or for overriding defaults provided herein, e.g.,
override def configureAdminHttpServer(server: Http.Server): Http.Server = server.withMonitor(myMonitor)
- the com.twitter.finagle.Http.Server to configure.
a configured Http.Server.
Name used for registration in the com.twitter.util.registry.Library
Name used for registration in the com.twitter.util.registry.Library
library name to register in the Library registry.
Exposed for testing
Exposed for testing
Use the Finagle DefaultTimer
Use the Finagle DefaultTimer
This returns the global LoadedStatsReceiver instance.
This returns the global LoadedStatsReceiver instance.
a StatsReceiver instance.
com.twitter.finagle.stats.LoadedStatsReceiver
Don't let applications opt-out
Don't let applications opt-out
Twitter Server defines a template from which servers at Twitter are built. It provides common application components such as an administrative HTTP server, tracing, stats, etc. These features are wired in correctly for use in production at Twitter.
For DI (Dependency Injection) Twitter Server uses self-typed Scala traits that might be mixed in the
TwitterServer
trait. The common practice is to define self-typed traits against the App trait as shown below.Note: the Slf4jBridge trait MUST be defined first to properly bridge legacy logging APIs.