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 FailedLintRuleHandler extends Service[Request, Response]

    Permalink

    Renders failed lint rule alert in an html fragment onto /admin/failedlint.

  8. class HeapResourceHandler extends Service[Request, Response]

    Permalink
  9. 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.

  10. class LintHandler extends Service[Request, Response]

    Permalink

    UI for running the globally registered lint Rules.

  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 NoLoggingHandler extends Service[Request, Response]

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

    Permalink
  14. 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.

  15. class ReplyHandler extends Service[Request, Response]

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

    Permalink

    A handler designed to serve static resources.

  17. 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").

  18. 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").

  19. class ShutdownHandler extends Service[Request, Response]

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

    Permalink
  21. 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

  22. 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.

  23. class TracingHandler extends Service[Request, Response]

    Permalink
  24. class TunableHandler extends Service[Request, Response]

    Permalink

    In-memory Tunables can be manipulated using the endpoint /admin/tunables/.

    In-memory Tunables can be manipulated using the endpoint /admin/tunables/. PUT and DELETE requests to update the Tunables for a given id should be made to /admin/tunables/$id and have a JSON body in the same format as a Tunable configuration file:

    { "tunables": [ { "id" : "$id1", "value" : $value, "type" : "$class" }, { "id" : "$id2", "value" : $value, "type" : "$class" } ] }

    In the case of a PUT, these Tunables will be updated or added for the TunableMap corresponding to id. Note that this PUT request will *not* cause any existing Tunables to be removed.

    In the case of a DELETE, these Tunables will cleared from the TunableMap corresponding to id. The Tunables are keyed by "id" and "type"; the "value" for each of Tunables to delete can be any valid value for this Tunable. Because the value of a Tunable is the result of a composition of TunableMaps (see StandardTunableMap), deleting an in-memory Tunable will cause the value from the composition of the other TunableMaps to be used.

  25. trait TwitterHandler extends Service[Request, Response]

    Permalink

Value Members

  1. object HistogramQueryHandler

    Permalink
  2. object ResourceHandler extends JavaSingleton

    Permalink
  3. object TunableHandler

    Permalink

Ungrouped