⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 peerinfoserviceimpl.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A HREF="../../../../net/jxta/impl/peer/PeerInfoHandler.html" title="interface in net.jxta.impl.peer">PeerInfoHandler</A> <B>getPeerInfoHandler</B>(java.lang.String&nbsp;name)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getInterface()"><!-- --></A><H3>getInterface</H3><PRE>public <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> <B>getInterface</B>()</PRE><DL><DD>Service objects are not manipulated directly to protect usage of the  service. A Service interface is returned to access the service  methods.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/service/Service.html#getInterface()">getInterface</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Service public interface of the service</DL></DD></DL><HR><A NAME="getImplAdvertisement()"><!-- --></A><H3>getImplAdvertisement</H3><PRE>public <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> <B>getImplAdvertisement</B>()</PRE><DL><DD>Returns the advertisement for that service.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/service/Service.html#getImplAdvertisement()">getImplAdvertisement</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Advertisement the advertisement.</DL></DD></DL><HR><A NAME="init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A>&nbsp;group,                 <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A>&nbsp;assignedID,                 <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;impl)          throws <A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></PRE><DL><DD>init is called by PeerGroup to init the Service<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/platform/Module.html#init(net.jxta.peergroup.PeerGroup, net.jxta.id.ID, net.jxta.document.Advertisement)">init</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - <DD><CODE>assignedID</CODE> - <DD><CODE>impl</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - throw any exception thrown during      obtaining Service</DL></DD></DL><HR><A NAME="getGroup()"><!-- --></A><H3>getGroup</H3><PRE>public <A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> <B>getGroup</B>()</PRE><DL><DD>Returns the group to which this service is attached.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>PeerGroup the group</DL></DD></DL><HR><A NAME="isLocalMonitoringAvailable()"><!-- --></A><H3>isLocalMonitoringAvailable</H3><PRE>public boolean <B>isLocalMonitoringAvailable</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></B></DD><DD>See if Local Monitoring is available on this Peer		Local monitoring is only available if you are using a version of 		of jxta.jar that was build with metering activated.  <p>		See the document: 					<UL>	  					<LI> <I> Building and Configuring JXTA with Monitoring Capabilities </I> </LI>					</UL><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html#isLocalMonitoringAvailable()">isLocalMonitoringAvailable</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isLocalMonitoringAvailable(net.jxta.platform.ModuleClassID)"><!-- --></A><H3>isLocalMonitoringAvailable</H3><PRE>public boolean <B>isLocalMonitoringAvailable</B>(<A HREF="../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A>&nbsp;moduleClassID)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></B></DD><DD>See if Local monitoring is available from a specific ServiceMonitor.  		Local monitoring is only available if you are using a version of 		of jxta.jar that was build with metering activated.  <p> 	See the document: 					<UL>   					<LI> <I> Building and Configuring JXTA with Monitoring Capabilities </I> </LI>					</UL><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html#isLocalMonitoringAvailable(net.jxta.platform.ModuleClassID)">isLocalMonitoringAvailable</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>moduleClassID</CODE> - The Module classID of the ServiceMonitor.  Note that the ServiceMonitor								moduleClassID is not the same as moduleClassID of the Service 								being monitored.</DL></DD></DL><HR><A NAME="getSupportedReportRates()"><!-- --></A><H3>getSupportedReportRates</H3><PRE>public long[] <B>getSupportedReportRates</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></B></DD><DD>Asynchronous reporting of Monitored data may be obtained only at rates supported by 		the MonitorManager on the peer.  This method returns the locally supported rates (in milliseconds)<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html#getSupportedReportRates()">getSupportedReportRates</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isSupportedReportRate(long)"><!-- --></A><H3>isSupportedReportRate</H3><PRE>public boolean <B>isSupportedReportRate</B>(long&nbsp;reportRate)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></B></DD><DD>Asynchronous reporting of Monitored data may be obtained only at rates supported by 		the MonitorManager on the peer.  This method validates whether a specific		rate (in milliseconds) is locally supported.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html#isSupportedReportRate(long)">isSupportedReportRate</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getBestReportRate(long)"><!-- --></A><H3>getBestReportRate</H3><PRE>public long <B>getBestReportRate</B>(long&nbsp;desiredReportRate)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></B></DD><DD>Asynchronous reporting of Monitored data may be obtained only at rates supported by 		the MonitorManager on the peer.  This method supplies the closest (rounded up) 		rate (in milliseconds) to the specified rate that is locally supported.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html#getBestReportRate(long)">getBestReportRate</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPeerMonitorInfo()"><!-- --></A><H3>getPeerMonitorInfo</H3><PRE>public <A HREF="../../../../net/jxta/meter/PeerMonitorInfo.html" title="class in net.jxta.meter">PeerMonitorInfo</A> <B>getPeerMonitorInfo</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></B></DD><DD>Obtain the monitoring capabilities of the Local Peer. <P>		 The PeerMonitorInfo provides:					<UL>	  					<LI> Whether any monitoring is available for this Peer </LI>	  					<LI> The supported rates of asynchronous monitoring </LI>	  					<LI> A list (as ModuleClassIDs) of ServiceMonitors attached to this Peer </LI>					</UL><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html#getPeerMonitorInfo()">getPeerMonitorInfo</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPeerMonitorInfo(net.jxta.peer.PeerID, net.jxta.meter.PeerMonitorInfoListener, long)"><!-- --></A><H3>getPeerMonitorInfo</H3><PRE>public void <B>getPeerMonitorInfo</B>(<A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A>&nbsp;peerID,                               <A HREF="../../../../net/jxta/meter/PeerMonitorInfoListener.html" title="interface in net.jxta.meter">PeerMonitorInfoListener</A>&nbsp;peerMonitorInfoListener,                               long&nbsp;timeout)                        throws <A HREF="../../../../net/jxta/meter/MonitorException.html" title="class in net.jxta.meter">MonitorException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></B></DD><DD>Obtain the monitoring capabilities of a Remote Peer. <P>		 The PeerMonitorInfo provides:					<UL>	  					<LI> Whether any monitoring is available for this Peer </LI>	  					<LI> The supported rates of asynchronous monitoring </LI>	  					<LI> A list (as ModuleClassIDs) of ServiceMonitors attached to this Peer </LI>					</UL>		Via the PeerMonitorInfoListener, you will be informed of the PeerMonitorInfo or why it was		not provided (error, timeout, unavailable, etc)<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html#getPeerMonitorInfo(net.jxta.peer.PeerID, net.jxta.meter.PeerMonitorInfoListener, long)">getPeerMonitorInfo</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/peer/PeerInfoService.html" title="interface in net.jxta.peer">PeerInfoService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>peerID</CODE> - The PeerID of the Peer you wish information about<DD><CODE>peerMonitorInfoListener</CODE> - The Listener to be told about the obtained PeerMonitorInfo<DD><CODE>timeout</CODE> - Generate a timeout event if no answer has been received in this time (in Milliseconds)<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/meter/MonitorException.html" title="class in net.jxta.meter">MonitorException</A></CODE></DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -