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
The main method of this server.
The main method of this server.
Called prior to application exiting.
Called prior to application initialization.
Called after the main method.
Called before the main method.
Use the Finagle DefaultTimer
Use the Finagle DefaultTimer
By default this returns the global LoadedStatsReceiver instance.
By default this returns the global LoadedStatsReceiver instance. Take note when overriding this method to return the *same instance* on multiple calls otherwise you will get surprising stating behavior.
a StatsReceiver instance.
com.twitter.finagle.stats.LoadedStatsReceiver
Don't let applications opt-out
Don't let applications opt-out
A Java-friendly version of the TwitterServer.
In addition to TwitterServer, this abstract class defines its own Java-friendly lifecycle methods
onInit,preMain,postMainandonExitthat might be overridden in a concrete class.In order to launch the
AbstractTwitterServerinstance, themainmethod should be explicitly defined. It makes sense to define it within an inner classMainas shown below.The
Mainclass containing themainmethod may be launched viajava JavaServer$Main.