Class Links
java.lang.Object
org.apache.geode.management.configuration.Links
- All Implemented Interfaces:
Serializable
this keeps all HATEOAS links related to a particular configuration object.
only the map (links) is serialized back to the client, nothing get de-serialized.
Implementation Note: Serializable Interface
This class implements Serializable because it is used as a field in
ClusterManagementResult, which must be serializable
for DUnit distributed testing. When ClusterManagementResult objects are passed between JVMs
in DUnit tests, all fields in the object graph must also be serializable.
Serialization Safety:
- All fields are inherently serializable: String primitives and HashMap (which is Serializable)
- The links field uses HashMap<String, String> which is fully serializable
- No transient fields or complex objects that could break serialization
This change enables ClusterManagementResult to be fully serializable for cross-JVM communication in DUnit tests without affecting production functionality.
- See Also:
-
Field Details
-
HREF_PREFIX
- See Also:
-
URI_CONTEXT
- See Also:
-
URI_VERSION
- See Also:
-
-
Constructor Details
-
Links
public Links() -
Links
-
-
Method Details
-
getSelf
-
setSelf
-
getList
-
setList
-
addLink
adds the additional HATEOAS links- Parameters:
key- the key at which to add the URLurl- the URL to be added
-
anySetter
-
getLinks
-