📄 rendezvousserviceinterface.html
字号:
<TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#getDisconnectedRendezVous()">getDisconnectedRendezVous</A></B>()</CODE><BR> Returns an Enumeration of the PeerID all the RendezVous on which this Peer failed to connect to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#getImplAdvertisement()">getImplAdvertisement</A></B>()</CODE><BR> Returns the advertisment for this service.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#getInterface()">getInterface</A></B>()</CODE><BR> Service objects are not manipulated directly to protect usage of the service. A Service interface is returned to access the service methods. <p/>Since THIS is already such an object, it returns itself. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#getLocalWalkView()">getLocalWalkView</A></B>()</CODE><BR> Returns a vector of RdvAdvertisement of the local view of rendezvous peers. <p/><ul> <li>Values are <A HREF="../../../../net/jxta/protocol/RdvAdvertisement.html" title="class in net.jxta.protocol"><CODE>RdvAdvertisement</CODE></A>.</li> </ul></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="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A></B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> pg, <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> assignedID, <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> impl)</CODE><BR> Initialize the module, passing it its peer group and advertisement. <p/>Note: when subclassing one of the existing PeerGroup implementations (which implement Module), it may not be recommended to overload the init method. See the documentation of the PeerGroup class being subclassed. <p/>FIXME: This is meaningless for the interface object; it is there only to satisfy the requirements of the interface that we implement. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#isConnectedToRendezVous()">isConnectedToRendezVous</A></B>()</CODE><BR> Return true if connected to a rendezvous.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#isRendezVous()">isRendezVous</A></B>()</CODE><BR> tells whether this rendezvous service currently acts as a "super-node" "rendezvous", knowlege hub, influence broker, or whichever higher status applies to the implementation.</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#propagate(java.util.Enumeration, net.jxta.endpoint.Message, java.lang.String, java.lang.String, int)">propagate</A></B>(java.util.Enumeration destPeerIDs, <A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, java.lang.String serviceName, java.lang.String serviceParam, int defaultTTL)</CODE><BR> Propagates a message onto as many peers on the local network as possible. Typically the message will go to all the peers to which at least one endpoint transport can address without using the router. <p/>This method sends the message to all peers, rendezvous peers and edge peer. This method of propation is very expensive and should not be frequentely used. When rendezvous peers are used in order to cache index of data, it is more efficient to use the walk() method. <p/>Only a single HOP at a time is performed. Messages are always delivered to the destination handler on arrival. This handler is responsible for repropagating further, if deemed appropropriate. <p/>Loop and TTL control are performed automatically. <p/>Messages can be propagated via this method for the first time or can be re-propagated by re-using a message that came in via propagation. In the later case, the TTL and loop detection parameters CANNOT be re-initialized. If one wants to "re-propagate" a message with a new TTL and blank gateways list one must generate a completely new message. This limits the risk of accidental propagation storms, although they can always be engineered deliberately. <p/><b>Note</b>: The original msg is not modified and may be reused upon return.</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#propagate(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int)">propagate</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, java.lang.String serviceName, java.lang.String serviceParam, int defaultTTL)</CODE><BR> Propagates a message onto as many peers on the local network as possible. Typically the message will go to all the peers to which at least one endpoint transport can address without using the router. <p/>This method sends the message to all peers, rendezvous peers and edge peer. This method of propation is very expensive and should not be frequentely used. When rendezvous peers are used in order to cache index of data, it is more efficient to use the walk() method. <p/>Only a single HOP at a time is performed. Messages are always delivered to the destination handler on arrival. This handler is responsible for repropagating further, if deemed appropropriate. <p/>Loop and TTL control are performed automatically. <p/>Messages can be propagated via this method for the first time or can be re-propagated by re-using a message that came in via propagation. In the later case, the TTL and loop detection parameters CANNOT be re-initialized. If one wants to "re-propagate" a message with a new TTL and blank gateways list one must generate a completely new message. This limits the risk of accidental propagation storms, although they can always be engineered deliberately. <p/><b>Note</b>: The original msg is not modified and may be reused upon return.</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#propagateInGroup(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int, java.lang.String)">propagateInGroup</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, java.lang.String serviceName, java.lang.String serviceParam, int defaultTTL, java.lang.String prunePeer)</CODE><BR> Propagates a message onto as many peers in the group as possible. <p/>Only a single HOP at a time is performed. Messages are always delivered to the destination handler on arrival. This handler is responsible for repropagating further, if deemed appropropriate. <p/>Loop and TTL control are performed automatically. <p/>Messages can be propagated via this method for the first time or can be re-propagated by re-using a message that came in via propagation. In the later case, the TTL and loop detection parameters CANNOT be re-initialized. If one wants to "re-propagate" a message with a new TTL and blank gateways list one must generate a completely new message. This limits the risk of accidental propagation storms, although they can always be engineered deliberately. <p/><b>Note</b>: The original msg is not modified and may be reused upon return.</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#propagateToNeighbors(net.jxta.endpoint.Message, java.lang.String, java.lang.String, int, java.lang.String)">propagateToNeighbors</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, java.lang.String serviceName, java.lang.String serviceParam, int defaultTTL, java.lang.String prunePeer)</CODE><BR> Propagates a message onto as many peers on the local network as possible. Typically the message will go to all the peers to which at least one endpoint transport can address without using the router. <p/>Only a single HOP at a time is performed. Messages are always delivered to the destination handler on arrival. This handler is responsible for repropagating further, if deemed appropropriate. <p/>Loop and TTL control are performed automatically. <p/>Messages can be propagated via this method for the first time or can be re-propagated by re-using a message that came in via propagation. In the later case, the TTL and loop detection parameters CANNOT be re-initialized. If one wants to "re-propagate" a message with a new TTL and blank gateways list one must generate a completely new message. This limits the risk of accidental propagation storms, although they can always be engineered deliberately. <p/><b>Note</b>: The original msg is not modified and may be reused upon return.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#removeListener(net.jxta.rendezvous.RendezvousListener)">removeListener</A></B>(<A HREF="../../../../net/jxta/rendezvous/RendezvousListener.html" title="interface in net.jxta.rendezvous">RendezvousListener</A> listener)</CODE><BR> Removes a Listener previously added with addListener.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#removePropagateListener(java.lang.String, net.jxta.endpoint.EndpointListener)">removePropagateListener</A></B>(java.lang.String name, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Removes a Listener previously added with addPropagateListener.</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#sendRendezVousAdv(net.jxta.protocol.PeerAdvertisement, net.jxta.protocol.PeerAdvertisement)">sendRendezVousAdv</A></B>(<A HREF="../../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> destPeer, <A HREF="../../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> rendezVous)</CODE><BR> Sends advertisement about other RendezVous to a given peer</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#setAutoStart(boolean)">setAutoStart</A></B>(boolean auto)</CODE><BR> Enable or disable the automatic switching between an Edge Peer and a Rendezvous Peer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#setAutoStart(boolean, long)">setAutoStart</A></B>(boolean auto, long period)</CODE><BR> Enable or disable the automatic switching between an Edge Peer and a Rendezvous Peer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/rendezvous/RendezVousMonitor.html" title="interface in net.jxta.rendezvous">RendezVousMonitor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceInterface.html#setMonitor(net.jxta.rendezvous.RendezVousMonitor)">setMonitor</A></B>(<A HREF="../../../../net/jxta/rendezvous/RendezVousMonitor.html" title="interface in net.jxta.rendezvous">RendezVousMonitor</A> handler)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -