mirror of
https://github.com/ChronosX88/FreePastry.git
synced 2025-01-16 01:26:27 +00:00
744 lines
43 KiB
HTML
744 lines
43 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:01 CET 2009 -->
|
||
|
<TITLE>
|
||
|
BandwidthLimitingTransportLayer (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="BandwidthLimitingTransportLayer (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/BandwidthLimitingTransportLayer.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">
|
||
|
PREV CLASS
|
||
|
<A HREF="../../../rice/tutorial/transportlayer/DistTutorial.html" title="class in rice.tutorial.transportlayer"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../index.html?rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="BandwidthLimitingTransportLayer.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.tutorial.transportlayer</FONT>
|
||
|
<BR>
|
||
|
Class BandwidthLimitingTransportLayer<Identifier></H2>
|
||
|
<PRE>
|
||
|
java.lang.Object
|
||
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>rice.tutorial.transportlayer.BandwidthLimitingTransportLayer<Identifier></B>
|
||
|
</PRE>
|
||
|
<DL>
|
||
|
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><Identifier,java.nio.ByteBuffer>, <A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html" title="interface in org.mpisws.p2p.transport">TransportLayerCallback</A><Identifier,java.nio.ByteBuffer>, <A HREF="../../../rice/Destructable.html" title="interface in rice">Destructable</A></DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
<DL>
|
||
|
<DT><PRE>public class <B>BandwidthLimitingTransportLayer<Identifier></B><DT>extends java.lang.Object<DT>implements <A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><Identifier,java.nio.ByteBuffer>, <A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html" title="interface in org.mpisws.p2p.transport">TransportLayerCallback</A><Identifier,java.nio.ByteBuffer></DL>
|
||
|
</PRE>
|
||
|
|
||
|
<P>
|
||
|
<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>protected int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#bucket">bucket</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
When this goes to zero, don't send messages</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#BUCKET_SIZE">BUCKET_SIZE</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
The size of the bucket.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#BUCKET_TIME_LIMIT">BUCKET_TIME_LIMIT</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
How often the bucket is refilled.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected <A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#environment">environment</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
The environment</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected <A HREF="../../../org/mpisws/p2p/transport/ErrorHandler.html" title="interface in org.mpisws.p2p.transport">ErrorHandler</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#errorHandler">errorHandler</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected <A HREF="../../../rice/environment/logging/Logger.html" title="class in rice.environment.logging">Logger</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#logger">logger</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected <A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#tl">tl</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
The lower level transport layer.</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/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#BandwidthLimitingTransportLayer(org.mpisws.p2p.transport.TransportLayer, int, int, rice.environment.Environment)">BandwidthLimitingTransportLayer</A></B>(<A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> tl,
|
||
|
int bucketSize,
|
||
|
int bucketTimelimit,
|
||
|
<A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
To send 10K/second specify use
|
||
|
|
||
|
10240,1000</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> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#acceptMessages(boolean)">acceptMessages</A></B>(boolean b)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Toggle accepting incoming messages.</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/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#acceptSockets(boolean)">acceptSockets</A></B>(boolean b)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Toggle accepting new sockets.</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/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#destroy()">destroy</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#exampleA(int, rice.environment.Environment, rice.pastry.NodeIdFactory, int, int)">exampleA</A></B>(int bindport,
|
||
|
<A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
<A HREF="../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nidFactory,
|
||
|
int amt,
|
||
|
int time)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static <A HREF="../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#exampleB(int, rice.environment.Environment, rice.pastry.NodeIdFactory, int, int)">exampleB</A></B>(int bindport,
|
||
|
<A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
<A HREF="../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nidFactory,
|
||
|
int amt,
|
||
|
int time)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#getLocalIdentifier()">getLocalIdentifier</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
The local node.</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/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#incomingSocket(org.mpisws.p2p.transport.P2PSocket)">incomingSocket</A></B>(<A HREF="../../../org/mpisws/p2p/transport/P2PSocket.html" title="interface in org.mpisws.p2p.transport">P2PSocket</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> s)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Notification of a new socket.</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/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#messageReceived(Identifier, java.nio.ByteBuffer, java.util.Map)">messageReceived</A></B>(<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A> i,
|
||
|
java.nio.ByteBuffer m,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> options)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Called when a new message is received.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../org/mpisws/p2p/transport/SocketRequestHandle.html" title="interface in org.mpisws.p2p.transport">SocketRequestHandle</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#openSocket(Identifier, org.mpisws.p2p.transport.SocketCallback, java.util.Map)">openSocket</A></B>(<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A> i,
|
||
|
<A HREF="../../../org/mpisws/p2p/transport/SocketCallback.html" title="interface in org.mpisws.p2p.transport">SocketCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> deliverSocketToMe,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> options)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Open a socket to the Identifier</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../../org/mpisws/p2p/transport/MessageRequestHandle.html" title="interface in org.mpisws.p2p.transport">MessageRequestHandle</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#sendMessage(Identifier, java.nio.ByteBuffer, org.mpisws.p2p.transport.MessageCallback, java.util.Map)">sendMessage</A></B>(<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A> i,
|
||
|
java.nio.ByteBuffer m,
|
||
|
<A HREF="../../../org/mpisws/p2p/transport/MessageCallback.html" title="interface in org.mpisws.p2p.transport">MessageCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> deliverAckToMe,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> options)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Send the message to the identifier</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/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#setCallback(org.mpisws.p2p.transport.TransportLayerCallback)">setCallback</A></B>(<A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html" title="interface in org.mpisws.p2p.transport">TransportLayerCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> callback)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set the callback for incoming sockets/messages</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/tutorial/transportlayer/BandwidthLimitingTransportLayer.html#setErrorHandler(org.mpisws.p2p.transport.ErrorHandler)">setErrorHandler</A></B>(<A HREF="../../../org/mpisws/p2p/transport/ErrorHandler.html" title="interface in org.mpisws.p2p.transport">ErrorHandler</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> handler)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
To be notified of problems not related to an outgoing messaage/socket.</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, toString, 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="tl"><!-- --></A><H3>
|
||
|
tl</H3>
|
||
|
<PRE>
|
||
|
protected <A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> <B>tl</B></PRE>
|
||
|
<DL>
|
||
|
<DD>The lower level transport layer.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="environment"><!-- --></A><H3>
|
||
|
environment</H3>
|
||
|
<PRE>
|
||
|
protected <A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> <B>environment</B></PRE>
|
||
|
<DL>
|
||
|
<DD>The environment
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="logger"><!-- --></A><H3>
|
||
|
logger</H3>
|
||
|
<PRE>
|
||
|
protected <A HREF="../../../rice/environment/logging/Logger.html" title="class in rice.environment.logging">Logger</A> <B>logger</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="BUCKET_SIZE"><!-- --></A><H3>
|
||
|
BUCKET_SIZE</H3>
|
||
|
<PRE>
|
||
|
protected int <B>BUCKET_SIZE</B></PRE>
|
||
|
<DL>
|
||
|
<DD>The size of the bucket.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="BUCKET_TIME_LIMIT"><!-- --></A><H3>
|
||
|
BUCKET_TIME_LIMIT</H3>
|
||
|
<PRE>
|
||
|
protected int <B>BUCKET_TIME_LIMIT</B></PRE>
|
||
|
<DL>
|
||
|
<DD>How often the bucket is refilled.
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="bucket"><!-- --></A><H3>
|
||
|
bucket</H3>
|
||
|
<PRE>
|
||
|
protected int <B>bucket</B></PRE>
|
||
|
<DL>
|
||
|
<DD>When this goes to zero, don't send messages
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="errorHandler"><!-- --></A><H3>
|
||
|
errorHandler</H3>
|
||
|
<PRE>
|
||
|
protected <A HREF="../../../org/mpisws/p2p/transport/ErrorHandler.html" title="interface in org.mpisws.p2p.transport">ErrorHandler</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> <B>errorHandler</B></PRE>
|
||
|
<DL>
|
||
|
<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="BandwidthLimitingTransportLayer(org.mpisws.p2p.transport.TransportLayer, int, int, rice.environment.Environment)"><!-- --></A><H3>
|
||
|
BandwidthLimitingTransportLayer</H3>
|
||
|
<PRE>
|
||
|
public <B>BandwidthLimitingTransportLayer</B>(<A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> tl,
|
||
|
int bucketSize,
|
||
|
int bucketTimelimit,
|
||
|
<A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env)</PRE>
|
||
|
<DL>
|
||
|
<DD>To send 10K/second specify use
|
||
|
|
||
|
10240,1000
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>bucketSize</CODE> - bytes to send<DD><CODE>bucketTimelimit</CODE> - in millis</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="sendMessage(java.lang.Object,java.nio.ByteBuffer,org.mpisws.p2p.transport.MessageCallback,java.util.Map)"><!-- --></A><A NAME="sendMessage(Identifier, java.nio.ByteBuffer, org.mpisws.p2p.transport.MessageCallback, java.util.Map)"><!-- --></A><H3>
|
||
|
sendMessage</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../../../org/mpisws/p2p/transport/MessageRequestHandle.html" title="interface in org.mpisws.p2p.transport">MessageRequestHandle</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> <B>sendMessage</B>(<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A> i,
|
||
|
java.nio.ByteBuffer m,
|
||
|
<A HREF="../../../org/mpisws/p2p/transport/MessageCallback.html" title="interface in org.mpisws.p2p.transport">MessageCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> deliverAckToMe,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> options)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#sendMessage(Identifier, MessageType, org.mpisws.p2p.transport.MessageCallback, java.util.Map)">TransportLayer</A></CODE></B></DD>
|
||
|
<DD>Send the message to the identifier
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#sendMessage(Identifier, MessageType, org.mpisws.p2p.transport.MessageCallback, java.util.Map)">sendMessage</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the destination<DD><CODE>m</CODE> - the message<DD><CODE>deliverAckToMe</CODE> - layer dependent notification when the message is sent (can indicate placed on the wire, point-to-point acknowledgment, or end-to-end acknowledgement)<DD><CODE>options</CODE> - delivery options (don't source route, encrypt etc) (may not be respected if layer cannot provide service)
|
||
|
<DT><B>Returns:</B><DD>ability to cancel the message if no longer relevant</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="openSocket(java.lang.Object,org.mpisws.p2p.transport.SocketCallback,java.util.Map)"><!-- --></A><A NAME="openSocket(Identifier, org.mpisws.p2p.transport.SocketCallback, java.util.Map)"><!-- --></A><H3>
|
||
|
openSocket</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../../../org/mpisws/p2p/transport/SocketRequestHandle.html" title="interface in org.mpisws.p2p.transport">SocketRequestHandle</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> <B>openSocket</B>(<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A> i,
|
||
|
<A HREF="../../../org/mpisws/p2p/transport/SocketCallback.html" title="interface in org.mpisws.p2p.transport">SocketCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> deliverSocketToMe,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> options)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#openSocket(Identifier, org.mpisws.p2p.transport.SocketCallback, java.util.Map)">TransportLayer</A></CODE></B></DD>
|
||
|
<DD>Open a socket to the Identifier
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#openSocket(Identifier, org.mpisws.p2p.transport.SocketCallback, java.util.Map)">openSocket</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - who to open the socket to<DD><CODE>deliverSocketToMe</CODE> - the callback when the socket is opened<DD><CODE>options</CODE> - options on how to open the socket (don't source route, encrypt etc) (may not be respected if layer cannot provide service)
|
||
|
<DT><B>Returns:</B><DD>an object to cancel opening the socket if it takes to long, or is no longer relevant</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="setCallback(org.mpisws.p2p.transport.TransportLayerCallback)"><!-- --></A><H3>
|
||
|
setCallback</H3>
|
||
|
<PRE>
|
||
|
public void <B>setCallback</B>(<A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html" title="interface in org.mpisws.p2p.transport">TransportLayerCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer> callback)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#setCallback(org.mpisws.p2p.transport.TransportLayerCallback)">TransportLayer</A></CODE></B></DD>
|
||
|
<DD>Set the callback for incoming sockets/messages
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#setCallback(org.mpisws.p2p.transport.TransportLayerCallback)">setCallback</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>callback</CODE> - the callback for incoming sockets/messages</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="incomingSocket(org.mpisws.p2p.transport.P2PSocket)"><!-- --></A><H3>
|
||
|
incomingSocket</H3>
|
||
|
<PRE>
|
||
|
public void <B>incomingSocket</B>(<A HREF="../../../org/mpisws/p2p/transport/P2PSocket.html" title="interface in org.mpisws.p2p.transport">P2PSocket</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> s)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html#incomingSocket(org.mpisws.p2p.transport.P2PSocket)">TransportLayerCallback</A></CODE></B></DD>
|
||
|
<DD>Notification of a new socket.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html#incomingSocket(org.mpisws.p2p.transport.P2PSocket)">incomingSocket</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html" title="interface in org.mpisws.p2p.transport">TransportLayerCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the incoming socket
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.io.IOException</CODE></DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="acceptMessages(boolean)"><!-- --></A><H3>
|
||
|
acceptMessages</H3>
|
||
|
<PRE>
|
||
|
public void <B>acceptMessages</B>(boolean b)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#acceptMessages(boolean)">TransportLayer</A></CODE></B></DD>
|
||
|
<DD>Toggle accepting incoming messages. Useful in flow control if overwhelmed by incoming sockets.
|
||
|
Default: true
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#acceptMessages(boolean)">acceptMessages</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="acceptSockets(boolean)"><!-- --></A><H3>
|
||
|
acceptSockets</H3>
|
||
|
<PRE>
|
||
|
public void <B>acceptSockets</B>(boolean b)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#acceptSockets(boolean)">TransportLayer</A></CODE></B></DD>
|
||
|
<DD>Toggle accepting new sockets. Useful in flow control if overwhelmed by incoming sockets.
|
||
|
Default: true
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#acceptSockets(boolean)">acceptSockets</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getLocalIdentifier()"><!-- --></A><H3>
|
||
|
getLocalIdentifier</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A> <B>getLocalIdentifier</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#getLocalIdentifier()">TransportLayer</A></CODE></B></DD>
|
||
|
<DD>The local node.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#getLocalIdentifier()">getLocalIdentifier</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
|
||
|
<DT><B>Returns:</B><DD>The local node.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="setErrorHandler(org.mpisws.p2p.transport.ErrorHandler)"><!-- --></A><H3>
|
||
|
setErrorHandler</H3>
|
||
|
<PRE>
|
||
|
public void <B>setErrorHandler</B>(<A HREF="../../../org/mpisws/p2p/transport/ErrorHandler.html" title="interface in org.mpisws.p2p.transport">ErrorHandler</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>> handler)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#setErrorHandler(org.mpisws.p2p.transport.ErrorHandler)">TransportLayer</A></CODE></B></DD>
|
||
|
<DD>To be notified of problems not related to an outgoing messaage/socket. Or to be notified
|
||
|
if a callback isn't provided.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html#setErrorHandler(org.mpisws.p2p.transport.ErrorHandler)">setErrorHandler</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayer.html" title="interface in org.mpisws.p2p.transport">TransportLayer</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>handler</CODE> - to be notified of problems not related to a specific messaage/socket.</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="destroy()"><!-- --></A><H3>
|
||
|
destroy</H3>
|
||
|
<PRE>
|
||
|
public void <B>destroy</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../rice/Destructable.html#destroy()">destroy</A></CODE> in interface <CODE><A HREF="../../../rice/Destructable.html" title="interface in rice">Destructable</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="messageReceived(java.lang.Object,java.nio.ByteBuffer,java.util.Map)"><!-- --></A><A NAME="messageReceived(Identifier, java.nio.ByteBuffer, java.util.Map)"><!-- --></A><H3>
|
||
|
messageReceived</H3>
|
||
|
<PRE>
|
||
|
public void <B>messageReceived</B>(<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A> i,
|
||
|
java.nio.ByteBuffer m,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> options)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html#messageReceived(Identifier, MessageType, java.util.Map)">TransportLayerCallback</A></CODE></B></DD>
|
||
|
<DD>Called when a new message is received.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html#messageReceived(Identifier, MessageType, java.util.Map)">messageReceived</A></CODE> in interface <CODE><A HREF="../../../org/mpisws/p2p/transport/TransportLayerCallback.html" title="interface in org.mpisws.p2p.transport">TransportLayerCallback</A><<A HREF="../../../rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" title="type parameter in BandwidthLimitingTransportLayer">Identifier</A>,java.nio.ByteBuffer></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The node it is coming from<DD><CODE>m</CODE> - the message<DD><CODE>options</CODE> - describe how the message arrived (udp/tcp, encrypted etc)
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.io.IOException</CODE> - if there is a problem decoding the message</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="exampleA(int, rice.environment.Environment, rice.pastry.NodeIdFactory, int, int)"><!-- --></A><H3>
|
||
|
exampleA</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A> <B>exampleA</B>(int bindport,
|
||
|
<A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
<A HREF="../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nidFactory,
|
||
|
int amt,
|
||
|
int time)
|
||
|
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="exampleB(int, rice.environment.Environment, rice.pastry.NodeIdFactory, int, int)"><!-- --></A><H3>
|
||
|
exampleB</H3>
|
||
|
<PRE>
|
||
|
public static <A HREF="../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A> <B>exampleB</B>(int bindport,
|
||
|
<A HREF="../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
<A HREF="../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nidFactory,
|
||
|
int amt,
|
||
|
int time)
|
||
|
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>
|
||
|
<!-- ========= 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/BandwidthLimitingTransportLayer.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">
|
||
|
PREV CLASS
|
||
|
<A HREF="../../../rice/tutorial/transportlayer/DistTutorial.html" title="class in rice.tutorial.transportlayer"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../index.html?rice/tutorial/transportlayer/BandwidthLimitingTransportLayer.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="BandwidthLimitingTransportLayer.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>
|