Tsz-wo Sze created HDDS-12532:
---------------------------------

             Summary: Support only Enum in ContainerAttribute
                 Key: HDDS-12532
                 URL: https://issues.apache.org/jira/browse/HDDS-12532
             Project: Apache Ozone
          Issue Type: Improvement
          Components: SCM
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


{code}
//ContainerStateMap
  private final ContainerAttribute<LifeCycleState> lifeCycleStateMap;
  private final ContainerAttribute<String> ownerMap;
  private final ContainerAttribute<ReplicationConfig> repConfigMap;
  private final ContainerAttribute<ReplicationType> typeMap;
{code}

ContainerStateMap has four ContainerAttribute maps above.  However, the 
ownerMap and the repConfigMap are unused.  If these two maps are removed, the 
ContainerAttribute generic type T can be restricted to Enum for simplicity and 
efficiency.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to