Package

com.twitter.server

handler

Permalink

package handler

Visibility
  1. Public
  2. All

Type Members

  1. class AbortHandler extends Service[Request, Response]

    Permalink
  2. class AdminRedirectHandler extends Service[Request, Response]

    Permalink
  3. class AnnouncerHandler extends Service[Request, Response]

    Permalink
  4. class ClientRegistryHandler extends Service[Request, Response]

    Permalink

    Renders information about clients registered to Finagle's ClientRegistry in an html fragment.

    Renders information about clients registered to Finagle's ClientRegistry in an html fragment. Clients can be queried by passing in the client name as part of the uri (ex. "/admin/clients/myclient").

  5. class ContentionHandler extends Service[Request, Response]

    Permalink
  6. class DtabHandler extends Service[Request, Response]

    Permalink

    Dumps a simple string representation of the current Dtab.

    Dumps a simple string representation of the current Dtab.

    From the Dtab docs: A Dtab--short for delegation table--comprises a sequence of delegation rules. Together, these describe how to bind a path to an Addr.

  7. class HeapResourceHandler extends Service[Request, Response]

    Permalink
  8. class IndexHandler extends Service[Request, Response]

    Permalink

    A handler which outputs patterns as html anchors.

    A handler which outputs patterns as html anchors. By default, it outputs the patterns from the globals com.twitter.finagle.http.HttpMuxer and com.twitter.finagle.http.HttpMuxer.

  9. class LintHandler extends Service[Request, Response]

    Permalink

    UI for running the globally registered lint Rules.

  10. class LoggingHandler extends Service[Request, Response]

    Permalink

    An HTTP Service that exposes an application's com.twitter.logging.Logger configuration state and allows for runtime changes via HTTP query strings (?logger=<logger>&level=<level>).

  11. class MetricQueryHandler extends Service[Request, Response]

    Permalink

    A handler which accepts metrics queries via http query strings and returns json encoded metrics.

  12. class ProfileResourceHandler extends Service[Request, Response]

    Permalink
  13. class RegistryHandler extends Service[Request, Response]

    Permalink

    A com.twitter.finagle.Service for displaying the current state of the registry.

    A com.twitter.finagle.Service for displaying the current state of the registry.

    It's intended to be used as a handler for TwitterServer. As an admin endpoint, it displays the GlobalRegistry in JSON format.

    It takes an optional HTTP request parameter, "filter", which allows for simple filtering of the returned data.

    See the user guide for additional details.

  14. class ReplyHandler extends Service[Request, Response]

    Permalink
  15. class ResourceHandler extends Service[Request, Response]

    Permalink

    A handler designed to serve static resources.

  16. class ServerInfoHandler extends Service[Request, Response]

    Permalink

    A simple http service for serving up information pulled from a build.properties file.

    A simple http service for serving up information pulled from a build.properties file. The ClassLoader for the given object is used to load the build.properties file, which is first searched for relative to the given object's class's package (class-package-name/build.properties), and if not found there, then it is searched for with an absolute path ("/build.properties").

  17. class ServerRegistryHandler extends Service[Request, Response]

    Permalink

    Renders information about servers registered to Finagle's ServerRegistry in an html fragment.

    Renders information about servers registered to Finagle's ServerRegistry in an html fragment. Servers can be queried by passing in the server name as part of the uri (ex. "/admin/servers/myserver").

  18. class ShutdownHandler extends Service[Request, Response]

    Permalink
  19. class SummaryHandler extends Service[Request, Response]

    Permalink
  20. class ThreadsHandler extends Service[Request, Response]

    Permalink

    "Controller" for displaying the current state of threads.

    "Controller" for displaying the current state of threads.

    Possibilities for future endeavors in the web ui: - group threads by "similarity" - provide a mechanism for exp/imp - javascript control for searching within stacktraces

    See also

    ThreadsView

  21. class ToggleHandler extends Service[Request, Response]

    Permalink

    Admin UI for seeing and modifying the server's com.twitter.finagle.toggle.Toggles.

    Admin UI for seeing and modifying the server's com.twitter.finagle.toggle.Toggles.

    This handler should be available at "/admin/toggles".

    GET requests shows the current state of all StandardToggleMaps. Requests should be of the form "/admin/toggles{/$libraryName}{/$id}". Note that the library name and toggle id components are optional but do allow for filtering the output on those constraints. The output is JSON and it looks roughly like:

    {
      "libraries": [
        {
          "libraryName" : "$libraryName",
          "toggles" : [
            {
              "current" : {
                "id" : "$id",
                "fraction" : $fraction,
                "description" : "$description"
              },
              "components" : [
                {
                  "source" : "$ToggleMapSource",
                  "fraction" : $fraction
                },
                { <other sources here> }
              ]
            },
            { <other toggles here> }
          ]
        },
        { <other libraries here> }
      ]
    }

    There will be a hash for each library registered with com.twitter.finagle.toggle.StandardToggleMap. For each Toggle the "current" hash shows the current configuration while the "components" array has a hash per ToggleMap source. These are ordered by evaluation order and as such, sources earlier in a component array are used first.

    PUT requests allow for update/create of the mutable Toggles while DELETE requests allow for removal. These apply only to the ToggleMap.Mutable within a StandardToggleMap. Requests must be of the form "/admin/toggles/$libraryName/$id". For create and update, and an additional "fraction" request parameter must be set as well.

  22. class TracingHandler extends Service[Request, Response]

    Permalink
  23. trait TwitterHandler extends Service[Request, Response]

    Permalink

Value Members

  1. object HistogramQueryHandler

    Permalink
  2. object ResourceHandler extends JavaSingleton

    Permalink

Ungrouped