📄 broker.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#publish(broker.Destination, com.Notification)">publish</A></B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A> from, <A HREF="../com/Notification.html" title="class in com">Notification</A> notification)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#queueSize()">queueSize</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#receive(broker.Destination, com.Message)">receive</A></B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A> sender, <A HREF="../com/Message.html" title="class in com">Message</A> message)</CODE><BR> Receives a physical message.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#removeNeighbor(broker.Broker)">removeNeighbor</A></B>(<A HREF="../broker/Broker.html" title="class in broker">Broker</A> b)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#setNeighbors(java.util.Collection)">setNeighbors</A></B>(java.util.Collection neighbors)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#start()">start</A></B>()</CODE><BR> Starts all broker's functions, inclusive the broadcasting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#startBroadcasting()">startBroadcasting</A></B>()</CODE><BR> Starts the broker's broadcasting to announce his presence and his interests.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#startHeuristic()">startHeuristic</A></B>()</CODE><BR> Starts the broker's broadcasting to announce his presence and his interests.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#stopHeuristic()">stopHeuristic</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#subscribe(broker.Destination, com.Subscription)">subscribe</A></B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A> from, <A HREF="../com/Subscription.html" title="class in com">Subscription</A> subscription)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#toString()">toString</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../broker/Broker.html#unsubscribe(broker.Destination, com.Unsubscription)">unsubscribe</A></B>(<A HREF="../broker/Destination.html" title="interface in broker">Destination</A> from, <A HREF="../com/Unsubscription.html" title="class in com">Unsubscription</A> unsubscription)</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_graph.Element"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class graph.<A HREF="../graph/Element.html" title="class in graph">Element</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../graph/Element.html#compareTo(java.lang.Object)">compareTo</A>, <A HREF="../graph/Element.html#equals(java.lang.Object)">equals</A>, <A HREF="../graph/Element.html#getProperty(graph.Property)">getProperty</A>, <A HREF="../graph/Element.html#hashCode()">hashCode</A>, <A HREF="../graph/Element.html#hasProperty(graph.Property)">hasProperty</A>, <A HREF="../graph/Element.html#removeProperty(graph.Property)">removeProperty</A>, <A HREF="../graph/Element.html#setProperty(graph.Property, java.lang.Object)">setProperty</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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="BLACK"><!-- --></A><H3>BLACK</H3><PRE>protected static final int <B>BLACK</B></PRE><DL><DD>Color of a normal broker.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.BLACK">Constant Field Values</A></DL></DL><HR><A NAME="GRAY"><!-- --></A><H3>GRAY</H3><PRE>protected static final int <B>GRAY</B></PRE><DL><DD>Color of a broker when the new routing entires are established during a reconfiguration pahse.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.GRAY">Constant Field Values</A></DL></DL><HR><A NAME="LEFT"><!-- --></A><H3>LEFT</H3><PRE>protected static final int <B>LEFT</B></PRE><DL><DD>Direction left.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.LEFT">Constant Field Values</A></DL></DL><HR><A NAME="RIGHT"><!-- --></A><H3>RIGHT</H3><PRE>protected static final int <B>RIGHT</B></PRE><DL><DD>Direction right.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.RIGHT">Constant Field Values</A></DL></DL><HR><A NAME="UNORDERED"><!-- --></A><H3>UNORDERED</H3><PRE>protected static final int <B>UNORDERED</B></PRE><DL><DD>Constant associated with no message order.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.UNORDERED">Constant Field Values</A></DL></DL><HR><A NAME="FIFO"><!-- --></A><H3>FIFO</H3><PRE>protected static final int <B>FIFO</B></PRE><DL><DD>Constant associated with a FIFO message order.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.FIFO">Constant Field Values</A></DL></DL><HR><A NAME="CAUSAL"><!-- --></A><H3>CAUSAL</H3><PRE>protected static final int <B>CAUSAL</B></PRE><DL><DD>Constant associated with a causal message order.<P><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.CAUSAL">Constant Field Values</A></DL></DL><HR><A NAME="COSTS_AND_INTERESTS"><!-- --></A><H3>COSTS_AND_INTERESTS</H3><PRE>public static final int <B>COSTS_AND_INTERESTS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.COSTS_AND_INTERESTS">Constant Field Values</A></DL></DL><HR><A NAME="COSTS"><!-- --></A><H3>COSTS</H3><PRE>public static final int <B>COSTS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.COSTS">Constant Field Values</A></DL></DL><HR><A NAME="INTERESTS"><!-- --></A><H3>INTERESTS</H3><PRE>public static final int <B>INTERESTS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#broker.Broker.INTERESTS">Constant Field Values</A></DL></DL><HR><A NAME="updateInterval"><!-- --></A><H3>updateInterval</H3><PRE>public static double <B>updateInterval</B></PRE><DL><DD>The update interval of an local environment. The interval after an environment entry gets stale and is removed.<P><DL></DL></DL><HR><A NAME="broadcastInterval"><!-- --></A><H3>broadcastInterval</H3><PRE>public static double <B>broadcastInterval</B></PRE><DL><DD>The interval between two consecutive broadcasts of a broker.<P><DL></DL></DL><HR><A NAME="order"><!-- --></A><H3>order</H3><PRE>protected static int <B>order</B></PRE><DL><DD>The requested message order.<P><DL></DL></DL><HR><A NAME="cacheSize"><!-- --></A><H3>cacheSize</H3><PRE>protected static int <B>cacheSize</B></PRE><DL><DD>The capacity of a broker's cache.<P><DL></DL></DL><HR><A NAME="filterSize"><!-- --></A><H3>filterSize</H3><PRE>protected static int <B>filterSize</B></PRE><DL><DD>The capacity of a broadcast's Bloom filter.<P><DL></DL></DL><HR><A NAME="numberOfHashs"><!-- --></A><H3>numberOfHashs</H3><PRE>protected static int <B>numberOfHashs</B></PRE><DL><DD>The number of hash functions a Bloom filter uses.<P><DL></DL></DL><HR><A NAME="environmentSize"><!-- --></A><H3>environmentSize</H3><PRE>protected static int <B>environmentSize</B></PRE><DL><DL></DL></DL><HR><A NAME="heuristic"><!-- --></A><H3>heuristic</H3><PRE>public static int <B>heuristic</B></PRE><DL><DL></DL></DL><HR><A NAME="brokerSeed"><!-- --></A><H3>brokerSeed</H3><PRE>protected static long <B>brokerSeed</B></PRE><DL><DL></DL></DL><HR><A NAME="rand"><!-- --></A><H3>rand</H3><PRE>protected static java.util.Random <B>rand</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"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Broker(sim.Simulation, sim.Network)"><!-- --></A><H3>Broker</H3><PRE>public <B>Broker</B>(<A HREF="../sim/Simulation.html" title="class in sim">Simulation</A> sim, <A HREF="../sim/Network.html" title="class in sim">Network</A> net)</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"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="initialize(java.util.Properties)"><!-- --></A><H3>initialize</H3><PRE>public static void <B>initialize</B>(java.util.Properties properties)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -