Name
DiscoveryQueryMsg
Synopsis
A discovery query message is sent as the first step in the PDP. This message contains the following data values:
-
Threshold
The number of query responses requested
-
Type
The type of discovery (
PEER
,ADV
, orGROUP
)-
Adv
The advertisement of the peer initiating discovery
-
Attr
The name of the field being queried
-
Value
The value of the field being queried
public abstract class DiscoveryQueryMsg { // Public Constructors public DiscoveryQueryMsg(); // Public Class Methods public static String getAdvertisementType(); // Property Accessor Methods (by property name) public String getAttr(); public void setAttr(String attr); public int getDiscoveryType(); public void setDiscoveryType(int type); public String getPeerAdv(); public void setPeerAdv(String peer); public int getThreshold(); public void setThreshold(int threshold); public String getValue(); public void setValue(String value); // Public Instance Methods public abstract net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType) throws Exception; // Public Instance Fields public int type; }
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.