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

📄 endpointserviceimpl.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DL><DL></DL></DL><HR><A NAME="ENDPOINTSERVICE_NAME"><!-- --></A><H3>ENDPOINTSERVICE_NAME</H3><PRE>public static final java.lang.String <B>ENDPOINTSERVICE_NAME</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.ENDPOINTSERVICE_NAME">Constant Field Values</A></DL></DL><HR><A NAME="ENDPOINTSERVICE_PREFIX"><!-- --></A><H3>ENDPOINTSERVICE_PREFIX</H3><PRE>public static final java.lang.String <B>ENDPOINTSERVICE_PREFIX</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.ENDPOINTSERVICE_PREFIX">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_EMPTY_NS"><!-- --></A><H3>MESSAGE_EMPTY_NS</H3><PRE>public static final java.lang.String <B>MESSAGE_EMPTY_NS</B></PRE><DL><DD>The Message empty namespace. This namespace is reserved for use by  applications. It will not be used by core protocols.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_EMPTY_NS">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_JXTA_NS"><!-- --></A><H3>MESSAGE_JXTA_NS</H3><PRE>public static final java.lang.String <B>MESSAGE_JXTA_NS</B></PRE><DL><DD>The Message "jxta" namespace. This namespace is reserved for use by  core protocols. It will not be used by applications.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_JXTA_NS">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_SOURCE_NS"><!-- --></A><H3>MESSAGE_SOURCE_NS</H3><PRE>public static final java.lang.String <B>MESSAGE_SOURCE_NS</B></PRE><DL><DD>Namespace in which the message source address will be placed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_SOURCE_NS">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_SOURCE_NAME"><!-- --></A><H3>MESSAGE_SOURCE_NAME</H3><PRE>public static final java.lang.String <B>MESSAGE_SOURCE_NAME</B></PRE><DL><DD>Element name in which the message source address will be placed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_SOURCE_NAME">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_DESTINATION_NS"><!-- --></A><H3>MESSAGE_DESTINATION_NS</H3><PRE>public static final java.lang.String <B>MESSAGE_DESTINATION_NS</B></PRE><DL><DD>Namespace in which the message destination address will be placed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_DESTINATION_NS">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_DESTINATION_NAME"><!-- --></A><H3>MESSAGE_DESTINATION_NAME</H3><PRE>public static final java.lang.String <B>MESSAGE_DESTINATION_NAME</B></PRE><DL><DD>Element name in which the message destination address will be placed.  This element is used for loopback detection during propagate. Only  propagate messages currently contain this element.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_DESTINATION_NAME">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_SRCPEERHDR_NS"><!-- --></A><H3>MESSAGE_SRCPEERHDR_NS</H3><PRE>public static final java.lang.String <B>MESSAGE_SRCPEERHDR_NS</B></PRE><DL><DD>Namespace in which the message source peer address will be placed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_SRCPEERHDR_NS">Constant Field Values</A></DL></DL><HR><A NAME="MESSAGE_SRCPEERHDR_NAME"><!-- --></A><H3>MESSAGE_SRCPEERHDR_NAME</H3><PRE>public static final java.lang.String <B>MESSAGE_SRCPEERHDR_NAME</B></PRE><DL><DD>Element name in which the message source peer address will be placed.  This element is used for loopback detection during propagate. Only  propagate messages currently contain this element.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.endpoint.EndpointServiceImpl.MESSAGE_SRCPEERHDR_NAME">Constant Field Values</A></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="EndpointServiceImpl()"><!-- --></A><H3>EndpointServiceImpl</H3><PRE>public <B>EndpointServiceImpl</B>()</PRE><DL><DD>Create a new EndpointService.<P></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="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>Initialize the application passing it its peer group and advertisement.<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> - PeerGroup this application is started from<DD><CODE>assignedID</CODE> - The ID which this instance should be known by.<DD><CODE>impl</CODE> - The advertisement for this application<DT><B>Throws:</B><DD><CODE><A HREF="../../../../net/jxta/exception/PeerGroupException.html" title="class in net.jxta.exception">PeerGroupException</A></CODE> - failure to initialize this application.<DT><B>Since:</B></DT>  <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="startApp(java.lang.String[])"><!-- --></A><H3>startApp</H3><PRE>public int <B>startApp</B>(java.lang.String[]&nbsp;args)</PRE><DL><DD>Some Modules will wait for this method being invoked, before completing their initializatino to the point that they are fully functional. That is also the opportunity to supply arbitrary arguments (mostly to applications).  <p/>If this module is a <A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup"><CODE>PeerGroup</CODE></A> service, it may be invoked several times depending on its return value.  <p/>Note: the name of this method is historical and no-longer adequate.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])">startApp</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>args</CODE> - An array of Strings forming the parameters for this Module.<DT><B>Returns:</B><DD>int A status indication which may be one of  <A HREF="../../../../net/jxta/platform/Module.html#START_OK"><CODE>Module.START_OK</CODE></A>, <A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_PROGRESS"><CODE>Module.START_AGAIN_PROGRESS</CODE></A>, <A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_STALLED"><CODE>Module.START_AGAIN_STALLED</CODE></A>, which indicates partial or complete success, or any other value (negative values are recommended for future compatibility), which indicates failure.</DL></DD></DL><HR><A NAME="stopApp()"><!-- --></A><H3>stopApp</H3><PRE>public void <B>stopApp</B>()</PRE><DL><DD>We are asked to stop. Do nothing; the protocols and services are going to be stopped as well. When they are, they will unreference us and we'll go into oblivion. That's all that's needed.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/platform/Module.html#stopApp()">stopApp</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></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 EndpointServiceImpl is attached.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/endpoint/EndpointService.html#getGroup()">getGroup</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/endpoint/EndpointService.html" title="interface in net.jxta.endpoint">EndpointService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>PeerGroup the group.</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

⌨️ 快捷键说明

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