|
${header} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmeteor.dht.QueryMessage
The METEOR query message, which will be wrapped by a Resolver query message to send the query to other peers. QueryMessage contains information about the querying peer as well as the response to the query added by the responding peer this allows to maintain full state of the query once returned to the querying peer.
| Field Summary | |
static int |
ASYNCH
|
static int |
OVERLAY
|
static int |
SQUID
|
static int |
SYNCH
|
static int |
USER
|
| Constructor Summary | |
QueryMessage(java.io.InputStream stream)
Creates a query object by parsing the given input stream. |
|
QueryMessage(java.lang.String qt,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID)
Constructor with 4 params used for notify messages |
|
QueryMessage(java.lang.String qt,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID,
int o)
Constructor with 5 params |
|
QueryMessage(java.lang.String qt,
java.math.BigInteger cID,
java.lang.String jID)
Constructor with 3 params used for notify messages |
|
QueryMessage(java.lang.String qt,
int mod,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID)
Constructor with 5 params used for bootstrap messages |
|
QueryMessage(java.lang.String qt,
int mod,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID,
int own)
Constructor with 6 params used for bootstrap messages |
|
| Method Summary | |
net.jxta.document.Document |
getDocument(net.jxta.document.MimeMediaType asMimeType)
Returns a Document representation of the query. |
java.lang.String |
getJxtaResponse()
|
int |
getLevel()
|
int |
getMode()
|
int |
getOwner()
|
java.lang.String |
getQueryingJxtaID()
|
java.math.BigInteger |
getQueryingNodeID()
|
java.lang.String |
getQueryType()
|
java.lang.String |
getRespondingJxtaID()
|
java.math.BigInteger |
getRespondingNodeID()
|
java.math.BigInteger |
getResponse()
|
java.lang.String |
getSquidQuery()
|
java.lang.String |
getSquidResponse()
|
java.math.BigInteger |
getTarget()
|
void |
setJxtaResponse(java.lang.String r)
|
void |
setLevel(int l)
|
void |
setMode(int mod)
|
void |
setOwner(int o)
|
void |
setQueryType(java.lang.String type)
|
void |
setRespondingJxtaID(java.lang.String resp)
|
void |
setRespondingNodeID(java.math.BigInteger resp)
|
void |
setResponse(java.math.BigInteger resp)
|
void |
setSquidQuery(java.lang.String q)
|
void |
setSquidResponse(java.lang.String q)
|
java.lang.String |
toString()
Returns an XML String representation of the query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OVERLAY
public static final int USER
public static final int SQUID
public static final int SYNCH
public static final int ASYNCH
| Constructor Detail |
public QueryMessage(java.lang.String qt,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID,
int o)
qt - the Query Type : find_successor, predecessor or notifyt - the Target identifier in the querycID - the Overlay Identifier of the querying nodejID - the JxtaID identifier of the querying nodeo - the Owner of this query, USER or OVERLAY (system)
public QueryMessage(java.lang.String qt,
java.math.BigInteger cID,
java.lang.String jID)
qt - the Query Type : find_successor, predecessor or notifycID - the Overlay Identifier of the querying nodejID - the JxtaID identifier of the querying node
public QueryMessage(java.lang.String qt,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID)
qt - the Query Type : find_successor, predecessor or notifyt - the Target identifier in the querycID - the Overlay Identifier of the querying nodejID - the JxtaID identifier of the querying node
public QueryMessage(java.lang.String qt,
int mod,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID)
qt - the Query Type : find_successor, predecessor or notifyt - the Target identifier in the querycID - the Overlay Identifier of the querying nodejID - the JxtaID identifier of the querying nodemod - the type of message SYNCH or ASYNCH
public QueryMessage(java.lang.String qt,
int mod,
java.math.BigInteger t,
java.math.BigInteger cID,
java.lang.String jID,
int own)
qt - the Query Type : find_successor, predecessor or notifyt - the Target identifier in the querycID - the Overlay Identifier of the querying nodejID - the JxtaID identifier of the querying nodemod - the type of message SYNCH or ASYNCHown - the owner of the message, USER or OVERLAY
public QueryMessage(java.io.InputStream stream)
throws java.lang.Exception
stream - the InputStream source of the
query data.
java.lang.Exception - if the message can't be parsed
from the stream.| Method Detail |
public net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
throws java.lang.Exception
asMimeType - the desired MIME type
representation for the query.
java.lang.Exception - if the document can't be created.public java.lang.String getQueryType()
public void setQueryType(java.lang.String type)
public java.math.BigInteger getTarget()
public java.math.BigInteger getQueryingNodeID()
public java.lang.String getQueryingJxtaID()
public java.math.BigInteger getResponse()
public void setResponse(java.math.BigInteger resp)
public java.lang.String getJxtaResponse()
public void setJxtaResponse(java.lang.String r)
public java.math.BigInteger getRespondingNodeID()
public void setRespondingNodeID(java.math.BigInteger resp)
public java.lang.String getRespondingJxtaID()
public void setLevel(int l)
public int getLevel()
public void setRespondingJxtaID(java.lang.String resp)
public int getMode()
public void setMode(int mod)
public int getOwner()
public void setOwner(int o)
public void setSquidQuery(java.lang.String q)
public java.lang.String getSquidQuery()
public void setSquidResponse(java.lang.String q)
public java.lang.String getSquidResponse()
public java.lang.String toString()
|
${header} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||