java.lang.Object
org.apache.geode.management.configuration.Links
All Implemented Interfaces:
Serializable

public class Links extends Object implements 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

  • Constructor Details

    • Links

      public Links()
    • Links

      public Links(String id, String listUri)
  • Method Details

    • getSelf

      public String getSelf()
    • setSelf

      public void setSelf(String self)
    • getList

      public String getList()
    • setList

      public void setList(String list)
    • addLink

      public void addLink(String key, String url)
      adds the additional HATEOAS links
      Parameters:
      key - the key at which to add the URL
      url - the URL to be added
    • anySetter

      public void anySetter(String key, String url)
    • getLinks

      public Map<String,String> getLinks()