[
https://issues.apache.org/jira/browse/HDDS-15022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated HDDS-15022:
------------------------------
Description: After HDDS-14919, it is easy to get all the handler
interfaces. Then, we can get all the parameter types and return types of all
the Replicate methods. As a result, we may initialize the
ScmCodecFactory.classes map in the constructor and make in unmodifiable. (was:
We propose to add the new method below to return all the classes used in the
parameter types and the return type of an API. Then, we can avoid class lookup
at runtime.
{code:java}
// ScmInvoker
public abstract Iterable<Class<?>> getApiClasses();
{code}
Note that the implementation of it can be easily generated by
ScmInvokerCodeGenerator.)
Summary: Make ScmCodecFactory.classes map unmodifiable (was: Add a
getApiClasses() method to ScmInvoker)
> Make ScmCodecFactory.classes map unmodifiable
> ---------------------------------------------
>
> Key: HDDS-15022
> URL: https://issues.apache.org/jira/browse/HDDS-15022
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: SCM
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
>
> After HDDS-14919, it is easy to get all the handler interfaces. Then, we can
> get all the parameter types and return types of all the Replicate methods.
> As a result, we may initialize the ScmCodecFactory.classes map in the
> constructor and make in unmodifiable.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]