📄 rendezvousserviceimpl.html
字号:
<BR> Adds the incarnation message element to the 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="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#addListener(net.jxta.rendezvous.RendezvousListener)">addListener</A></B>(<A HREF="../../../../net/jxta/rendezvous/RendezvousListener.html" title="interface in net.jxta.rendezvous">RendezvousListener</A> listener)</CODE><BR> Add a listener for RenDezVousEvents</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/RendezVousServiceImpl.html#addMsgId(net.jxta.impl.id.UUID.UUID)">addMsgId</A></B>(<A HREF="../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A> id)</CODE><BR> </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/RendezVousServiceImpl.html#addPropagateListener(java.lang.String, net.jxta.endpoint.EndpointListener)">addPropagateListener</A></B>(java.lang.String name, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Clients of the rendezvous service can use this to receive raw propagation rather than crawling query/responses. It takes care of TTL counting and loop detection.</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/RendezVousServiceImpl.html#challengeRendezVous(net.jxta.id.ID, long)">challengeRendezVous</A></B>(<A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> peer, long delay)</CODE><BR> Set a new deadline for the rendezvous to be proven alive. As a result a lease reponse must be sought and obtained within the specified delay or the rdv is considered disconnected. So, if a lease scheme is used, this can be implemented simply by setting the new lease deadLine accordingly. <p/>A timeout of 0 or less triggers immediate disconnection.</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/RendezVousServiceImpl.html#connected(net.jxta.peer.PeerID, long)">connected</A></B>(<A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> pid, long lease)</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#connectToRendezVous(net.jxta.endpoint.EndpointAddress)">connectToRendezVous</A></B>(<A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> addr)</CODE><BR> Add a peer as a new RendezVousService point. <p/>If/When the RendezVousService accepts the connection, the RendezVous service will invoke the RendezVousMonitor.</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/RendezVousServiceImpl.html#connectToRendezVous(net.jxta.protocol.PeerAdvertisement)">connectToRendezVous</A></B>(<A HREF="../../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> adv)</CODE><BR> Add a peer as a new RendezVousService point. <p/>If/When the RendezVousService accepts the connection, the RendezVous service will invoke the RendezVousMonitor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#createMsgId()">createMsgId</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#disconnected(net.jxta.peer.PeerID)">disconnected</A></B>(<A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> pid)</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#disconnectFromRendezVous(net.jxta.id.ID)">disconnectFromRendezVous</A></B>(<A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> peerId)</CODE><BR> Remove a RendezVousService point.</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/RendezVousServiceImpl.html#discovered(net.jxta.document.Advertisement)">discovered</A></B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> adv)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#finalize()">finalize</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#generateEvent(int, net.jxta.id.ID)">generateEvent</A></B>(int type, <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> peer)</CODE><BR> {@inheritDoc}</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/RendezVousServiceImpl.html#getConnectedPeerIDs()">getConnectedPeerIDs</A></B>()</CODE><BR> Returns a Vector of PeerID of the peers that are currentely connected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#getConnectedPeers()">getConnectedPeers</A></B>()</CODE><BR> Returns an Enumeration of PeerID of the peers that are currentely connected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#getConnectedRendezVous()">getConnectedRendezVous</A></B>()</CODE><BR> Returns an Enumeration of the PeerID all the RendezVous on which this Peer is currentely connected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.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/RendezVousServiceImpl.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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#getIncarnation(net.jxta.endpoint.Message)">getIncarnation</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg)</CODE><BR> </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/RendezVousServiceImpl.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.</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/RendezVousServiceImpl.html#getListener(java.lang.String)">getListener</A></B>(java.lang.String str)</CODE><BR> </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/RendezVousServiceImpl.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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#hasIncarnationChanged(net.jxta.endpoint.Message, net.jxta.peer.PeerID, java.lang.String)">hasIncarnationChanged</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A> msg, <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> targetRdvPeerID, java.lang.String targetRdvIncarnation)</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="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.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> g, <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. Note: it is permissible to pass null as the impl parameter when this instance is not being loaded via the module framework.</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/RendezVousServiceImpl.html#isConnectedToRendezVous()">isConnectedToRendezVous</A></B>()</CODE><BR> Gets the rendezvousConnected attribute of the RendezVousServiceImpl object</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/RendezVousServiceImpl.html#isMsgIdRecorded(net.jxta.impl.id.UUID.UUID)">isMsgIdRecorded</A></B>(<A HREF="../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A> id)</CODE><BR> </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/RendezVousServiceImpl.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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/rendezvous/RendezVousServiceImpl.html#newIncarnation()">newIncarnation</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -