Defines a hook into an App.
Mix-in to include service-loaded hooks.
Indicates that a com.twitter.finagle.Resolver was not found for the
given name
using the FlagResolver.
Indicates that a com.twitter.finagle.Resolver was not found for the
given name
using the FlagResolver.
Resolvers are discovered via the com.twitter.server.resolverMap
Create a new hook for the given App.
Create a new hook for the given App. NewHooks are service-loaded.
An admin http server which serves requests outside the default finagle worker pool.
An admin http server which serves requests outside the default finagle worker pool. This server shadows vital endpoints (ex. stats) that are useful for diagnostics and should be available even if the server becomes overwhelmed.
Note, we don't serve all of /admin on a separate worker pool because it's important to serve certain admin endpoints in-band with the server. In particular, /health and /ping should be served in-band so that they are an accurate proxy of server health.
Supports the specification of a default close grace period from a flag.
Supports the specification of a default close grace period from a flag.
See com.twitter.app.App.defaultCloseGracePeriod for details.
(Since version 1.5.3) Closer behavior has been moved to com.twitter.app.App
Twitter Server
Provides a common configuration setup for internal Twitter servers based on com.twitter.app.App.
An HTTP server is bound to a configurable port (default: 9900) to which commands can be sent and information queried. Additional handlers can be provided by adding them to com.twitter.finagle.http.HttpMuxer.
Provided handlers
See com.twitter.server.TwitterServer
Configuration
The default port is set via defaultAdminPort. This can be overridden in the super class or set on the command line with -admin.port.