Skip to content

admin: extract more handlers to separate classes #11258

Merged
mattklein123 merged 6 commits intoenvoyproxy:masterfrom
rulex123:admin-handlers-ref
May 20, 2020
Merged

admin: extract more handlers to separate classes #11258
mattklein123 merged 6 commits intoenvoyproxy:masterfrom
rulex123:admin-handlers-ref

Conversation

@rulex123
Copy link
Copy Markdown
Contributor

@rulex123 rulex123 commented May 19, 2020

Description: more refactoring for #5505. In this specific PR:

  • extract server command handlers to newly created ServerCmdHandler class
  • extract server info handlers to newly created ServerInfoHandler class
  • extract mutex stats handler to StatsHandler class

Risk Level: low
Testing: pre-existing tests
Docs Changes: n/a
Release Notes: n/a

rulex123 added 4 commits May 18, 2020 16:47
Signed-off-by: Erica Manno <erica.manno@gmail.com>
Signed-off-by: Erica Manno <erica.manno@gmail.com>
Signed-off-by: Erica Manno <erica.manno@gmail.com>
Signed-off-by: Erica Manno <erica.manno@gmail.com>
Comment on lines -289 to -294
Http::Code handlerCpuProfiler(absl::string_view path_and_query,
Http::ResponseHeaderMap& response_headers,
Buffer::Instance& response, AdminStream&);
Http::Code handlerHeapProfiler(absl::string_view path_and_query,
Http::ResponseHeaderMap& response_headers,
Buffer::Instance& response, AdminStream&);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were accidentally left behind when I worked on #11087; cleaning up now.

Http::Code handlerMemory(absl::string_view path_and_query,
Http::ResponseHeaderMap& response_headers, Buffer::Instance& response,
AdminStream&);
Http::Code handlerMain(const std::string& path, Buffer::Instance& response, AdminStream&);
Copy link
Copy Markdown
Contributor Author

@rulex123 rulex123 May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code (i.e. handlerMain) is dead I think, so I am cleaning up.

rulex123 added 2 commits May 19, 2020 11:54
Signed-off-by: Erica Manno <erica.manno@gmail.com>
Signed-off-by: Erica Manno <erica.manno@gmail.com>
@jmarantz jmarantz changed the title [admin] extract more handlers to separate classes admin: extract more handlers to separate classes May 19, 2020
@jmarantz jmarantz self-assigned this May 19, 2020
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

@jmarantz
Copy link
Copy Markdown
Contributor

@mattklein123 do you want to have a look at this one?

@mattklein123 mattklein123 self-assigned this May 20, 2020
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!!

@mattklein123 mattklein123 merged commit a5f2f12 into envoyproxy:master May 20, 2020
spenceral added a commit to spenceral/envoy that referenced this pull request May 20, 2020
Signed-off-by: Spencer Lewis <slewis@squareup.com>

* master: (33 commits)
  docs: break release notes into categories (envoyproxy#11217)
  admin: extract more handlers to separate classes  (envoyproxy#11258)
  Load reporting service documentation  (envoyproxy#10962)
  http: testing 304-with-body behavior (envoyproxy#11261)
  fixing typos and breaking link issues (envoyproxy#11270)
  devex: initial commit of devcontainer setup (envoyproxy#11207)
  security: update policy for fix/disclosure SLOs. (envoyproxy#11243)
  http: fixing CONNECT to not advertise chunk encoding. (envoyproxy#11245)
  docs: update upstream network filters description (envoyproxy#11231)
  deps: update datadog tracer to v1.1.5 (envoyproxy#11253)
  test: Fix missing instantiation of parameterized tests. (envoyproxy#11247)
  fix go mirror when no changes (envoyproxy#11249)
  docs: host_rewrite -> host_rewrite_literal (envoyproxy#11229)
  wasm: update V8 to v8.3.110.9. (envoyproxy#11233)
  tls: update BoringSSL to 107c03cf (4103). (envoyproxy#11232)
  bazelci: always exclude nocoverage tag in coverage config (envoyproxy#11226)
  ci: save api revision in go-control-plane (envoyproxy#11220)
  build: fix cares build (envoyproxy#11225)
  stats: Pre-allocate codec stats for http1 and http2 (envoyproxy#11135)
  api: manifest based edge default documentation. (envoyproxy#11151)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants