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 booleanequals(Object obj)byte[]getDiscoveryDataAsByteArray()Map<String,String>getPayload()StringgetSessionId()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
JDPPacket
public JDPPacket(byte[] data) throws CodingException- Throws:
CodingException
-
-
Method Detail
-
getPayload
public Map<String,String> getPayload()
- Specified by:
getPayloadin interfaceDiscoverable- Returns:
- the discovery payload.
-
getSessionId
public String getSessionId()
- Specified by:
getSessionIdin 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()
-
-