mirror of
https://github.com/ChronosX88/FreePastry.git
synced 2025-01-16 01:26:27 +00:00
1351 lines
62 KiB
HTML
1351 lines
62 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.6.0_07) on Fri Mar 13 20:01:06 CET 2009 -->
|
|
<TITLE>
|
|
RouteMessage (Rice Pastry - API Specifications)
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2009-03-13">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="RouteMessage (Rice Pastry - API Specifications)";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RouteMessage.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
Rice Pastry API</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../rice/pastry/routing/RequestRouteRow.html" title="class in rice.pastry.routing"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../rice/pastry/routing/RouteMessageNotification.html" title="interface in rice.pastry.routing"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?rice/pastry/routing/RouteMessage.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="RouteMessage.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
rice.pastry.routing</FONT>
|
|
<BR>
|
|
Class RouteMessage</H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">rice.pastry.messaging.Message</A>
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../rice/pastry/messaging/PRawMessage.html" title="class in rice.pastry.messaging">rice.pastry.messaging.PRawMessage</A>
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>rice.pastry.routing.RouteMessage</B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, <A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A>, <A HREF="../../../rice/p2p/commonapi/rawserialization/RawMessage.html" title="interface in rice.p2p.commonapi.rawserialization">RawMessage</A>, <A HREF="../../../rice/p2p/commonapi/rawserialization/RawSerializable.html" title="interface in rice.p2p.commonapi.rawserialization">RawSerializable</A>, <A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>RouteMessage</B><DT>extends <A HREF="../../../rice/pastry/messaging/PRawMessage.html" title="class in rice.pastry.messaging">PRawMessage</A><DT>implements java.io.Serializable, <A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
A route message contains a pastry message that has been wrapped to be sent to
|
|
another pastry node.
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>Version:</B></DT>
|
|
<DD>$Id: RouteMessage.java 4279 2008-07-15 11:13:33Z jeffh $</DD>
|
|
<DT><B>Author:</B></DT>
|
|
<DD>Andrew Ladd</DD>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#rice.pastry.routing.RouteMessage">Serialized Form</A></DL>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#internalMsg">internalMsg</A></B></CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#numRetries">numRetries</A></B></CODE>
|
|
|
|
<BR>
|
|
This is used by the Rerouter to keep track of how many attempted reroutes of the message.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static short</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#TYPE">TYPE</A></B></CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="fields_inherited_from_class_rice.pastry.messaging.Message"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Fields inherited from class rice.pastry.messaging.<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../rice/pastry/messaging/Message.html#DEFAULT_PRIORITY_LEVEL">DEFAULT_PRIORITY_LEVEL</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="fields_inherited_from_class_rice.p2p.commonapi.Message"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Fields inherited from interface rice.p2p.commonapi.<A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../rice/p2p/commonapi/Message.html#DEFAULT_PRIORITY">DEFAULT_PRIORITY</A>, <A HREF="../../../rice/p2p/commonapi/Message.html#HIGH_PRIORITY">HIGH_PRIORITY</A>, <A HREF="../../../rice/p2p/commonapi/Message.html#LOW_PRIORITY">LOW_PRIORITY</A>, <A HREF="../../../rice/p2p/commonapi/Message.html#LOWEST_PRIORITY">LOWEST_PRIORITY</A>, <A HREF="../../../rice/p2p/commonapi/Message.html#MAX_PRIORITY">MAX_PRIORITY</A>, <A HREF="../../../rice/p2p/commonapi/Message.html#MEDIUM_HIGH_PRIORITY">MEDIUM_HIGH_PRIORITY</A>, <A HREF="../../../rice/p2p/commonapi/Message.html#MEDIUM_LOW_PRIORITY">MEDIUM_LOW_PRIORITY</A>, <A HREF="../../../rice/p2p/commonapi/Message.html#MEDIUM_PRIORITY">MEDIUM_PRIORITY</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#RouteMessage(rice.pastry.Id, int, rice.pastry.NodeHandle, rice.p2p.commonapi.rawserialization.InputBuffer, byte, rice.pastry.PastryNode, rice.pastry.NodeHandle, byte)">RouteMessage</A></B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
int auxAddress,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> prev,
|
|
<A HREF="../../../rice/p2p/commonapi/rawserialization/InputBuffer.html" title="interface in rice.p2p.commonapi.rawserialization">InputBuffer</A> buf,
|
|
byte priority,
|
|
<A HREF="../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A> pn,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> destinationHandle,
|
|
byte serializeVersion)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, byte)">RouteMessage</A></B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
byte serializeVersion)</CODE>
|
|
|
|
<BR>
|
|
Constructor.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, rice.pastry.NodeHandle, byte)">RouteMessage</A></B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> firstHop,
|
|
byte serializeVersion)</CODE>
|
|
|
|
<BR>
|
|
Constructor.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, rice.pastry.NodeHandle, rice.pastry.routing.SendOptions, byte)">RouteMessage</A></B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> firstHop,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</CODE>
|
|
|
|
<BR>
|
|
Constructor.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, rice.pastry.routing.SendOptions, byte)">RouteMessage</A></B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</CODE>
|
|
|
|
<BR>
|
|
Constructor.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#RouteMessage(rice.pastry.Id, rice.pastry.messaging.PRawMessage, rice.pastry.NodeHandle, rice.pastry.routing.SendOptions, byte)">RouteMessage</A></B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/PRawMessage.html" title="class in rice.pastry.messaging">PRawMessage</A> msg,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> firstHop,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#RouteMessage(rice.pastry.NodeHandle, rice.pastry.messaging.Message, rice.pastry.routing.SendOptions, byte)">RouteMessage</A></B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> dest,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</CODE>
|
|
|
|
<BR>
|
|
Constructor.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../rice/pastry/routing/RouteMessage.html" title="class in rice.pastry.routing">RouteMessage</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#build(rice.p2p.commonapi.rawserialization.InputBuffer, byte, rice.pastry.PastryNode, rice.pastry.NodeHandle, byte)">build</A></B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/InputBuffer.html" title="interface in rice.p2p.commonapi.rawserialization">InputBuffer</A> buf,
|
|
byte priority,
|
|
<A HREF="../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A> pn,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> prev,
|
|
byte outputVersion)</CODE>
|
|
|
|
<BR>
|
|
version 1:
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ int auxAddress +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ bool hasHndle + // if it has a destinationHandle instead of an Id
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ Id target +
|
|
+ (only existis if the hasHandle boolean is false +
|
|
+ +
|
|
+ +
|
|
+ +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ NodeHandle destinationHandle +
|
|
+ (used if the RouteMessage is intended for a specific node) +
|
|
+ (only exists if the hasHandle boolean is true) +
|
|
...</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#cancel()">cancel</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getAuxAddress()">getAuxAddress</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getDestinationHandle()">getDestinationHandle</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/p2p/commonapi/Id.html" title="interface in rice.p2p.commonapi">Id</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getDestinationId()">getDestinationId</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the destination Id for this message</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> short</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getInternalType()">getInternalType</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getMessage()">getMessage</A></B>()</CODE>
|
|
|
|
<BR>
|
|
<B>Deprecated.</B> <I>use getMessage(MessageDeserializer)</I></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getMessage(rice.p2p.commonapi.rawserialization.MessageDeserializer)">getMessage</A></B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/MessageDeserializer.html" title="interface in rice.p2p.commonapi.rawserialization">MessageDeserializer</A> md)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getNextHop()">getNextHop</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/p2p/commonapi/NodeHandle.html" title="class in rice.p2p.commonapi">NodeHandle</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getNextHopHandle()">getNextHopHandle</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the next hop handle for this message</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getOptions()">getOptions</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get transmission options.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getPrevNode()">getPrevNode</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getPriority()">getPriority</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get priority</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getTarget()">getTarget</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the target node id of this message.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.util.Map<java.lang.String,java.lang.Object></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getTLOptions()">getTLOptions</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> short</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#getType()">getType</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#sendFailed(java.lang.Exception)">sendFailed</A></B>(java.lang.Exception e)</CODE>
|
|
|
|
<BR>
|
|
Return true if it notified a higher layer.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#sendSuccess(rice.pastry.NodeHandle)">sendSuccess</A></B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> nextHop)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#serialize(rice.p2p.commonapi.rawserialization.OutputBuffer)">serialize</A></B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/OutputBuffer.html" title="interface in rice.p2p.commonapi.rawserialization">OutputBuffer</A> buf)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setDestinationHandle(rice.pastry.NodeHandle)">setDestinationHandle</A></B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> handle)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setDestinationId(rice.p2p.commonapi.Id)">setDestinationId</A></B>(<A HREF="../../../rice/p2p/commonapi/Id.html" title="interface in rice.p2p.commonapi">Id</A> id)</CODE>
|
|
|
|
<BR>
|
|
Sets the destination Id for this message</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setMessage(rice.p2p.commonapi.Message)">setMessage</A></B>(<A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A> message)</CODE>
|
|
|
|
<BR>
|
|
Sets the internal message for this message</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setMessage(rice.p2p.commonapi.rawserialization.RawMessage)">setMessage</A></B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/RawMessage.html" title="interface in rice.p2p.commonapi.rawserialization">RawMessage</A> message)</CODE>
|
|
|
|
<BR>
|
|
Sets the internal message for this message
|
|
|
|
Does the same as setMessage(Message) but with better
|
|
performance, because it doesn't have to introspect
|
|
if the message is a RawMessage</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setNextHop(rice.pastry.NodeHandle)">setNextHop</A></B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> nh)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setNextHopHandle(rice.p2p.commonapi.NodeHandle)">setNextHopHandle</A></B>(<A HREF="../../../rice/p2p/commonapi/NodeHandle.html" title="class in rice.p2p.commonapi">NodeHandle</A> nextHop)</CODE>
|
|
|
|
<BR>
|
|
Sets the next hop handle for this message</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setPrevNode(rice.pastry.NodeHandle)">setPrevNode</A></B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> n)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setRouteMessageNotification(rice.pastry.routing.RouteMessageNotification)">setRouteMessageNotification</A></B>(<A HREF="../../../rice/pastry/routing/RouteMessageNotification.html" title="interface in rice.pastry.routing">RouteMessageNotification</A> notification)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setTLCancellable(rice.p2p.commonapi.Cancellable)">setTLCancellable</A></B>(<A HREF="../../../rice/p2p/commonapi/Cancellable.html" title="interface in rice.p2p.commonapi">Cancellable</A> c)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#setTLOptions(java.util.Map)">setTLOptions</A></B>(java.util.Map<java.lang.String,java.lang.Object> options)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#toString()">toString</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#unwrap()">unwrap</A></B>()</CODE>
|
|
|
|
<BR>
|
|
<B>Deprecated.</B> <I>use unwrap(MessageDeserializer)</I></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../rice/pastry/routing/RouteMessage.html#unwrap(rice.p2p.commonapi.rawserialization.MessageDeserializer)">unwrap</A></B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/MessageDeserializer.html" title="interface in rice.p2p.commonapi.rawserialization">MessageDeserializer</A> md)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_rice.pastry.messaging.Message"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class rice.pastry.messaging.<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../rice/pastry/messaging/Message.html#getDate()">getDate</A>, <A HREF="../../../rice/pastry/messaging/Message.html#getDestination()">getDestination</A>, <A HREF="../../../rice/pastry/messaging/Message.html#getSender()">getSender</A>, <A HREF="../../../rice/pastry/messaging/Message.html#getSenderId()">getSenderId</A>, <A HREF="../../../rice/pastry/messaging/Message.html#setPriority(int)">setPriority</A>, <A HREF="../../../rice/pastry/messaging/Message.html#setSender(rice.pastry.NodeHandle)">setSender</A>, <A HREF="../../../rice/pastry/messaging/Message.html#stamp(java.util.Date)">stamp</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="TYPE"><!-- --></A><H3>
|
|
TYPE</H3>
|
|
<PRE>
|
|
public static final short <B>TYPE</B></PRE>
|
|
<DL>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#rice.pastry.routing.RouteMessage.TYPE">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="internalMsg"><!-- --></A><H3>
|
|
internalMsg</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> <B>internalMsg</B></PRE>
|
|
<DL>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="numRetries"><!-- --></A><H3>
|
|
numRetries</H3>
|
|
<PRE>
|
|
public transient int <B>numRetries</B></PRE>
|
|
<DL>
|
|
<DD>This is used by the Rerouter to keep track of how many attempted reroutes of the message.
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, byte)"><!-- --></A><H3>
|
|
RouteMessage</H3>
|
|
<PRE>
|
|
public <B>RouteMessage</B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
byte serializeVersion)</PRE>
|
|
<DL>
|
|
<DD>Constructor.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>target</CODE> - this is id of the node the message will be routed to.<DD><CODE>msg</CODE> - the wrapped message.<DD><CODE>cred</CODE> - the credentials for the message.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, rice.pastry.routing.SendOptions, byte)"><!-- --></A><H3>
|
|
RouteMessage</H3>
|
|
<PRE>
|
|
public <B>RouteMessage</B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</PRE>
|
|
<DL>
|
|
<DD>Constructor.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>target</CODE> - this is id of the node the message will be routed to.<DD><CODE>msg</CODE> - the wrapped message.<DD><CODE>cred</CODE> - the credentials for the message.<DD><CODE>opts</CODE> - the send options for the message.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="RouteMessage(rice.pastry.NodeHandle, rice.pastry.messaging.Message, rice.pastry.routing.SendOptions, byte)"><!-- --></A><H3>
|
|
RouteMessage</H3>
|
|
<PRE>
|
|
public <B>RouteMessage</B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> dest,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</PRE>
|
|
<DL>
|
|
<DD>Constructor.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>dest</CODE> - the node this message will be routed to<DD><CODE>msg</CODE> - the wrapped message.<DD><CODE>cred</CODE> - the credentials for the message.<DD><CODE>opts</CODE> - the send options for the message.<DD><CODE>aux</CODE> - an auxilary address which the message after each hop.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, rice.pastry.NodeHandle, byte)"><!-- --></A><H3>
|
|
RouteMessage</H3>
|
|
<PRE>
|
|
public <B>RouteMessage</B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> firstHop,
|
|
byte serializeVersion)</PRE>
|
|
<DL>
|
|
<DD>Constructor.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>target</CODE> - this is id of the node the message will be routed to.<DD><CODE>msg</CODE> - the wrapped message.<DD><CODE>firstHop</CODE> - the nodeHandle of the first hop destination<DD><CODE>aux</CODE> - an auxilary address which the message after each hop.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="RouteMessage(rice.pastry.Id, rice.pastry.messaging.PRawMessage, rice.pastry.NodeHandle, rice.pastry.routing.SendOptions, byte)"><!-- --></A><H3>
|
|
RouteMessage</H3>
|
|
<PRE>
|
|
public <B>RouteMessage</B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/PRawMessage.html" title="class in rice.pastry.messaging">PRawMessage</A> msg,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> firstHop,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</PRE>
|
|
<DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="RouteMessage(rice.pastry.Id, rice.pastry.messaging.Message, rice.pastry.NodeHandle, rice.pastry.routing.SendOptions, byte)"><!-- --></A><H3>
|
|
RouteMessage</H3>
|
|
<PRE>
|
|
public <B>RouteMessage</B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
<A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> msg,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> firstHop,
|
|
<A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> opts,
|
|
byte serializeVersion)</PRE>
|
|
<DL>
|
|
<DD>Constructor.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>target</CODE> - this is id of the node the message will be routed to.<DD><CODE>msg</CODE> - the wrapped message.<DD><CODE>firstHop</CODE> - the nodeHandle of the first hop destination<DD><CODE>opts</CODE> - the send options for the message.<DD><CODE>aux</CODE> - an auxiliary address which the message after each hop.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="RouteMessage(rice.pastry.Id, int, rice.pastry.NodeHandle, rice.p2p.commonapi.rawserialization.InputBuffer, byte, rice.pastry.PastryNode, rice.pastry.NodeHandle, byte)"><!-- --></A><H3>
|
|
RouteMessage</H3>
|
|
<PRE>
|
|
public <B>RouteMessage</B>(<A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> target,
|
|
int auxAddress,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> prev,
|
|
<A HREF="../../../rice/p2p/commonapi/rawserialization/InputBuffer.html" title="interface in rice.p2p.commonapi.rawserialization">InputBuffer</A> buf,
|
|
byte priority,
|
|
<A HREF="../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A> pn,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> destinationHandle,
|
|
byte serializeVersion)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="getTarget()"><!-- --></A><H3>
|
|
getTarget</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> <B>getTarget</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the target node id of this message.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>the target node id.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getPrevNode()"><!-- --></A><H3>
|
|
getPrevNode</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> <B>getPrevNode</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setPrevNode(rice.pastry.NodeHandle)"><!-- --></A><H3>
|
|
setPrevNode</H3>
|
|
<PRE>
|
|
public void <B>setPrevNode</B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> n)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getNextHop()"><!-- --></A><H3>
|
|
getNextHop</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> <B>getNextHop</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setNextHop(rice.pastry.NodeHandle)"><!-- --></A><H3>
|
|
setNextHop</H3>
|
|
<PRE>
|
|
public void <B>setNextHop</B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> nh)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getPriority()"><!-- --></A><H3>
|
|
getPriority</H3>
|
|
<PRE>
|
|
public int <B>getPriority</B>()</PRE>
|
|
<DL>
|
|
<DD>Get priority
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/Message.html#getPriority()">getPriority</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../rice/pastry/messaging/Message.html#getPriority()">getPriority</A></CODE> in class <CODE><A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>the priority of this message.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="unwrap()"><!-- --></A><H3>
|
|
unwrap</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> <B>unwrap</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Deprecated.</B> <I>use unwrap(MessageDeserializer)</I>
|
|
<P>
|
|
<DD>The wrapped message.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>the wrapped message.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getOptions()"><!-- --></A><H3>
|
|
getOptions</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/routing/SendOptions.html" title="class in rice.pastry.routing">SendOptions</A> <B>getOptions</B>()</PRE>
|
|
<DL>
|
|
<DD>Get transmission options.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>the options.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toString()"><!-- --></A><H3>
|
|
toString</H3>
|
|
<PRE>
|
|
public java.lang.String <B>toString</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getDestinationId()"><!-- --></A><H3>
|
|
getDestinationId</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/p2p/commonapi/Id.html" title="interface in rice.p2p.commonapi">Id</A> <B>getDestinationId</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#getDestinationId()">RouteMessage</A></CODE></B></DD>
|
|
<DD>Returns the destination Id for this message
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#getDestinationId()">getDestinationId</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The destination Id</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getNextHopHandle()"><!-- --></A><H3>
|
|
getNextHopHandle</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/p2p/commonapi/NodeHandle.html" title="class in rice.p2p.commonapi">NodeHandle</A> <B>getNextHopHandle</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#getNextHopHandle()">RouteMessage</A></CODE></B></DD>
|
|
<DD>Returns the next hop handle for this message
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#getNextHopHandle()">getNextHopHandle</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The next hop</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getMessage()"><!-- --></A><H3>
|
|
getMessage</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A> <B>getMessage</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Deprecated.</B> <I>use getMessage(MessageDeserializer)</I>
|
|
<P>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#getMessage()">RouteMessage</A></CODE></B></DD>
|
|
<DD>Returns the enclosed message inside of this message
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#getMessage()">getMessage</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The enclosed message</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getMessage(rice.p2p.commonapi.rawserialization.MessageDeserializer)"><!-- --></A><H3>
|
|
getMessage</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A> <B>getMessage</B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/MessageDeserializer.html" title="interface in rice.p2p.commonapi.rawserialization">MessageDeserializer</A> md)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#getMessage(rice.p2p.commonapi.rawserialization.MessageDeserializer)">getMessage</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setDestinationId(rice.p2p.commonapi.Id)"><!-- --></A><H3>
|
|
setDestinationId</H3>
|
|
<PRE>
|
|
public void <B>setDestinationId</B>(<A HREF="../../../rice/p2p/commonapi/Id.html" title="interface in rice.p2p.commonapi">Id</A> id)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setDestinationId(rice.p2p.commonapi.Id)">RouteMessage</A></CODE></B></DD>
|
|
<DD>Sets the destination Id for this message
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setDestinationId(rice.p2p.commonapi.Id)">setDestinationId</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>id</CODE> - The destination Id</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setNextHopHandle(rice.p2p.commonapi.NodeHandle)"><!-- --></A><H3>
|
|
setNextHopHandle</H3>
|
|
<PRE>
|
|
public void <B>setNextHopHandle</B>(<A HREF="../../../rice/p2p/commonapi/NodeHandle.html" title="class in rice.p2p.commonapi">NodeHandle</A> nextHop)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setNextHopHandle(rice.p2p.commonapi.NodeHandle)">RouteMessage</A></CODE></B></DD>
|
|
<DD>Sets the next hop handle for this message
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setNextHopHandle(rice.p2p.commonapi.NodeHandle)">setNextHopHandle</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>nextHop</CODE> - The next hop for this handle</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMessage(rice.p2p.commonapi.Message)"><!-- --></A><H3>
|
|
setMessage</H3>
|
|
<PRE>
|
|
public void <B>setMessage</B>(<A HREF="../../../rice/p2p/commonapi/Message.html" title="interface in rice.p2p.commonapi">Message</A> message)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setMessage(rice.p2p.commonapi.Message)">RouteMessage</A></CODE></B></DD>
|
|
<DD>Sets the internal message for this message
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setMessage(rice.p2p.commonapi.Message)">setMessage</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The internal message</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setMessage(rice.p2p.commonapi.rawserialization.RawMessage)"><!-- --></A><H3>
|
|
setMessage</H3>
|
|
<PRE>
|
|
public void <B>setMessage</B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/RawMessage.html" title="interface in rice.p2p.commonapi.rawserialization">RawMessage</A> message)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setMessage(rice.p2p.commonapi.rawserialization.RawMessage)">RouteMessage</A></CODE></B></DD>
|
|
<DD>Sets the internal message for this message
|
|
|
|
Does the same as setMessage(Message) but with better
|
|
performance, because it doesn't have to introspect
|
|
if the message is a RawMessage
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html#setMessage(rice.p2p.commonapi.rawserialization.RawMessage)">setMessage</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/RouteMessage.html" title="interface in rice.p2p.commonapi">RouteMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The internal message</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="build(rice.p2p.commonapi.rawserialization.InputBuffer, byte, rice.pastry.PastryNode, rice.pastry.NodeHandle, byte)"><!-- --></A><H3>
|
|
build</H3>
|
|
<PRE>
|
|
public static <A HREF="../../../rice/pastry/routing/RouteMessage.html" title="class in rice.pastry.routing">RouteMessage</A> <B>build</B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/InputBuffer.html" title="interface in rice.p2p.commonapi.rawserialization">InputBuffer</A> buf,
|
|
byte priority,
|
|
<A HREF="../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A> pn,
|
|
<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> prev,
|
|
byte outputVersion)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>version 1:
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ int auxAddress +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ bool hasHndle + // if it has a destinationHandle instead of an Id
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ Id target +
|
|
+ (only existis if the hasHandle boolean is false +
|
|
+ +
|
|
+ +
|
|
+ +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ NodeHandle destinationHandle +
|
|
+ (used if the RouteMessage is intended for a specific node) +
|
|
+ (only exists if the hasHandle boolean is true) +
|
|
...
|
|
+ +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ NodeHandle prev +
|
|
+ (used to repair routing table during routing) +
|
|
+ +
|
|
...
|
|
+ +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ Internal Message +
|
|
+ (see below) +
|
|
+ +
|
|
|
|
version 0:
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ int auxAddress +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ Id target +
|
|
+ +
|
|
+ +
|
|
+ +
|
|
+ +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ NodeHandle prev +
|
|
+ (used to repair routing table during routing) +
|
|
+ +
|
|
...
|
|
+ +
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
+ Internal Message +
|
|
+ (see below) +
|
|
+ +
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>buf</CODE> -
|
|
<DT><B>Returns:</B><DD>
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="serialize(rice.p2p.commonapi.rawserialization.OutputBuffer)"><!-- --></A><H3>
|
|
serialize</H3>
|
|
<PRE>
|
|
public void <B>serialize</B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/OutputBuffer.html" title="interface in rice.p2p.commonapi.rawserialization">OutputBuffer</A> buf)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/rawserialization/RawSerializable.html#serialize(rice.p2p.commonapi.rawserialization.OutputBuffer)">serialize</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/rawserialization/RawSerializable.html" title="interface in rice.p2p.commonapi.rawserialization">RawSerializable</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="unwrap(rice.p2p.commonapi.rawserialization.MessageDeserializer)"><!-- --></A><H3>
|
|
unwrap</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/messaging/Message.html" title="class in rice.pastry.messaging">Message</A> <B>unwrap</B>(<A HREF="../../../rice/p2p/commonapi/rawserialization/MessageDeserializer.html" title="interface in rice.p2p.commonapi.rawserialization">MessageDeserializer</A> md)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getType()"><!-- --></A><H3>
|
|
getType</H3>
|
|
<PRE>
|
|
public short <B>getType</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/p2p/commonapi/rawserialization/RawMessage.html#getType()">getType</A></CODE> in interface <CODE><A HREF="../../../rice/p2p/commonapi/rawserialization/RawMessage.html" title="interface in rice.p2p.commonapi.rawserialization">RawMessage</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getAuxAddress()"><!-- --></A><H3>
|
|
getAuxAddress</H3>
|
|
<PRE>
|
|
public int <B>getAuxAddress</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getInternalType()"><!-- --></A><H3>
|
|
getInternalType</H3>
|
|
<PRE>
|
|
public short <B>getInternalType</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setDestinationHandle(rice.pastry.NodeHandle)"><!-- --></A><H3>
|
|
setDestinationHandle</H3>
|
|
<PRE>
|
|
public void <B>setDestinationHandle</B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> handle)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getDestinationHandle()"><!-- --></A><H3>
|
|
getDestinationHandle</H3>
|
|
<PRE>
|
|
public <A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> <B>getDestinationHandle</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTLOptions()"><!-- --></A><H3>
|
|
getTLOptions</H3>
|
|
<PRE>
|
|
public java.util.Map<java.lang.String,java.lang.Object> <B>getTLOptions</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setTLOptions(java.util.Map)"><!-- --></A><H3>
|
|
setTLOptions</H3>
|
|
<PRE>
|
|
public void <B>setTLOptions</B>(java.util.Map<java.lang.String,java.lang.Object> options)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setTLCancellable(rice.p2p.commonapi.Cancellable)"><!-- --></A><H3>
|
|
setTLCancellable</H3>
|
|
<PRE>
|
|
public void <B>setTLCancellable</B>(<A HREF="../../../rice/p2p/commonapi/Cancellable.html" title="interface in rice.p2p.commonapi">Cancellable</A> c)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="cancel()"><!-- --></A><H3>
|
|
cancel</H3>
|
|
<PRE>
|
|
public boolean <B>cancel</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setRouteMessageNotification(rice.pastry.routing.RouteMessageNotification)"><!-- --></A><H3>
|
|
setRouteMessageNotification</H3>
|
|
<PRE>
|
|
public void <B>setRouteMessageNotification</B>(<A HREF="../../../rice/pastry/routing/RouteMessageNotification.html" title="interface in rice.pastry.routing">RouteMessageNotification</A> notification)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="sendSuccess(rice.pastry.NodeHandle)"><!-- --></A><H3>
|
|
sendSuccess</H3>
|
|
<PRE>
|
|
public void <B>sendSuccess</B>(<A HREF="../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> nextHop)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="sendFailed(java.lang.Exception)"><!-- --></A><H3>
|
|
sendFailed</H3>
|
|
<PRE>
|
|
public boolean <B>sendFailed</B>(java.lang.Exception e)</PRE>
|
|
<DL>
|
|
<DD>Return true if it notified a higher layer.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>e</CODE> -
|
|
<DT><B>Returns:</B><DD></DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RouteMessage.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
Rice Pastry API</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../rice/pastry/routing/RequestRouteRow.html" title="class in rice.pastry.routing"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../rice/pastry/routing/RouteMessageNotification.html" title="interface in rice.pastry.routing"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?rice/pastry/routing/RouteMessage.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="RouteMessage.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
<i>Copyright © 2001-2005 - Rice Pastry.</i>
|
|
</BODY>
|
|
</HTML>
|