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
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. abstract class AbstractTwitterServer extends TwitterServer

    A Java-friendly version of the TwitterServer.

  2. trait Admin extends AnyRef

    Defines many of the default /admin/ HTTP routes.

  3. trait AdminHttpServer extends AnyRef

  4. trait EventSink extends AnyRef

    Captures events from a logger.

  5. class FlagAnnouncer extends Announcer

  6. class FlagResolver extends Resolver

  7. trait Hook extends AnyRef

    Defines a hook into an App.

  8. trait Hooks extends AnyRef

    Mix-in to include service-loaded hooks.

  9. trait Lifecycle extends AnyRef

  10. trait Linters extends AnyRef

    Registers any global linter rules.

  11. trait LogFormat extends AnyRef

  12. class NamedResolverNotFoundException extends Exception

    Indicates that a com.twitter.finagle.Resolver was not found for the given name using the FlagResolver.

  13. trait NewHook extends (App) ⇒ Hook

    Create a new hook for the given App.

  14. trait ShadowAdminServer extends AnyRef

    An admin http server which serves requests outside the default finagle worker pool.

  15. trait Stats extends AnyRef

  16. trait TwitterServer extends App with Linters with Logging with EventSink with LogFormat with Hooks with AdminHttpServer with Admin with Lifecycle with Stats

    Twitter Server defines a template from which servers at Twitter are built.

  17. trait Closer extends AnyRef

    Supports the specification of a default close grace period from a flag.

Value Members

  1. object Admin

  2. object AdminHttpServer

  3. object EventSink

  4. object Lifecycle

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

  6. package handler

  7. package lint

  8. object promoteBeforeServing extends GlobalFlag[Boolean]

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

  10. package util

  11. package view

Inherited from AnyRef

Inherited from Any

Ungrouped