ServerAddress.Builder.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <!DOCTYPE HTML>
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (11.0.18) on Tue Sep 05 16:02:52 CST 2023 -->
  6. <title>ServerAddress.Builder</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <meta name="dc.created" content="2023-09-05">
  9. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  10. <link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.min.css" title="Style">
  11. <link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style">
  12. <script type="text/javascript" src="../../../script.js"></script>
  13. <script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
  14. <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
  15. <!--[if IE]>
  16. <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
  17. <![endif]-->
  18. <script type="text/javascript" src="../../../jquery/jquery-3.6.0.min.js"></script>
  19. <script type="text/javascript" src="../../../jquery/jquery-ui.min.js"></script>
  20. </head>
  21. <body>
  22. <script type="text/javascript"><!--
  23. try {
  24. if (location.href.indexOf('is-external=true') == -1) {
  25. parent.document.title="ServerAddress.Builder";
  26. }
  27. }
  28. catch(err) {
  29. }
  30. //-->
  31. var data = {"i0":10,"i1":10,"i2":10,"i3":10};
  32. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  33. var altColor = "altColor";
  34. var rowColor = "rowColor";
  35. var tableTab = "tableTab";
  36. var activeTableTab = "activeTableTab";
  37. var pathtoroot = "../../../";
  38. var useModuleDirectories = true;
  39. loadScripts(document, 'script');</script>
  40. <noscript>
  41. <div>JavaScript is disabled on your browser.</div>
  42. </noscript>
  43. <header role="banner">
  44. <nav role="navigation">
  45. <div class="fixedNav">
  46. <!-- ========= START OF TOP NAVBAR ======= -->
  47. <div class="topNav"><a id="navbar.top">
  48. <!-- -->
  49. </a>
  50. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  51. <a id="navbar.top.firstrow">
  52. <!-- -->
  53. </a>
  54. <ul class="navList" title="Navigation">
  55. <li><a href="../../../index.html">Overview</a></li>
  56. <li><a href="package-summary.html">Package</a></li>
  57. <li class="navBarCell1Rev">Class</li>
  58. <li><a href="package-tree.html">Tree</a></li>
  59. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  60. <li><a href="../../../index-files/index-1.html">Index</a></li>
  61. <li><a href="../../../help-doc.html">Help</a></li>
  62. </ul>
  63. </div>
  64. <div class="subNav">
  65. <ul class="navList" id="allclasses_navbar_top">
  66. <li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
  67. </ul>
  68. <ul class="navListSearch">
  69. <li><label for="search">SEARCH:</label>
  70. <input type="text" id="search" value="search" disabled="disabled">
  71. <input type="reset" id="reset" value="reset" disabled="disabled">
  72. </li>
  73. </ul>
  74. <div>
  75. <script type="text/javascript"><!--
  76. allClassesLink = document.getElementById("allclasses_navbar_top");
  77. if(window==top) {
  78. allClassesLink.style.display = "block";
  79. }
  80. else {
  81. allClassesLink.style.display = "none";
  82. }
  83. //-->
  84. </script>
  85. <noscript>
  86. <div>JavaScript is disabled on your browser.</div>
  87. </noscript>
  88. </div>
  89. <div>
  90. <ul class="subNavList">
  91. <li>Summary:&nbsp;</li>
  92. <li>Nested&nbsp;|&nbsp;</li>
  93. <li>Field&nbsp;|&nbsp;</li>
  94. <li>Constr&nbsp;|&nbsp;</li>
  95. <li><a href="#method.summary">Method</a></li>
  96. </ul>
  97. <ul class="subNavList">
  98. <li>Detail:&nbsp;</li>
  99. <li>Field&nbsp;|&nbsp;</li>
  100. <li>Constr&nbsp;|&nbsp;</li>
  101. <li><a href="#method.detail">Method</a></li>
  102. </ul>
  103. </div>
  104. <a id="skip.navbar.top">
  105. <!-- -->
  106. </a></div>
  107. <!-- ========= END OF TOP NAVBAR ========= -->
  108. </div>
  109. <div class="navPadding">&nbsp;</div>
  110. <script type="text/javascript"><!--
  111. $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  112. //-->
  113. </script>
  114. </nav>
  115. </header>
  116. <!-- ======== START OF CLASS DATA ======== -->
  117. <main role="main">
  118. <div class="header">
  119. <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">io.milvus.param</a></div>
  120. <h2 title="Class ServerAddress.Builder" class="title">Class ServerAddress.Builder</h2>
  121. </div>
  122. <div class="contentContainer">
  123. <ul class="inheritance">
  124. <li>java.lang.Object</li>
  125. <li>
  126. <ul class="inheritance">
  127. <li>io.milvus.param.ServerAddress.Builder</li>
  128. </ul>
  129. </li>
  130. </ul>
  131. <div class="description">
  132. <ul class="blockList">
  133. <li class="blockList">
  134. <dl>
  135. <dt>Enclosing class:</dt>
  136. <dd><a href="ServerAddress.html" title="class in io.milvus.param">ServerAddress</a></dd>
  137. </dl>
  138. <hr>
  139. <pre>public static class <span class="typeNameLabel">ServerAddress.Builder</span>
  140. extends java.lang.Object</pre>
  141. </li>
  142. </ul>
  143. </div>
  144. <div class="summary">
  145. <ul class="blockList">
  146. <li class="blockList">
  147. <!-- ========== METHOD SUMMARY =========== -->
  148. <section>
  149. <ul class="blockList">
  150. <li class="blockList"><a id="method.summary">
  151. <!-- -->
  152. </a>
  153. <h3>Method Summary</h3>
  154. <table class="memberSummary">
  155. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  156. <tr>
  157. <th class="colFirst" scope="col">Modifier and Type</th>
  158. <th class="colSecond" scope="col">Method</th>
  159. <th class="colLast" scope="col">Description</th>
  160. </tr>
  161. <tr id="i0" class="altColor">
  162. <td class="colFirst"><code><a href="ServerAddress.html" title="class in io.milvus.param">ServerAddress</a></code></td>
  163. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#build()">build</a></span>()</code></th>
  164. <td class="colLast">
  165. <div class="block">Verifies parameters and creates a new <a href="ServerAddress.html" title="class in io.milvus.param"><code>ServerAddress</code></a> instance.</div>
  166. </td>
  167. </tr>
  168. <tr id="i1" class="rowColor">
  169. <td class="colFirst"><code><a href="ServerAddress.Builder.html" title="class in io.milvus.param">ServerAddress.Builder</a></code></td>
  170. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withHealthPort(int)">withHealthPort</a></span>&#8203;(int&nbsp;port)</code></th>
  171. <td class="colLast">
  172. <div class="block">Sets the cluster health port.</div>
  173. </td>
  174. </tr>
  175. <tr id="i2" class="altColor">
  176. <td class="colFirst"><code><a href="ServerAddress.Builder.html" title="class in io.milvus.param">ServerAddress.Builder</a></code></td>
  177. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withHost(java.lang.String)">withHost</a></span>&#8203;(@NonNull java.lang.String&nbsp;host)</code></th>
  178. <td class="colLast">
  179. <div class="block">Sets the host name/address.</div>
  180. </td>
  181. </tr>
  182. <tr id="i3" class="rowColor">
  183. <td class="colFirst"><code><a href="ServerAddress.Builder.html" title="class in io.milvus.param">ServerAddress.Builder</a></code></td>
  184. <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withPort(int)">withPort</a></span>&#8203;(int&nbsp;port)</code></th>
  185. <td class="colLast">
  186. <div class="block">Sets the connection port.</div>
  187. </td>
  188. </tr>
  189. </table>
  190. <ul class="blockList">
  191. <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
  192. <!-- -->
  193. </a>
  194. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  195. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  196. </ul>
  197. </li>
  198. </ul>
  199. </section>
  200. </li>
  201. </ul>
  202. </div>
  203. <div class="details">
  204. <ul class="blockList">
  205. <li class="blockList">
  206. <!-- ============ METHOD DETAIL ========== -->
  207. <section>
  208. <ul class="blockList">
  209. <li class="blockList"><a id="method.detail">
  210. <!-- -->
  211. </a>
  212. <h3>Method Detail</h3>
  213. <a id="withHost(java.lang.String)">
  214. <!-- -->
  215. </a>
  216. <ul class="blockList">
  217. <li class="blockList">
  218. <h4>withHost</h4>
  219. <pre class="methodSignature">public&nbsp;<a href="ServerAddress.Builder.html" title="class in io.milvus.param">ServerAddress.Builder</a>&nbsp;withHost&#8203;(@NonNull
  220. @NonNull java.lang.String&nbsp;host)</pre>
  221. <div class="block">Sets the host name/address.</div>
  222. <dl>
  223. <dt><span class="paramLabel">Parameters:</span></dt>
  224. <dd><code>host</code> - host name/address</dd>
  225. <dt><span class="returnLabel">Returns:</span></dt>
  226. <dd><code>Builder</code></dd>
  227. </dl>
  228. </li>
  229. </ul>
  230. <a id="withPort(int)">
  231. <!-- -->
  232. </a>
  233. <ul class="blockList">
  234. <li class="blockList">
  235. <h4>withPort</h4>
  236. <pre class="methodSignature">public&nbsp;<a href="ServerAddress.Builder.html" title="class in io.milvus.param">ServerAddress.Builder</a>&nbsp;withPort&#8203;(int&nbsp;port)</pre>
  237. <div class="block">Sets the connection port. Port value must be greater than zero and less than 65536.</div>
  238. <dl>
  239. <dt><span class="paramLabel">Parameters:</span></dt>
  240. <dd><code>port</code> - port value</dd>
  241. <dt><span class="returnLabel">Returns:</span></dt>
  242. <dd><code>Builder</code></dd>
  243. </dl>
  244. </li>
  245. </ul>
  246. <a id="withHealthPort(int)">
  247. <!-- -->
  248. </a>
  249. <ul class="blockList">
  250. <li class="blockList">
  251. <h4>withHealthPort</h4>
  252. <pre class="methodSignature">public&nbsp;<a href="ServerAddress.Builder.html" title="class in io.milvus.param">ServerAddress.Builder</a>&nbsp;withHealthPort&#8203;(int&nbsp;port)</pre>
  253. <div class="block">Sets the cluster health port. Port value must be greater than zero and less than 65536.</div>
  254. <dl>
  255. <dt><span class="paramLabel">Parameters:</span></dt>
  256. <dd><code>port</code> - port value</dd>
  257. <dt><span class="returnLabel">Returns:</span></dt>
  258. <dd><code>Builder</code></dd>
  259. </dl>
  260. </li>
  261. </ul>
  262. <a id="build()">
  263. <!-- -->
  264. </a>
  265. <ul class="blockListLast">
  266. <li class="blockList">
  267. <h4>build</h4>
  268. <pre class="methodSignature">public&nbsp;<a href="ServerAddress.html" title="class in io.milvus.param">ServerAddress</a>&nbsp;build()
  269. throws <a href="../exception/ParamException.html" title="class in io.milvus.exception">ParamException</a></pre>
  270. <div class="block">Verifies parameters and creates a new <a href="ServerAddress.html" title="class in io.milvus.param"><code>ServerAddress</code></a> instance.</div>
  271. <dl>
  272. <dt><span class="returnLabel">Returns:</span></dt>
  273. <dd><a href="ServerAddress.html" title="class in io.milvus.param"><code>ServerAddress</code></a></dd>
  274. <dt><span class="throwsLabel">Throws:</span></dt>
  275. <dd><code><a href="../exception/ParamException.html" title="class in io.milvus.exception">ParamException</a></code></dd>
  276. </dl>
  277. </li>
  278. </ul>
  279. </li>
  280. </ul>
  281. </section>
  282. </li>
  283. </ul>
  284. </div>
  285. </div>
  286. </main>
  287. <!-- ========= END OF CLASS DATA ========= -->
  288. <footer role="contentinfo">
  289. <nav role="navigation">
  290. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  291. <div class="bottomNav"><a id="navbar.bottom">
  292. <!-- -->
  293. </a>
  294. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  295. <a id="navbar.bottom.firstrow">
  296. <!-- -->
  297. </a>
  298. <ul class="navList" title="Navigation">
  299. <li><a href="../../../index.html">Overview</a></li>
  300. <li><a href="package-summary.html">Package</a></li>
  301. <li class="navBarCell1Rev">Class</li>
  302. <li><a href="package-tree.html">Tree</a></li>
  303. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  304. <li><a href="../../../index-files/index-1.html">Index</a></li>
  305. <li><a href="../../../help-doc.html">Help</a></li>
  306. </ul>
  307. </div>
  308. <div class="subNav">
  309. <ul class="navList" id="allclasses_navbar_bottom">
  310. <li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
  311. </ul>
  312. <div>
  313. <script type="text/javascript"><!--
  314. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  315. if(window==top) {
  316. allClassesLink.style.display = "block";
  317. }
  318. else {
  319. allClassesLink.style.display = "none";
  320. }
  321. //-->
  322. </script>
  323. <noscript>
  324. <div>JavaScript is disabled on your browser.</div>
  325. </noscript>
  326. </div>
  327. <div>
  328. <ul class="subNavList">
  329. <li>Summary:&nbsp;</li>
  330. <li>Nested&nbsp;|&nbsp;</li>
  331. <li>Field&nbsp;|&nbsp;</li>
  332. <li>Constr&nbsp;|&nbsp;</li>
  333. <li><a href="#method.summary">Method</a></li>
  334. </ul>
  335. <ul class="subNavList">
  336. <li>Detail:&nbsp;</li>
  337. <li>Field&nbsp;|&nbsp;</li>
  338. <li>Constr&nbsp;|&nbsp;</li>
  339. <li><a href="#method.detail">Method</a></li>
  340. </ul>
  341. </div>
  342. <a id="skip.navbar.bottom">
  343. <!-- -->
  344. </a></div>
  345. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  346. </nav>
  347. </footer>
  348. </body>
  349. </html>