You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/12/01 18:15:00 UTC
[jira] [Created] (HDDS-11831) Finer-grained interface for dynamically registered subcommands
Attila Doroszlai created HDDS-11831:
---------------------------------------
Summary: Finer-grained interface for dynamically registered subcommands
Key: HDDS-11831
URL: https://issues.apache.org/jira/browse/HDDS-11831
Project: Apache Ozone
Issue Type: Improvement
Components: Ozone CLI
Reporter: Attila Doroszlai
Assignee: Attila Doroszlai
Dynamically registered subcommands all implement {{SubcommandWithParent}}. The parent command is identified by {{getParentType()}}.
Each top-level command ({{OzoneAdmin}}, {{OzoneDebug}}, etc.) has to load all implementors of {{SubcommandWithParent}}, only to discard most of them. This increases command startup latency, which is a minor problem for short-lived commands, e.g. {{ozone sh}}.
Finding children of a parent command is also a bit harder.
We could introduce more specific interfaces to limit the search scope of subcommands to be registered dynamically.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org