Class JDPPacket

java.lang.Object
org.openjdk.jmc.jdp.common.JDPPacket
All Implemented Interfaces:
Discoverable

public final class JDPPacket extends Object implements Discoverable
Class for delivering and retrieving the content.
  • Constructor Details

  • Method Details

    • getPayload

      public Map<String,String> getPayload()
      Specified by:
      getPayload in interface Discoverable
      Returns:
      the discovery payload.
    • getSessionId

      public String getSessionId()
      Specified by:
      getSessionId in interface Discoverable
      Returns:
      the identifier uniquely identifying the discoverable session. A new session UUID is generated whenever the JDP server is started.
    • getDiscoveryDataAsByteArray

      public byte[] getDiscoveryDataAsByteArray()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object