ChronosX88 aaa73fe8b3 Pew
2019-05-13 16:45:05 +04:00

1248 lines
44 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:18 CET 2009 -->
<TITLE>
CommonAPITest (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="CommonAPITest (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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CommonAPITest.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?rice/p2p/commonapi/testing/CommonAPITest.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="CommonAPITest.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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.p2p.commonapi.testing</FONT>
<BR>
Class CommonAPITest</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>rice.p2p.commonapi.testing.CommonAPITest</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../rice/p2p/past/testing/PastRegrTest.html" title="class in rice.p2p.past.testing">PastRegrTest</A>, <A HREF="../../../../rice/p2p/past/testing/RawPastRegrTest.html" title="class in rice.p2p.past.testing">RawPastRegrTest</A>, <A HREF="../../../../rice/p2p/replication/manager/testing/ReplicationManagerRegrTest.html" title="class in rice.p2p.replication.manager.testing">ReplicationManagerRegrTest</A>, <A HREF="../../../../rice/p2p/replication/testing/ReplicationRegrTest.html" title="class in rice.p2p.replication.testing">ReplicationRegrTest</A>, <A HREF="../../../../rice/p2p/scribe/testing/ScribeRegrTest.html" title="class in rice.p2p.scribe.testing">ScribeRegrTest</A>, <A HREF="../../../../rice/p2p/splitstream/testing/SplitStreamRegrTest.html" title="class in rice.p2p.splitstream.testing">SplitStreamRegrTest</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>CommonAPITest</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
Provides regression testing setup for applications written on top of the
commonapi. Currently is written to use Pastry nodes, but this will be abstracted
away.
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>$Id: CommonAPITest.java 4654 2009-01-08 16:33:07Z jeffh $</DD>
<DT><B>Author:</B></DT>
<DD>Alan Mislove</DD>
</DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.net.InetSocketAddress</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#BOOTSTRAP">BOOTSTRAP</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#BOOTSTRAP_PORT">BOOTSTRAP_PORT</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#environment">environment</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#factory">factory</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../rice/p2p/commonapi/IdFactory.html" title="interface in rice.p2p.commonapi">IdFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#FACTORY">FACTORY</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#FAILURE">FAILURE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#idFactory">idFactory</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#INSTANCE_NAME">INSTANCE_NAME</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#LEASE_PERIOD">LEASE_PERIOD</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/environment/logging/Logger.html" title="class in rice.environment.logging">Logger</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#logger">logger</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/p2p/commonapi/Node.html" title="interface in rice.p2p.commonapi">Node</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#nodes">nodes</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#NUM_NODES">NUM_NODES</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#PAD_SIZE">PAD_SIZE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/environment/params/Parameters.html" title="interface in rice.environment.params">Parameters</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#params">params</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#PORT">PORT</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#PROTOCOL">PROTOCOL</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#PROTOCOL_DIRECT">PROTOCOL_DIRECT</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#PROTOCOL_RENDEZVOUS">PROTOCOL_RENDEZVOUS</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#PROTOCOL_SOCKET">PROTOCOL_SOCKET</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/pastry/direct/NetworkSimulator.html" title="interface in rice.pastry.direct">NetworkSimulator</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#simulator">simulator</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#SIMULATOR">SIMULATOR</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#SIMULATOR_EUCLIDEAN">SIMULATOR_EUCLIDEAN</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#SIMULATOR_GT_ITM">SIMULATOR_GT_ITM</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#SIMULATOR_SPHERE">SIMULATOR_SPHERE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#SUCCESS">SUCCESS</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#TIME_TO_FIND_FAULTY">TIME_TO_FIND_FAULTY</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== 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/p2p/commonapi/testing/CommonAPITest.html#CommonAPITest(rice.environment.Environment)">CommonAPITest</A></B>(<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A>&nbsp;env)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor, which takes no arguments and sets up the
factories in preparation for node creation.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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 &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#assertEquals(java.lang.String, java.lang.Object, java.lang.Object)">assertEquals</A></B>(java.lang.String&nbsp;description,
java.lang.Object&nbsp;expected,
java.lang.Object&nbsp;actual)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thows an exception if expected is not equal to actual.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#assertTrue(java.lang.String, boolean)">assertTrue</A></B>(java.lang.String&nbsp;intention,
boolean&nbsp;test)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Throws an exception if the test condition is not met.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/p2p/commonapi/Node.html" title="interface in rice.p2p.commonapi">Node</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#createNode(int)">createNode</A></B>(int&nbsp;num)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which creates a single node, given it's node
number</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#createNodes()">createNodes</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which creates the nodes</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#getBootstrap()">getBootstrap</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a handle to a bootstrap node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#kill(int)">kill</A></B>(int&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which kills the specified node</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#parseArgs(java.lang.String[])">parseArgs</A></B>(java.lang.String[]&nbsp;args)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;process command line args</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#pause(int)">pause</A></B>(int&nbsp;ms)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which pauses for the provided number of milliseconds</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#processNode(int, rice.p2p.commonapi.Node)">processNode</A></B>(int&nbsp;num,
<A HREF="../../../../rice/p2p/commonapi/Node.html" title="interface in rice.p2p.commonapi">Node</A>&nbsp;node)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which should process the given newly-created node</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected abstract &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#runTest()">runTest</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which should run the test - this is called once all of the
nodes have been created and are ready.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#sectionDone()">sectionDone</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which prints the end of a test section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#sectionStart(java.lang.String)">sectionStart</A></B>(java.lang.String&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which prints the beginning of a test section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#setupParams(rice.environment.Environment)">setupParams</A></B>(<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A>&nbsp;env)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#simulate()">simulate</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In case we're using the direct simulator, this method
simulates the message passing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#simulate(int)">simulate</A></B>(int&nbsp;numOps)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#start()">start</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which starts the creation of nodes</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#stepDone()">stepDone</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which prints the end of a test section step, with an
assumed success.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#stepDone(java.lang.String)">stepDone</A></B>(java.lang.String&nbsp;status)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which prints the end of a test section step.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#stepDone(java.lang.String, java.lang.String)">stepDone</A></B>(java.lang.String&nbsp;status,
java.lang.String&nbsp;message)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which prints the end of a test section step, as
well as a message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#stepException(java.lang.Exception)">stepException</A></B>(java.lang.Exception&nbsp;e)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which prints an exception which occured during testing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#stepStart(java.lang.String)">stepStart</A></B>(java.lang.String&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which prints the beginning of a test section step.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#waitOnClock(int)">waitOnClock</A></B>(int&nbsp;time)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../rice/p2p/commonapi/testing/CommonAPITest.html#waitToRecoverFromKilling(int)">waitToRecoverFromKilling</A></B>(int&nbsp;additionalTime)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nodes will be non-ready for a while after killing.</TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<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="nodes"><!-- --></A><H3>
nodes</H3>
<PRE>
protected <A HREF="../../../../rice/p2p/commonapi/Node.html" title="interface in rice.p2p.commonapi">Node</A>[] <B>nodes</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="factory"><!-- --></A><H3>
factory</H3>
<PRE>
protected <A HREF="../../../../rice/pastry/PastryNodeFactory.html" title="class in rice.pastry">PastryNodeFactory</A> <B>factory</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="idFactory"><!-- --></A><H3>
idFactory</H3>
<PRE>
protected <A HREF="../../../../rice/pastry/NodeIdFactory.html" title="interface in rice.pastry">NodeIdFactory</A> <B>idFactory</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="simulator"><!-- --></A><H3>
simulator</H3>
<PRE>
protected <A HREF="../../../../rice/pastry/direct/NetworkSimulator.html" title="interface in rice.pastry.direct">NetworkSimulator</A> <B>simulator</B></PRE>
<DL>
<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>
<DL>
</DL>
</DL>
<HR>
<A NAME="params"><!-- --></A><H3>
params</H3>
<PRE>
protected <A HREF="../../../../rice/environment/params/Parameters.html" title="interface in rice.environment.params">Parameters</A> <B>params</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="NUM_NODES"><!-- --></A><H3>
NUM_NODES</H3>
<PRE>
public int <B>NUM_NODES</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="FACTORY"><!-- --></A><H3>
FACTORY</H3>
<PRE>
public final <A HREF="../../../../rice/p2p/commonapi/IdFactory.html" title="interface in rice.p2p.commonapi">IdFactory</A> <B>FACTORY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="SUCCESS"><!-- --></A><H3>
SUCCESS</H3>
<PRE>
public static final java.lang.String <B>SUCCESS</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.SUCCESS">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FAILURE"><!-- --></A><H3>
FAILURE</H3>
<PRE>
public static final java.lang.String <B>FAILURE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.FAILURE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PAD_SIZE"><!-- --></A><H3>
PAD_SIZE</H3>
<PRE>
protected static final int <B>PAD_SIZE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.PAD_SIZE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PROTOCOL_DIRECT"><!-- --></A><H3>
PROTOCOL_DIRECT</H3>
<PRE>
public static final java.lang.String <B>PROTOCOL_DIRECT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.PROTOCOL_DIRECT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PROTOCOL_SOCKET"><!-- --></A><H3>
PROTOCOL_SOCKET</H3>
<PRE>
public static final java.lang.String <B>PROTOCOL_SOCKET</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.PROTOCOL_SOCKET">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PROTOCOL_RENDEZVOUS"><!-- --></A><H3>
PROTOCOL_RENDEZVOUS</H3>
<PRE>
public static final java.lang.String <B>PROTOCOL_RENDEZVOUS</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.PROTOCOL_RENDEZVOUS">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SIMULATOR_SPHERE"><!-- --></A><H3>
SIMULATOR_SPHERE</H3>
<PRE>
public static final java.lang.String <B>SIMULATOR_SPHERE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.SIMULATOR_SPHERE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SIMULATOR_EUCLIDEAN"><!-- --></A><H3>
SIMULATOR_EUCLIDEAN</H3>
<PRE>
public static final java.lang.String <B>SIMULATOR_EUCLIDEAN</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.SIMULATOR_EUCLIDEAN">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SIMULATOR_GT_ITM"><!-- --></A><H3>
SIMULATOR_GT_ITM</H3>
<PRE>
public static final java.lang.String <B>SIMULATOR_GT_ITM</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.SIMULATOR_GT_ITM">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PORT"><!-- --></A><H3>
PORT</H3>
<PRE>
public int <B>PORT</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="BOOTSTRAP"><!-- --></A><H3>
BOOTSTRAP</H3>
<PRE>
public java.net.InetSocketAddress <B>BOOTSTRAP</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="BOOTSTRAP_PORT"><!-- --></A><H3>
BOOTSTRAP_PORT</H3>
<PRE>
public static int <B>BOOTSTRAP_PORT</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="PROTOCOL"><!-- --></A><H3>
PROTOCOL</H3>
<PRE>
public java.lang.String <B>PROTOCOL</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="SIMULATOR"><!-- --></A><H3>
SIMULATOR</H3>
<PRE>
public java.lang.String <B>SIMULATOR</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="INSTANCE_NAME"><!-- --></A><H3>
INSTANCE_NAME</H3>
<PRE>
public static java.lang.String <B>INSTANCE_NAME</B></PRE>
<DL>
<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="LEASE_PERIOD"><!-- --></A><H3>
LEASE_PERIOD</H3>
<PRE>
public static final int <B>LEASE_PERIOD</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.LEASE_PERIOD">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TIME_TO_FIND_FAULTY"><!-- --></A><H3>
TIME_TO_FIND_FAULTY</H3>
<PRE>
public static final int <B>TIME_TO_FIND_FAULTY</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#rice.p2p.commonapi.testing.CommonAPITest.TIME_TO_FIND_FAULTY">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="CommonAPITest(rice.environment.Environment)"><!-- --></A><H3>
CommonAPITest</H3>
<PRE>
public <B>CommonAPITest</B>(<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A>&nbsp;env)
throws java.io.IOException</PRE>
<DL>
<DD>Constructor, which takes no arguments and sets up the
factories in preparation for node creation.
<P>
<DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="waitToRecoverFromKilling(int)"><!-- --></A><H3>
waitToRecoverFromKilling</H3>
<PRE>
public void <B>waitToRecoverFromKilling</B>(int&nbsp;additionalTime)</PRE>
<DL>
<DD>Nodes will be non-ready for a while after killing. Need to account for this in the test.
wait for LEASE+TimeToFindFaulty+periodic protocol
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="waitOnClock(int)"><!-- --></A><H3>
waitOnClock</H3>
<PRE>
public void <B>waitOnClock</B>(int&nbsp;time)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setupParams(rice.environment.Environment)"><!-- --></A><H3>
setupParams</H3>
<PRE>
public void <B>setupParams</B>(<A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A>&nbsp;env)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createNodes()"><!-- --></A><H3>
createNodes</H3>
<PRE>
public void <B>createNodes</B>()</PRE>
<DL>
<DD>Method which creates the nodes
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="start()"><!-- --></A><H3>
start</H3>
<PRE>
public void <B>start</B>()</PRE>
<DL>
<DD>Method which starts the creation of nodes
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="simulate()"><!-- --></A><H3>
simulate</H3>
<PRE>
protected void <B>simulate</B>()</PRE>
<DL>
<DD>In case we're using the direct simulator, this method
simulates the message passing.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="simulate(int)"><!-- --></A><H3>
simulate</H3>
<PRE>
protected void <B>simulate</B>(int&nbsp;numOps)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numOps</CODE> - the approximate number of operations that will occur during this time, an operation is a network hop for example</DL>
</DD>
</DL>
<HR>
<A NAME="createNode(int)"><!-- --></A><H3>
createNode</H3>
<PRE>
protected <A HREF="../../../../rice/p2p/commonapi/Node.html" title="interface in rice.p2p.commonapi">Node</A> <B>createNode</B>(int&nbsp;num)</PRE>
<DL>
<DD>Method which creates a single node, given it's node
number
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>num</CODE> - The number of creation order
<DT><B>Returns:</B><DD>The created node</DL>
</DD>
</DL>
<HR>
<A NAME="getBootstrap()"><!-- --></A><H3>
getBootstrap</H3>
<PRE>
protected <A HREF="../../../../rice/pastry/NodeHandle.html" title="class in rice.pastry">NodeHandle</A> <B>getBootstrap</B>()</PRE>
<DL>
<DD>Gets a handle to a bootstrap node.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>handle to bootstrap node, or null.</DL>
</DD>
</DL>
<HR>
<A NAME="pause(int)"><!-- --></A><H3>
pause</H3>
<PRE>
protected void <B>pause</B>(int&nbsp;ms)</PRE>
<DL>
<DD>Method which pauses for the provided number of milliseconds
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ms</CODE> - The number of milliseconds to pause</DL>
</DD>
</DL>
<HR>
<A NAME="kill(int)"><!-- --></A><H3>
kill</H3>
<PRE>
protected void <B>kill</B>(int&nbsp;n)</PRE>
<DL>
<DD>Method which kills the specified node
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - The node to kill</DL>
</DD>
</DL>
<HR>
<A NAME="processNode(int, rice.p2p.commonapi.Node)"><!-- --></A><H3>
processNode</H3>
<PRE>
protected abstract void <B>processNode</B>(int&nbsp;num,
<A HREF="../../../../rice/p2p/commonapi/Node.html" title="interface in rice.p2p.commonapi">Node</A>&nbsp;node)</PRE>
<DL>
<DD>Method which should process the given newly-created node
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>num</CODE> - The number o the node<DD><CODE>node</CODE> - The newly created node</DL>
</DD>
</DL>
<HR>
<A NAME="runTest()"><!-- --></A><H3>
runTest</H3>
<PRE>
protected abstract void <B>runTest</B>()</PRE>
<DL>
<DD>Method which should run the test - this is called once all of the
nodes have been created and are ready.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="sectionStart(java.lang.String)"><!-- --></A><H3>
sectionStart</H3>
<PRE>
protected final void <B>sectionStart</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Method which prints the beginning of a test section.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of section</DL>
</DD>
</DL>
<HR>
<A NAME="sectionDone()"><!-- --></A><H3>
sectionDone</H3>
<PRE>
protected final void <B>sectionDone</B>()</PRE>
<DL>
<DD>Method which prints the end of a test section.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="stepStart(java.lang.String)"><!-- --></A><H3>
stepStart</H3>
<PRE>
protected final void <B>stepStart</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Method which prints the beginning of a test section step.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of step</DL>
</DD>
</DL>
<HR>
<A NAME="stepDone()"><!-- --></A><H3>
stepDone</H3>
<PRE>
protected final void <B>stepDone</B>()</PRE>
<DL>
<DD>Method which prints the end of a test section step, with an
assumed success.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="stepDone(java.lang.String)"><!-- --></A><H3>
stepDone</H3>
<PRE>
protected final void <B>stepDone</B>(java.lang.String&nbsp;status)</PRE>
<DL>
<DD>Method which prints the end of a test section step.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>status</CODE> - The status of step</DL>
</DD>
</DL>
<HR>
<A NAME="stepDone(java.lang.String, java.lang.String)"><!-- --></A><H3>
stepDone</H3>
<PRE>
protected final void <B>stepDone</B>(java.lang.String&nbsp;status,
java.lang.String&nbsp;message)</PRE>
<DL>
<DD>Method which prints the end of a test section step, as
well as a message.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>status</CODE> - The status of section<DD><CODE>message</CODE> - The message</DL>
</DD>
</DL>
<HR>
<A NAME="stepException(java.lang.Exception)"><!-- --></A><H3>
stepException</H3>
<PRE>
protected final void <B>stepException</B>(java.lang.Exception&nbsp;e)</PRE>
<DL>
<DD>Method which prints an exception which occured during testing.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>e</CODE> - The exception which was thrown</DL>
</DD>
</DL>
<HR>
<A NAME="assertTrue(java.lang.String, boolean)"><!-- --></A><H3>
assertTrue</H3>
<PRE>
protected final void <B>assertTrue</B>(java.lang.String&nbsp;intention,
boolean&nbsp;test)</PRE>
<DL>
<DD>Throws an exception if the test condition is not met.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="assertEquals(java.lang.String, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
assertEquals</H3>
<PRE>
protected final void <B>assertEquals</B>(java.lang.String&nbsp;description,
java.lang.Object&nbsp;expected,
java.lang.Object&nbsp;actual)</PRE>
<DL>
<DD>Thows an exception if expected is not equal to actual.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="parseArgs(java.lang.String[])"><!-- --></A><H3>
parseArgs</H3>
<PRE>
public static <A HREF="../../../../rice/environment/Environment.html" title="class in rice.environment">Environment</A> <B>parseArgs</B>(java.lang.String[]&nbsp;args)
throws java.io.IOException</PRE>
<DL>
<DD>process command line args
<P>
<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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CommonAPITest.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?rice/p2p/commonapi/testing/CommonAPITest.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="CommonAPITest.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright &#169; 2001-2005 - Rice Pastry.</i>
</BODY>
</HTML>