APIdia Launch Partner
Top Description Fields Constructors Methods
sun.management.jdp

public abstract Class JdpGenericPacket

extends Object
implements JdpPacket
Class Inheritance
All Implemented Interfaces
sun.management.jdp.JdpPacket
Known Direct Subclasses
sun.management.jdp.JdpJmxPacket

JdpGenericPacket responsible to provide fields common for all Jdp packets

Field Summary

Modifier and TypeField and Description
private static final int
MAGIC

JDP protocol magic.

private static final short
PROTOCOL_VERSION

Current version of protocol.

Constructor Summary

AccessConstructor and Description
protected
JdpGenericPacket()

Default do-nothing constructor

Method Summary

Modifier and TypeMethod and Description
public static void
checkMagic(int
- value to validate
magic
)

Validate protocol header magic field

public static void
checkVersion(short
- value to validate
version
)

Validate protocol header version field

public static int
getMagic()

Returns: protocol magic

public static short
getVersion()

Returns: current protocol version

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAGICback to summary
private static final int MAGIC

JDP protocol magic. Magic allows a reader to quickly select JDP packets from a bunch of broadcast packets addressed to the same port and broadcast group. Any packet intended to be parsed by JDP client has to start from this magic.

PROTOCOL_VERSIONback to summary
private static final short PROTOCOL_VERSION

Current version of protocol. Any implementation of this protocol has to conform with the packet structure and the flow described in JEP-168

Constructor Detail

JdpGenericPacketback to summary
protected JdpGenericPacket()

Default do-nothing constructor

Method Detail

checkMagicback to summary
public static void checkMagic(int magic) throws JdpException

Validate protocol header magic field

Parameters
magic:int

- value to validate

checkVersionback to summary
public static void checkVersion(short version) throws JdpException

Validate protocol header version field

Parameters
version:short

- value to validate

getMagicback to summary
public static int getMagic()
Returns:int

protocol magic

getVersionback to summary
public static short getVersion()
Returns:short

current protocol version