com.twitter

server

package server

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.

object MyServer extends TwitterServer {
  def main() {
    // start my service
  }
}

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. server
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Admin extends AnyRef

  2. trait AdminHttpServer extends AnyRef

  3. class FlagAnnouncer extends Announcer

  4. class FlagResolver extends Resolver

  5. trait Hook extends AnyRef

    Defines a hook into an App.

  6. trait Hooks extends AnyRef

    Mix-in to include service-loaded hooks.

  7. trait Lifecycle extends AnyRef

  8. trait LogFormat extends AnyRef

  9. class NamedResolverNotFoundException extends Exception

    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

  10. trait NewHook extends (App) ⇒ Hook

    Create a new hook for the given App.

    Create a new hook for the given App. NewHooks are service-loaded.

  11. trait ShadowAdminServer extends AnyRef

    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.

  12. trait Stats extends AnyRef

  13. trait TwitterServer extends App with Logging with LogFormat with Hooks with AdminHttpServer with Admin with Lifecycle with Stats

  14. trait Closer extends AnyRef

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 1.5.3) Closer behavior has been moved to com.twitter.app.App

Value Members

  1. object AdminHttpServer

  2. object Lifecycle

  3. object announcerMap extends GlobalFlag[Map[String, String]]

  4. package handler

  5. object promoteBeforeServing extends GlobalFlag[Boolean]

  6. object resolverMap extends GlobalFlag[Map[String, String]]

  7. package util

  8. package view

Inherited from AnyRef

Inherited from Any

Ungrouped