Package org.openjdk.jmc.jdp.common
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getDiscoveryDataAsByteArray()
Map<String,String>
getPayload()
String
getSessionId()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
JDPPacket
public JDPPacket(byte[] data) throws CodingException
- Throws:
CodingException
-
-
Method Detail
-
getPayload
public Map<String,String> getPayload()
- Specified by:
getPayload
in interfaceDiscoverable
- Returns:
- the discovery payload.
-
getSessionId
public String getSessionId()
- Specified by:
getSessionId
in interfaceDiscoverable
- Returns:
- the identifier uniquely identifying the discoverable session. A new session UUID is generated whenever the JDP server is started.
-
getDiscoveryDataAsByteArray
public byte[] getDiscoveryDataAsByteArray()
-
-