Tsz-wo Sze created HDDS-12621:
---------------------------------
Summary: Change NodeStatus to value-based
Key: HDDS-12621
URL: https://issues.apache.org/jira/browse/HDDS-12621
Project: Apache Ozone
Issue Type: Improvement
Components: SCM
Reporter: Tsz-wo Sze
Assignee: Tsz-wo Sze
All the fields in NodeStatus won't be changed. We should change it to a
value-based class. The main changes are:
- adding valueOf(..) methods,
- hiding the constructors, and
- replace the constructor calls
We also add a CONSTANT_MAP for storing all the NodeStatus objects with
opStateExpiryEpochSeconds == 0.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]