mirror of
https://github.com/ChronosX88/FreePastry.git
synced 2025-01-16 17:46:26 +00:00
865 lines
61 KiB
HTML
865 lines
61 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:28 CET 2009 -->
|
||
|
<TITLE>
|
||
|
InternetPastryNodeFactory (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="InternetPastryNodeFactory (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/InternetPastryNodeFactory.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
|
||
|
NEXT CLASS</FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../../index.html?rice/pastry/socket/internet/InternetPastryNodeFactory.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="InternetPastryNodeFactory.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: <A HREF="#nested_classes_inherited_from_class_rice.pastry.socket.SocketPastryNodeFactory">NESTED</A> | <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.socket.internet</FONT>
|
||
|
<BR>
|
||
|
Class InternetPastryNodeFactory</H2>
|
||
|
<PRE>
|
||
|
java.lang.Object
|
||
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">rice.pastry.PastryNodeFactory</A>
|
||
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html" title="class in rice.pastry.transport">rice.pastry.transport.TransportPastryNodeFactory</A>
|
||
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html" title="class in rice.pastry.socket">rice.pastry.socket.SocketPastryNodeFactory</A>
|
||
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html" title="class in rice.pastry.socket.nat.rendezvous">rice.pastry.socket.nat.rendezvous.RendezvousSocketPastryNodeFactory</A>
|
||
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>rice.pastry.socket.internet.InternetPastryNodeFactory</B>
|
||
|
</PRE>
|
||
|
<HR>
|
||
|
<DL>
|
||
|
<DT><PRE>public class <B>InternetPastryNodeFactory</B><DT>extends <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html" title="class in rice.pastry.socket.nat.rendezvous">RendezvousSocketPastryNodeFactory</A></DL>
|
||
|
</PRE>
|
||
|
|
||
|
<P>
|
||
|
This Factory is designed for real deployments (with NATs).
|
||
|
|
||
|
Optimized for the following use cases (in order)
|
||
|
1) Internet Routable, No firewall
|
||
|
2) Internet Routable, Firewall (not NAT)
|
||
|
3) NAT: User Configured Port Forwarding
|
||
|
4) NAT: UPnP
|
||
|
5) NAT: No port forwarding
|
||
|
<P>
|
||
|
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Author:</B></DT>
|
||
|
<DD>Jeff Hoye</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<P>
|
||
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||
|
|
||
|
<A NAME="nested_class_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>Nested Class Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="nested_classes_inherited_from_class_rice.pastry.socket.SocketPastryNodeFactory"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class rice.pastry.socket.<A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html" title="class in rice.pastry.socket">SocketPastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.TLBootstrapper.html" title="class in rice.pastry.socket">SocketPastryNodeFactory.TLBootstrapper</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.TransLiveness.html" title="interface in rice.pastry.socket">SocketPastryNodeFactory.TransLiveness</A><<A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.TransLiveness.html" title="type parameter in SocketPastryNodeFactory.TransLiveness">Identifier</A>,<A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.TransLiveness.html" title="type parameter in SocketPastryNodeFactory.TransLiveness">MessageType</A>>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.TransLivenessProximity.html" title="interface in rice.pastry.socket">SocketPastryNodeFactory.TransLivenessProximity</A><<A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.TransLivenessProximity.html" title="type parameter in SocketPastryNodeFactory.TransLivenessProximity">Identifier</A>,<A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.TransLivenessProximity.html" title="type parameter in SocketPastryNodeFactory.TransLivenessProximity">MessageType</A>></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- =========== 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>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#ALWAYS">ALWAYS</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
NAT policy variables</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#BOOT">BOOT</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Don't check bootstrap nodes</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#FAIL">FAIL</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#NEVER">NEVER</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#OVERWRITE">OVERWRITE</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#PREFIX_MATCH">PREFIX_MATCH</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#RENDEZVOUS">RENDEZVOUS</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#USE_DIFFERENT_PORT">USE_DIFFERENT_PORT</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_rice.pastry.socket.nat.rendezvous.RendezvousSocketPastryNodeFactory"><!-- --></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.socket.nat.rendezvous.<A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html" title="class in rice.pastry.socket.nat.rendezvous">RendezvousSocketPastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#CONTACT_STATE">CONTACT_STATE</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#random">random</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#RENDEZVOUS_CONTACT_DIRECT_STRATEGY">RENDEZVOUS_CONTACT_DIRECT_STRATEGY</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#RENDEZVOUS_STRATEGY">RENDEZVOUS_STRATEGY</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#RENDEZVOUS_TL">RENDEZVOUS_TL</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#SIMULATE_FIREWALL">SIMULATE_FIREWALL</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_rice.pastry.socket.SocketPastryNodeFactory"><!-- --></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.socket.<A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html" title="class in rice.pastry.socket">SocketPastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#findFireWallPolicy">findFireWallPolicy</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#IP_SERVICE">IP_SERVICE</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#localAddress">localAddress</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#MULTI_ADDRESS_STRATEGY">MULTI_ADDRESS_STRATEGY</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#MULTI_INET_TL">MULTI_INET_TL</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#NETWORK_INFO_NODE_HANDLE_INDEX">NETWORK_INFO_NODE_HANDLE_INDEX</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#nidFactory">nidFactory</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#NODE_HANDLE_FACTORY">NODE_HANDLE_FACTORY</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#PASTRY_MAGIC_NUMBER">PASTRY_MAGIC_NUMBER</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#PRIORITY_TL">PRIORITY_TL</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#PROXY_ADDRESS">PROXY_ADDRESS</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#testFireWallPolicy">testFireWallPolicy</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_rice.pastry.transport.TransportPastryNodeFactory"><!-- --></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.transport.<A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html" title="class in rice.pastry.transport">TransportPastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html#leafSetMaintFreq">leafSetMaintFreq</A>, <A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html#routeSetMaintFreq">routeSetMaintFreq</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_rice.pastry.PastryNodeFactory"><!-- --></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.<A HREF="../../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/PastryNodeFactory.html#environment">environment</A>, <A HREF="../../../../rice/pastry/PastryNodeFactory.html#logger">logger</A>, <A HREF="../../../../rice/pastry/PastryNodeFactory.html#lSetSize">lSetSize</A>, <A HREF="../../../../rice/pastry/PastryNodeFactory.html#rtBase">rtBase</A>, <A HREF="../../../../rice/pastry/PastryNodeFactory.html#rtMax">rtMax</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/socket/internet/InternetPastryNodeFactory.html#InternetPastryNodeFactory(rice.pastry.NodeIdFactory, java.net.InetAddress, int, rice.environment.Environment, rice.pastry.socket.nat.NATHandler, java.util.Collection, java.net.InetAddress[])">InternetPastryNodeFactory</A></B>(<A HREF="../../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nf,
|
||
|
java.net.InetAddress bindAddress,
|
||
|
int startPort,
|
||
|
<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
<A HREF="../../../../rice/pastry/socket/nat/NATHandler.html" title="interface in rice.pastry.socket.nat">NATHandler</A> handler,
|
||
|
java.util.Collection<java.net.InetSocketAddress> probeAddresses,
|
||
|
java.net.InetAddress[] externalAddresses)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
May block for more than a second to determine network information.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#InternetPastryNodeFactory(rice.pastry.NodeIdFactory, int, rice.environment.Environment)">InternetPastryNodeFactory</A></B>(<A HREF="../../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nf,
|
||
|
int startPort,
|
||
|
<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</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>protected void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#findExternalAddress(rice.pastry.Id, java.net.InetSocketAddress, rice.Continuation)">findExternalAddress</A></B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Finds the external address, calls openFirewallPort()</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#findExternalAddressHelper(rice.pastry.Id, java.net.InetSocketAddress, rice.Continuation, java.util.Collection)">findExternalAddressHelper</A></B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe,
|
||
|
java.util.Collection<java.net.InetSocketAddress> myProbeAddresses)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#findExternalAddressIfNecessary(java.net.InetAddress)">findExternalAddressIfNecessary</A></B>(java.net.InetAddress address)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Sets/Verifies externalAddresses
|
||
|
|
||
|
Return true if all is well.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#findExternalNodes(rice.pastry.Id, java.net.InetSocketAddress, java.util.Collection, rice.Continuation)">findExternalNodes</A></B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
java.util.Collection<java.net.InetSocketAddress> nonInternetRoutable,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Probe the internalAddresses to get more externalAddresses, then call findExternalAddressHelper</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected <A HREF="../../../../rice/pastry/socket/nat/NATHandler.html" title="interface in rice.pastry.socket.nat">NATHandler</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#getDefaultNatHandler(rice.environment.Environment, java.net.InetAddress)">getDefaultNatHandler</A></B>(<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
java.net.InetAddress localAddress)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Return a NATHandler</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/pastry/socket/internet/InternetPastryNodeFactory.html#getFireWallPolicyVariable(java.lang.String)">getFireWallPolicyVariable</A></B>(java.lang.String key)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#isInternetRoutable(org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress)">isInternetRoutable</A></B>(<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#newNodeSelector(rice.pastry.Id, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, rice.Continuation, java.util.Map)">newNodeSelector</A></B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> initialVars)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
This is where the action takes place.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#openFirewallPort(rice.pastry.Id, java.net.InetSocketAddress, rice.Continuation, java.net.InetAddress, int)">openFirewallPort</A></B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe,
|
||
|
java.net.InetAddress externalAddress,
|
||
|
int requestedPort)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Attempt to open the firewall on the specified port
|
||
|
if it doesn't work, uses Rendezvous</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#shouldCheckConnectivity(org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, java.util.Collection)">shouldCheckConnectivity</A></B>(<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress,
|
||
|
java.util.Collection<java.net.InetSocketAddress> bootstraps)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#shouldFindExternalAddress(java.net.InetAddress)">shouldFindExternalAddress</A></B>(java.net.InetAddress address)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>protected void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../../../rice/pastry/socket/internet/InternetPastryNodeFactory.html#verifyConnectivityThenMakeNewNode(rice.pastry.Id, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, rice.Continuation)">verifyConnectivityThenMakeNewNode</A></B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Verifies the connectivity (if necessary), then calls super.newNodeSelector()
|
||
|
|
||
|
if connectivity fails, then uses Rendezvous</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_rice.pastry.socket.nat.rendezvous.RendezvousSocketPastryNodeFactory"><!-- --></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.socket.nat.rendezvous.<A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html" title="class in rice.pastry.socket.nat.rendezvous">RendezvousSocketPastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#generatePilotStrategy(rice.pastry.PastryNode, org.mpisws.p2p.transport.rendezvous.RendezvousTransportLayerImpl)">generatePilotStrategy</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getBootstrapper(rice.pastry.PastryNode, rice.pastry.transport.NodeHandleAdapter, rice.pastry.NodeHandleFactory, rice.pastry.standard.ProximityNeighborSelector)">getBootstrapper</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getContactDeserializer(rice.pastry.PastryNode)">getContactDeserializer</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getContactDirectStrategy(rice.pastry.PastryNode)">getContactDirectStrategy</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getIdentiySerializer(rice.pastry.PastryNode, rice.pastry.socket.SocketNodeHandleFactory)">getIdentiySerializer</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getIpServiceTransportLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode)">getIpServiceTransportLayer</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getJoinProtocol(rice.pastry.PastryNode, rice.pastry.leafset.LeafSet, rice.pastry.routing.RoutingTable, rice.pastry.ReadyStrategy)">getJoinProtocol</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getLocalHandle(rice.pastry.PastryNode, rice.pastry.NodeHandleFactory)">getLocalHandle</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getNextHopStrategy(org.mpisws.p2p.transport.TransportLayer, org.mpisws.p2p.transport.liveness.LivenessProvider, org.mpisws.p2p.transport.liveness.Pinger, rice.pastry.PastryNode, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, org.mpisws.p2p.transport.sourceroute.factory.MultiAddressSourceRouteFactory)">getNextHopStrategy</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getNodeHandleFactory(rice.pastry.PastryNode)">getNodeHandleFactory</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getPilotFinder(rice.pastry.PastryNode)">getPilotFinder</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getPriorityTransportLayer(org.mpisws.p2p.transport.TransportLayer, org.mpisws.p2p.transport.liveness.LivenessProvider, org.mpisws.p2p.transport.proximity.ProximityProvider, rice.pastry.PastryNode)">getPriorityTransportLayer</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getProximityNeighborSelector(rice.pastry.PastryNode)">getProximityNeighborSelector</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getRendezvousGenerator(rice.pastry.PastryNode)">getRendezvousGenerator</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getRendezvousStrategy(rice.pastry.PastryNode)">getRendezvousStrategy</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getRendezvousStrategyHelper(rice.pastry.PastryNode)">getRendezvousStrategyHelper</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getRendezvousTransportLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode)">getRendezvousTransportLayer</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getResponseStrategy(rice.pastry.PastryNode)">getResponseStrategy</A>, <A HREF="../../../../rice/pastry/socket/nat/rendezvous/RendezvousSocketPastryNodeFactory.html#getWireTransportLayer(java.net.InetSocketAddress, rice.pastry.PastryNode)">getWireTransportLayer</A>, <A HREF="..
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_rice.pastry.socket.SocketPastryNodeFactory"><!-- --></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.socket.<A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html" title="class in rice.pastry.socket">SocketPastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#cloneEnvironment(rice.environment.Environment, rice.pastry.Id)">cloneEnvironment</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#cloneLogManager(rice.environment.Environment, rice.pastry.Id)">cloneLogManager</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#cloneProcessor(rice.environment.Environment, rice.pastry.Id, rice.environment.logging.LogManager)">cloneProcessor</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#cloneRandomSource(rice.environment.Environment, rice.pastry.Id, rice.environment.logging.LogManager)">cloneRandomSource</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#cloneSelectorManager(rice.environment.Environment, rice.pastry.Id, rice.environment.logging.LogManager)">cloneSelectorManager</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getBindAddress()">getBindAddress</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getBindStrategy()">getBindStrategy</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getBottomLayers(rice.pastry.PastryNode, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress)">getBottomLayers</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getCommonAPITransportLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode, rice.pastry.transport.TLDeserializer)">getCommonAPITransportLayer</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getIdentityImpl(rice.pastry.PastryNode, rice.pastry.socket.SocketNodeHandleFactory)">getIdentityImpl</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getLimitSocketsTransportLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode)">getLimitSocketsTransportLayer</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getLivenessTransportLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode)">getLivenessTransportLayer</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getLowerIdentityLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode, org.mpisws.p2p.transport.identity.IdentityImpl)">getLowerIdentityLayer</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getMagicNumberTransportLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode)">getMagicNumberTransportLayer</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getMultiAddressSourceRouteFactory(rice.pastry.PastryNode)">getMultiAddressSourceRouteFactory</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getMultiAddressSourceRouteTransportLayer(org.mpisws.p2p.transport.TransportLayer, rice.pastry.PastryNode, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress)">getMultiAddressSourceRouteTransportLayer</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getNextInetSocketAddress()">getNextInetSocketAddress</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getNodeHandle(java.net.InetSocketAddress)">getNodeHandle</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getNodeHandle(java.net.InetSocketAddress[], rice.Continuation)">getNodeHandle</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getNodeHandle(java.net.InetSocketAddress[], int)">getNodeHandle</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getNodeHandle(java.net.InetSocketAddress, int)">getNodeHandle</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getNodeHandleAdapter(rice.pastry.PastryNode, rice.pastry.NodeHandleFactory, rice.pastry.transport.TLDeserializer)">getNodeHandleAdapter</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getOptionsAdder(rice.pastry.PastryNode)">getOptionsAdder</A>, <A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#getProbeStra
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_rice.pastry.transport.TransportPastryNodeFactory"><!-- --></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.transport.<A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html" title="class in rice.pastry.transport">TransportPastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html#getLeafSetProtocol(rice.pastry.PastryNode, rice.pastry.leafset.LeafSet, rice.pastry.routing.RoutingTable)">getLeafSetProtocol</A>, <A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html#getRouterStrategy(rice.pastry.PastryNode)">getRouterStrategy</A>, <A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html#getRouteSetProtocol(rice.pastry.PastryNode, rice.pastry.leafset.LeafSet, rice.pastry.routing.RoutingTable)">getRouteSetProtocol</A>, <A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html#getTLDeserializer(rice.pastry.NodeHandleFactory, rice.pastry.PastryNode)">getTLDeserializer</A>, <A HREF="../../../../rice/pastry/transport/TransportPastryNodeFactory.html#nodeHandleHelper(rice.pastry.PastryNode)">nodeHandleHelper</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_rice.pastry.PastryNodeFactory"><!-- --></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.<A HREF="../../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../../../rice/pastry/PastryNodeFactory.html#getEnvironment()">getEnvironment</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, 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="ALWAYS"><!-- --></A><H3>
|
||
|
ALWAYS</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>ALWAYS</B></PRE>
|
||
|
<DL>
|
||
|
<DD>NAT policy variables
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.ALWAYS">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="PREFIX_MATCH"><!-- --></A><H3>
|
||
|
PREFIX_MATCH</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>PREFIX_MATCH</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.PREFIX_MATCH">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="NEVER"><!-- --></A><H3>
|
||
|
NEVER</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>NEVER</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.NEVER">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="BOOT"><!-- --></A><H3>
|
||
|
BOOT</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>BOOT</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Don't check bootstrap nodes
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.BOOT">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="OVERWRITE"><!-- --></A><H3>
|
||
|
OVERWRITE</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>OVERWRITE</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.OVERWRITE">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="USE_DIFFERENT_PORT"><!-- --></A><H3>
|
||
|
USE_DIFFERENT_PORT</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>USE_DIFFERENT_PORT</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.USE_DIFFERENT_PORT">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="FAIL"><!-- --></A><H3>
|
||
|
FAIL</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>FAIL</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.FAIL">Constant Field Values</A></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="RENDEZVOUS"><!-- --></A><H3>
|
||
|
RENDEZVOUS</H3>
|
||
|
<PRE>
|
||
|
public static final int <B>RENDEZVOUS</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.pastry.socket.internet.InternetPastryNodeFactory.RENDEZVOUS">Constant Field Values</A></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="InternetPastryNodeFactory(rice.pastry.NodeIdFactory, int, rice.environment.Environment)"><!-- --></A><H3>
|
||
|
InternetPastryNodeFactory</H3>
|
||
|
<PRE>
|
||
|
public <B>InternetPastryNodeFactory</B>(<A HREF="../../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nf,
|
||
|
int startPort,
|
||
|
<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.io.IOException</CODE></DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="InternetPastryNodeFactory(rice.pastry.NodeIdFactory, java.net.InetAddress, int, rice.environment.Environment, rice.pastry.socket.nat.NATHandler, java.util.Collection, java.net.InetAddress[])"><!-- --></A><H3>
|
||
|
InternetPastryNodeFactory</H3>
|
||
|
<PRE>
|
||
|
public <B>InternetPastryNodeFactory</B>(<A HREF="../../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> nf,
|
||
|
java.net.InetAddress bindAddress,
|
||
|
int startPort,
|
||
|
<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
<A HREF="../../../../rice/pastry/socket/nat/NATHandler.html" title="interface in rice.pastry.socket.nat">NATHandler</A> handler,
|
||
|
java.util.Collection<java.net.InetSocketAddress> probeAddresses,
|
||
|
java.net.InetAddress[] externalAddresses)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD>May block for more than a second to determine network information.
|
||
|
<P>
|
||
|
<DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>nf</CODE> - can be null, but must call newNode() with a NodeId of the new PastryNode<DD><CODE>bindAddress</CODE> - the NIC to use (null will choose one that can access the Internet)<DD><CODE>startPort</CODE> - the port of the first created node, will be incremented for additional nodes,
|
||
|
can be specified on a per-Node basis by calling newNode() with a MultiInetSocketAddress<DD><CODE>env</CODE> - can't be null<DD><CODE>handler</CODE> - will attempt to use SBBI's UPnP library if null, unless blocked by deleting the
|
||
|
param "nat_handler_class"<DD><CODE>probeAddresses</CODE> - a list of bootstrap nodes' Internet routable addresses, used to establish
|
||
|
firewall information<DD><CODE>externalAddresses</CODE> - ordered addresses of the nat propagation from most external to most internal,
|
||
|
null will use natHandler and probeAddresses to determine this
|
||
|
<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="getDefaultNatHandler(rice.environment.Environment, java.net.InetAddress)"><!-- --></A><H3>
|
||
|
getDefaultNatHandler</H3>
|
||
|
<PRE>
|
||
|
protected <A HREF="../../../../rice/pastry/socket/nat/NATHandler.html" title="interface in rice.pastry.socket.nat">NATHandler</A> <B>getDefaultNatHandler</B>(<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> env,
|
||
|
java.net.InetAddress localAddress)</PRE>
|
||
|
<DL>
|
||
|
<DD>Return a NATHandler
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>env</CODE> - <DD><CODE>localAddress</CODE> - the address of the interface we should search for a NAT on
|
||
|
<DT><B>Returns:</B><DD></DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="shouldFindExternalAddress(java.net.InetAddress)"><!-- --></A><H3>
|
||
|
shouldFindExternalAddress</H3>
|
||
|
<PRE>
|
||
|
protected boolean <B>shouldFindExternalAddress</B>(java.net.InetAddress address)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="findExternalAddressIfNecessary(java.net.InetAddress)"><!-- --></A><H3>
|
||
|
findExternalAddressIfNecessary</H3>
|
||
|
<PRE>
|
||
|
protected boolean <B>findExternalAddressIfNecessary</B>(java.net.InetAddress address)
|
||
|
throws java.io.IOException</PRE>
|
||
|
<DL>
|
||
|
<DD>Sets/Verifies externalAddresses
|
||
|
|
||
|
Return true if all is well.
|
||
|
Return false if a firewall should be found but couldn't.
|
||
|
|
||
|
Throws an exception if firewall was found and disagrees with the existing externalAddress (if it's not null).
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>address</CODE> -
|
||
|
<DT><B>Returns:</B><DD>
|
||
|
<DT><B>Throws:</B>
|
||
|
<DD><CODE>java.io.IOException</CODE></DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="newNodeSelector(rice.pastry.Id, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, rice.Continuation, java.util.Map)"><!-- --></A><H3>
|
||
|
newNodeSelector</H3>
|
||
|
<PRE>
|
||
|
protected void <B>newNodeSelector</B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe,
|
||
|
java.util.Map<java.lang.String,java.lang.Object> initialVars)</PRE>
|
||
|
<DL>
|
||
|
<DD>This is where the action takes place.
|
||
|
|
||
|
1) Make sure the proxyAddress is valid and good
|
||
|
a) add the external address/port if needed
|
||
|
|
||
|
2) Try to configure the firewall
|
||
|
|
||
|
3) call newNodeSelectorHelper
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html#newNodeSelector(rice.pastry.Id, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, rice.Continuation, java.util.Map)">newNodeSelector</A></CODE> in class <CODE><A HREF="../../../../rice/pastry/socket/SocketPastryNodeFactory.html" title="class in rice.pastry.socket">SocketPastryNodeFactory</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="findExternalAddress(rice.pastry.Id, java.net.InetSocketAddress, rice.Continuation)"><!-- --></A><H3>
|
||
|
findExternalAddress</H3>
|
||
|
<PRE>
|
||
|
protected void <B>findExternalAddress</B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe)</PRE>
|
||
|
<DL>
|
||
|
<DD>Finds the external address, calls openFirewallPort()
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="findExternalNodes(rice.pastry.Id, java.net.InetSocketAddress, java.util.Collection, rice.Continuation)"><!-- --></A><H3>
|
||
|
findExternalNodes</H3>
|
||
|
<PRE>
|
||
|
protected void <B>findExternalNodes</B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
java.util.Collection<java.net.InetSocketAddress> nonInternetRoutable,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe)</PRE>
|
||
|
<DL>
|
||
|
<DD>Probe the internalAddresses to get more externalAddresses, then call findExternalAddressHelper
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="findExternalAddressHelper(rice.pastry.Id, java.net.InetSocketAddress, rice.Continuation, java.util.Collection)"><!-- --></A><H3>
|
||
|
findExternalAddressHelper</H3>
|
||
|
<PRE>
|
||
|
protected void <B>findExternalAddressHelper</B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe,
|
||
|
java.util.Collection<java.net.InetSocketAddress> myProbeAddresses)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="openFirewallPort(rice.pastry.Id, java.net.InetSocketAddress, rice.Continuation, java.net.InetAddress, int)"><!-- --></A><H3>
|
||
|
openFirewallPort</H3>
|
||
|
<PRE>
|
||
|
protected void <B>openFirewallPort</B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
java.net.InetSocketAddress bindAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe,
|
||
|
java.net.InetAddress externalAddress,
|
||
|
int requestedPort)</PRE>
|
||
|
<DL>
|
||
|
<DD>Attempt to open the firewall on the specified port
|
||
|
if it doesn't work, uses Rendezvous
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>port</CODE> - the external firewall port to (attempt to) use, -1 to use anything</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="verifyConnectivityThenMakeNewNode(rice.pastry.Id, org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, rice.Continuation)"><!-- --></A><H3>
|
||
|
verifyConnectivityThenMakeNewNode</H3>
|
||
|
<PRE>
|
||
|
protected void <B>verifyConnectivityThenMakeNewNode</B>(<A HREF="../../../../rice/pastry/Id.html" title="class in rice.pastry">Id</A> nodeId,
|
||
|
<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress,
|
||
|
<A HREF="../../../../rice/Continuation.html" title="interface in rice">Continuation</A><<A HREF="../../../../rice/pastry/PastryNode.html" title="class in rice.pastry">PastryNode</A>,java.io.IOException> deliverResultToMe)</PRE>
|
||
|
<DL>
|
||
|
<DD>Verifies the connectivity (if necessary), then calls super.newNodeSelector()
|
||
|
|
||
|
if connectivity fails, then uses Rendezvous
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>nodeId</CODE> - <DD><CODE>proxyAddress</CODE> - <DD><CODE>deliverResultToMe</CODE> - </DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="isInternetRoutable(org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress)"><!-- --></A><H3>
|
||
|
isInternetRoutable</H3>
|
||
|
<PRE>
|
||
|
protected boolean <B>isInternetRoutable</B>(<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="getFireWallPolicyVariable(java.lang.String)"><!-- --></A><H3>
|
||
|
getFireWallPolicyVariable</H3>
|
||
|
<PRE>
|
||
|
protected int <B>getFireWallPolicyVariable</B>(java.lang.String key)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="shouldCheckConnectivity(org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress, java.util.Collection)"><!-- --></A><H3>
|
||
|
shouldCheckConnectivity</H3>
|
||
|
<PRE>
|
||
|
protected boolean <B>shouldCheckConnectivity</B>(<A HREF="../../../../org/mpisws/p2p/transport/multiaddress/MultiInetSocketAddress.html" title="class in org.mpisws.p2p.transport.multiaddress">MultiInetSocketAddress</A> proxyAddress,
|
||
|
java.util.Collection<java.net.InetSocketAddress> bootstraps)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Parameters:</B><DD><CODE>proxyAddress</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/InternetPastryNodeFactory.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
|
||
|
NEXT CLASS</FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../../../index.html?rice/pastry/socket/internet/InternetPastryNodeFactory.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="InternetPastryNodeFactory.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: <A HREF="#nested_classes_inherited_from_class_rice.pastry.socket.SocketPastryNodeFactory">NESTED</A> | <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>
|