FreePastry/docs/javadoc/rice/selector/ProfileSelector.html
ChronosX88 aaa73fe8b3 Pew
2019-05-13 16:45:05 +04:00

658 lines
31 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:09 CET 2009 -->
<TITLE>
ProfileSelector (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="ProfileSelector (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/ProfileSelector.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;<A HREF="../../rice/selector/LoopObserver.html" title="interface in rice.selector"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../rice/selector/SelectionKeyHandler.html" title="class in rice.selector"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?rice/selector/ProfileSelector.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ProfileSelector.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;<A HREF="#nested_classes_inherited_from_class_java.lang.Thread">NESTED</A>&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.selector</FONT>
<BR>
Class ProfileSelector</H2>
<PRE>
java.lang.Object
<IMG SRC="../../resources/inherit.gif" ALT="extended by ">java.lang.Thread
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">rice.selector.SelectorManager</A>
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>rice.selector.ProfileSelector</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Runnable, <A HREF="../../rice/Destructable.html" title="interface in rice">Destructable</A>, <A HREF="../../rice/selector/Timer.html" title="interface in rice.selector">Timer</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>ProfileSelector</B><DT>extends <A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></DL>
</PRE>
<P>
<DL>
<DT><B>Author:</B></DT>
<DD>jeffh
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments</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>
&nbsp;<A NAME="nested_classes_inherited_from_class_java.lang.Thread"><!-- --></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 java.lang.Thread</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== 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.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#lastTaskClass">lastTaskClass</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;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#lastTaskHash">lastTaskHash</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/selector/ProfileSelector.html#lastTaskToString">lastTaskToString</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/selector/ProfileSelector.html#lastTaskType">lastTaskType</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;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#recordStats">recordStats</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;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#useHeartbeat">useHeartbeat</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_rice.selector.SelectorManager"><!-- --></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.selector.<A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../rice/selector/SelectorManager.html#cancelledKeys">cancelledKeys</A>, <A HREF="../../rice/selector/SelectorManager.html#environment">environment</A>, <A HREF="../../rice/selector/SelectorManager.html#instance">instance</A>, <A HREF="../../rice/selector/SelectorManager.html#invocations">invocations</A>, <A HREF="../../rice/selector/SelectorManager.html#logger">logger</A>, <A HREF="../../rice/selector/SelectorManager.html#modifyKeys">modifyKeys</A>, <A HREF="../../rice/selector/SelectorManager.html#random">random</A>, <A HREF="../../rice/selector/SelectorManager.html#running">running</A>, <A HREF="../../rice/selector/SelectorManager.html#select">select</A>, <A HREF="../../rice/selector/SelectorManager.html#selector">selector</A>, <A HREF="../../rice/selector/SelectorManager.html#seqCtr">seqCtr</A>, <A HREF="../../rice/selector/SelectorManager.html#seqLock">seqLock</A>, <A HREF="../../rice/selector/SelectorManager.html#TIMEOUT">TIMEOUT</A>, <A HREF="../../rice/selector/SelectorManager.html#timerQueue">timerQueue</A>, <A HREF="../../rice/selector/SelectorManager.html#timeSource">timeSource</A>, <A HREF="../../rice/selector/SelectorManager.html#useLoopListeners">useLoopListeners</A>, <A HREF="../../rice/selector/SelectorManager.html#wakeupTime">wakeupTime</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_java.lang.Thread"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class java.lang.Thread</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY</CODE></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/selector/ProfileSelector.html#ProfileSelector(java.lang.String, rice.environment.time.TimeSource, rice.environment.logging.LogManager)">ProfileSelector</A></B>(java.lang.String&nbsp;instance,
<A HREF="../../rice/environment/time/TimeSource.html" title="interface in rice.environment.time">TimeSource</A>&nbsp;timeSource,
<A HREF="../../rice/environment/logging/LogManager.html" title="interface in rice.environment.logging">LogManager</A>&nbsp;log)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#ProfileSelector(java.lang.String, rice.environment.time.TimeSource, rice.environment.logging.LogManager, rice.environment.random.RandomSource)">ProfileSelector</A></B>(java.lang.String&nbsp;instance,
<A HREF="../../rice/environment/time/TimeSource.html" title="interface in rice.environment.time">TimeSource</A>&nbsp;timeSource,
<A HREF="../../rice/environment/logging/LogManager.html" title="interface in rice.environment.logging">LogManager</A>&nbsp;log,
<A HREF="../../rice/environment/random/RandomSource.html" title="interface in rice.environment.random">RandomSource</A>&nbsp;rand)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#ProfileSelector(java.lang.String, rice.environment.time.TimeSource, rice.environment.logging.LogManager, rice.environment.random.RandomSource, int)">ProfileSelector</A></B>(java.lang.String&nbsp;instance,
<A HREF="../../rice/environment/time/TimeSource.html" title="interface in rice.environment.time">TimeSource</A>&nbsp;timeSource,
<A HREF="../../rice/environment/logging/LogManager.html" title="interface in rice.environment.logging">LogManager</A>&nbsp;log,
<A HREF="../../rice/environment/random/RandomSource.html" title="interface in rice.environment.random">RandomSource</A>&nbsp;rand,
int&nbsp;lastTaskTime)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#addStat(java.lang.String, long)">addStat</A></B>(java.lang.String&nbsp;s,
long&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>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#doInvocations()">doInvocations</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which invokes all pending invocations.</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/selector/ProfileSelector.html#doInvocations2()">doInvocations2</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;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#doSelections()">doSelections</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;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../rice/selector/ProfileSelector.html#executeTask(rice.selector.TimerTask)">executeTask</A></B>(<A HREF="../../rice/selector/TimerTask.html" title="class in rice.selector">TimerTask</A>&nbsp;next)</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/selector/ProfileSelector.html#invoke(java.lang.Runnable)">invoke</A></B>(java.lang.Runnable&nbsp;d)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method schedules a runnable task to be done by the selector thread
during the next select() call.</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/selector/ProfileSelector.html#onLoop()">onLoop</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is to be implemented by a subclass to do some task each loop.</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/selector/ProfileSelector.html#printStats()">printStats</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_rice.selector.SelectorManager"><!-- --></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.selector.<A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../rice/selector/SelectorManager.html#addLoopObserver(rice.selector.LoopObserver)">addLoopObserver</A>, <A HREF="../../rice/selector/SelectorManager.html#addTask(rice.selector.TimerTask)">addTask</A>, <A HREF="../../rice/selector/SelectorManager.html#cancel(java.nio.channels.SelectionKey)">cancel</A>, <A HREF="../../rice/selector/SelectorManager.html#destroy()">destroy</A>, <A HREF="../../rice/selector/SelectorManager.html#executeDueTasks()">executeDueTasks</A>, <A HREF="../../rice/selector/SelectorManager.html#getEnvironment()">getEnvironment</A>, <A HREF="../../rice/selector/SelectorManager.html#getInvocation()">getInvocation</A>, <A HREF="../../rice/selector/SelectorManager.html#getKey(java.nio.channels.SelectableChannel)">getKey</A>, <A HREF="../../rice/selector/SelectorManager.html#getModifyKey()">getModifyKey</A>, <A HREF="../../rice/selector/SelectorManager.html#getNextTaskExecutionTime()">getNextTaskExecutionTime</A>, <A HREF="../../rice/selector/SelectorManager.html#getNumInvocations()">getNumInvocations</A>, <A HREF="../../rice/selector/SelectorManager.html#getSelector()">getSelector</A>, <A HREF="../../rice/selector/SelectorManager.html#getTimer()">getTimer</A>, <A HREF="../../rice/selector/SelectorManager.html#isSelectorThread()">isSelectorThread</A>, <A HREF="../../rice/selector/SelectorManager.html#main(java.lang.String[])">main</A>, <A HREF="../../rice/selector/SelectorManager.html#modifyKey(java.nio.channels.SelectionKey)">modifyKey</A>, <A HREF="../../rice/selector/SelectorManager.html#notifyLoopListeners()">notifyLoopListeners</A>, <A HREF="../../rice/selector/SelectorManager.html#register(java.nio.channels.SelectableChannel, rice.selector.SelectionKeyHandler, int)">register</A>, <A HREF="../../rice/selector/SelectorManager.html#removeLoopObserver(rice.selector.LoopObserver)">removeLoopObserver</A>, <A HREF="../../rice/selector/SelectorManager.html#removeTask(rice.selector.TimerTask)">removeTask</A>, <A HREF="../../rice/selector/SelectorManager.html#run()">run</A>, <A HREF="../../rice/selector/SelectorManager.html#schedule(rice.selector.TimerTask)">schedule</A>, <A HREF="../../rice/selector/SelectorManager.html#schedule(rice.selector.TimerTask, long)">schedule</A>, <A HREF="../../rice/selector/SelectorManager.html#schedule(rice.selector.TimerTask, long, long)">schedule</A>, <A HREF="../../rice/selector/SelectorManager.html#scheduleAtFixedRate(rice.selector.TimerTask, long, long)">scheduleAtFixedRate</A>, <A HREF="../../rice/selector/SelectorManager.html#select(int)">select</A>, <A HREF="../../rice/selector/SelectorManager.html#selectedKeys()">selectedKeys</A>, <A HREF="../../rice/selector/SelectorManager.html#setEnvironment(rice.environment.Environment)">setEnvironment</A>, <A HREF="../../rice/selector/SelectorManager.html#setLogLevel(int)">setLogLevel</A>, <A HREF="../../rice/selector/SelectorManager.html#setSelect(boolean)">setSelect</A>, <A HREF="../../rice/selector/SelectorManager.html#useLoopListeners(boolean)">useLoopListeners</A>, <A HREF="../../rice/selector/SelectorManager.html#wakeup()">wakeup</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Thread"><!-- --></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.Thread</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield</CODE></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, 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="useHeartbeat"><!-- --></A><H3>
useHeartbeat</H3>
<PRE>
public static boolean <B>useHeartbeat</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="recordStats"><!-- --></A><H3>
recordStats</H3>
<PRE>
public static boolean <B>recordStats</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="lastTaskType"><!-- --></A><H3>
lastTaskType</H3>
<PRE>
public java.lang.String <B>lastTaskType</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="lastTaskClass"><!-- --></A><H3>
lastTaskClass</H3>
<PRE>
public java.lang.String <B>lastTaskClass</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="lastTaskToString"><!-- --></A><H3>
lastTaskToString</H3>
<PRE>
public java.lang.String <B>lastTaskToString</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="lastTaskHash"><!-- --></A><H3>
lastTaskHash</H3>
<PRE>
public long <B>lastTaskHash</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="ProfileSelector(java.lang.String, rice.environment.time.TimeSource, rice.environment.logging.LogManager)"><!-- --></A><H3>
ProfileSelector</H3>
<PRE>
public <B>ProfileSelector</B>(java.lang.String&nbsp;instance,
<A HREF="../../rice/environment/time/TimeSource.html" title="interface in rice.environment.time">TimeSource</A>&nbsp;timeSource,
<A HREF="../../rice/environment/logging/LogManager.html" title="interface in rice.environment.logging">LogManager</A>&nbsp;log)</PRE>
<DL>
</DL>
<HR>
<A NAME="ProfileSelector(java.lang.String, rice.environment.time.TimeSource, rice.environment.logging.LogManager, rice.environment.random.RandomSource)"><!-- --></A><H3>
ProfileSelector</H3>
<PRE>
public <B>ProfileSelector</B>(java.lang.String&nbsp;instance,
<A HREF="../../rice/environment/time/TimeSource.html" title="interface in rice.environment.time">TimeSource</A>&nbsp;timeSource,
<A HREF="../../rice/environment/logging/LogManager.html" title="interface in rice.environment.logging">LogManager</A>&nbsp;log,
<A HREF="../../rice/environment/random/RandomSource.html" title="interface in rice.environment.random">RandomSource</A>&nbsp;rand)</PRE>
<DL>
</DL>
<HR>
<A NAME="ProfileSelector(java.lang.String, rice.environment.time.TimeSource, rice.environment.logging.LogManager, rice.environment.random.RandomSource, int)"><!-- --></A><H3>
ProfileSelector</H3>
<PRE>
public <B>ProfileSelector</B>(java.lang.String&nbsp;instance,
<A HREF="../../rice/environment/time/TimeSource.html" title="interface in rice.environment.time">TimeSource</A>&nbsp;timeSource,
<A HREF="../../rice/environment/logging/LogManager.html" title="interface in rice.environment.logging">LogManager</A>&nbsp;log,
<A HREF="../../rice/environment/random/RandomSource.html" title="interface in rice.environment.random">RandomSource</A>&nbsp;rand,
int&nbsp;lastTaskTime)</PRE>
<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="onLoop()"><!-- --></A><H3>
onLoop</H3>
<PRE>
protected void <B>onLoop</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../rice/selector/SelectorManager.html#onLoop()">SelectorManager</A></CODE></B></DD>
<DD>This method is to be implemented by a subclass to do some task each loop.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../rice/selector/SelectorManager.html#onLoop()">onLoop</A></CODE> in class <CODE><A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="invoke(java.lang.Runnable)"><!-- --></A><H3>
invoke</H3>
<PRE>
public void <B>invoke</B>(java.lang.Runnable&nbsp;d)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../rice/selector/SelectorManager.html#invoke(java.lang.Runnable)">SelectorManager</A></CODE></B></DD>
<DD>This method schedules a runnable task to be done by the selector thread
during the next select() call. All operations which modify the selector
should be done using this method, as they must be done in the selector
thread.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../rice/selector/SelectorManager.html#invoke(java.lang.Runnable)">invoke</A></CODE> in class <CODE><A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>d</CODE> - The runnable task to invoke</DL>
</DD>
</DL>
<HR>
<A NAME="addStat(java.lang.String, long)"><!-- --></A><H3>
addStat</H3>
<PRE>
public void <B>addStat</B>(java.lang.String&nbsp;s,
long&nbsp;time)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="printStats()"><!-- --></A><H3>
printStats</H3>
<PRE>
public void <B>printStats</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="executeTask(rice.selector.TimerTask)"><!-- --></A><H3>
executeTask</H3>
<PRE>
protected boolean <B>executeTask</B>(<A HREF="../../rice/selector/TimerTask.html" title="class in rice.selector">TimerTask</A>&nbsp;next)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../rice/selector/SelectorManager.html#executeTask(rice.selector.TimerTask)">executeTask</A></CODE> in class <CODE><A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="doSelections()"><!-- --></A><H3>
doSelections</H3>
<PRE>
protected void <B>doSelections</B>()
throws java.io.IOException</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../rice/selector/SelectorManager.html#doSelections()">doSelections</A></CODE> in class <CODE><A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="doInvocations()"><!-- --></A><H3>
doInvocations</H3>
<PRE>
protected void <B>doInvocations</B>()</PRE>
<DL>
<DD>Method which invokes all pending invocations. This method should *only* be
called by the selector thread.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../rice/selector/SelectorManager.html#doInvocations()">doInvocations</A></CODE> in class <CODE><A HREF="../../rice/selector/SelectorManager.html" title="class in rice.selector">SelectorManager</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="doInvocations2()"><!-- --></A><H3>
doInvocations2</H3>
<PRE>
protected void <B>doInvocations2</B>()</PRE>
<DL>
<DD><DL>
</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/ProfileSelector.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;<A HREF="../../rice/selector/LoopObserver.html" title="interface in rice.selector"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../rice/selector/SelectionKeyHandler.html" title="class in rice.selector"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?rice/selector/ProfileSelector.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ProfileSelector.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;<A HREF="#nested_classes_inherited_from_class_java.lang.Thread">NESTED</A>&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>