[83] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!-- NewPage --> |
---|
| 3 | <html lang="es"> |
---|
| 4 | <head> |
---|
[85] | 5 | <!-- Generated by javadoc (version 1.7.0_25) on Wed Jul 10 13:13:17 CEST 2013 --> |
---|
[83] | 6 | <title>Broker</title> |
---|
[85] | 7 | <meta name="date" content="2013-07-10"> |
---|
[83] | 8 | <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
---|
| 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <script type="text/javascript"><!-- |
---|
| 12 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 13 | parent.document.title="Broker"; |
---|
| 14 | } |
---|
| 15 | //--> |
---|
| 16 | </script> |
---|
| 17 | <noscript> |
---|
| 18 | <div>JavaScript is disabled on your browser.</div> |
---|
| 19 | </noscript> |
---|
| 20 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 21 | <div class="topNav"><a name="navbar_top"> |
---|
| 22 | <!-- --> |
---|
| 23 | </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
---|
| 24 | <!-- --> |
---|
| 25 | </a> |
---|
| 26 | <ul class="navList" title="Navigation"> |
---|
| 27 | <li><a href="../../../overview-summary.html">Overview</a></li> |
---|
| 28 | <li><a href="package-summary.html">Package</a></li> |
---|
| 29 | <li class="navBarCell1Rev">Class</li> |
---|
| 30 | <li><a href="class-use/Broker.html">Use</a></li> |
---|
| 31 | <li><a href="package-tree.html">Tree</a></li> |
---|
| 32 | <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
---|
| 33 | <li><a href="../../../index-files/index-1.html">Index</a></li> |
---|
| 34 | <li><a href="../../../help-doc.html">Help</a></li> |
---|
| 35 | </ul> |
---|
| 36 | </div> |
---|
| 37 | <div class="subNav"> |
---|
| 38 | <ul class="navList"> |
---|
| 39 | <li>Prev Class</li> |
---|
| 40 | <li>Next Class</li> |
---|
| 41 | </ul> |
---|
| 42 | <ul class="navList"> |
---|
| 43 | <li><a href="../../../index.html?omq/common/broker/Broker.html" target="_top">Frames</a></li> |
---|
| 44 | <li><a href="Broker.html" target="_top">No Frames</a></li> |
---|
| 45 | </ul> |
---|
| 46 | <ul class="navList" id="allclasses_navbar_top"> |
---|
| 47 | <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
---|
| 48 | </ul> |
---|
| 49 | <div> |
---|
| 50 | <script type="text/javascript"><!-- |
---|
| 51 | allClassesLink = document.getElementById("allclasses_navbar_top"); |
---|
| 52 | if(window==top) { |
---|
| 53 | allClassesLink.style.display = "block"; |
---|
| 54 | } |
---|
| 55 | else { |
---|
| 56 | allClassesLink.style.display = "none"; |
---|
| 57 | } |
---|
| 58 | //--> |
---|
| 59 | </script> |
---|
| 60 | </div> |
---|
| 61 | <div> |
---|
| 62 | <ul class="subNavList"> |
---|
| 63 | <li>Summary: </li> |
---|
| 64 | <li>Nested | </li> |
---|
| 65 | <li>Field | </li> |
---|
| 66 | <li><a href="#constructor_summary">Constr</a> | </li> |
---|
| 67 | <li><a href="#method_summary">Method</a></li> |
---|
| 68 | </ul> |
---|
| 69 | <ul class="subNavList"> |
---|
| 70 | <li>Detail: </li> |
---|
| 71 | <li>Field | </li> |
---|
| 72 | <li><a href="#constructor_detail">Constr</a> | </li> |
---|
| 73 | <li><a href="#method_detail">Method</a></li> |
---|
| 74 | </ul> |
---|
| 75 | </div> |
---|
| 76 | <a name="skip-navbar_top"> |
---|
| 77 | <!-- --> |
---|
| 78 | </a></div> |
---|
| 79 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 80 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 81 | <div class="header"> |
---|
| 82 | <div class="subTitle">omq.common.broker</div> |
---|
| 83 | <h2 title="Class Broker" class="title">Class Broker</h2> |
---|
| 84 | </div> |
---|
| 85 | <div class="contentContainer"> |
---|
| 86 | <ul class="inheritance"> |
---|
| 87 | <li>java.lang.Object</li> |
---|
| 88 | <li> |
---|
| 89 | <ul class="inheritance"> |
---|
| 90 | <li>omq.common.broker.Broker</li> |
---|
| 91 | </ul> |
---|
| 92 | </li> |
---|
| 93 | </ul> |
---|
| 94 | <div class="description"> |
---|
| 95 | <ul class="blockList"> |
---|
| 96 | <li class="blockList"> |
---|
| 97 | <hr> |
---|
| 98 | <br> |
---|
| 99 | <pre>public class <span class="strong">Broker</span> |
---|
| 100 | extends java.lang.Object</pre> |
---|
| 101 | <div class="block">A "broker" allows a new connection to a RabbitMQ server. Under this |
---|
| 102 | connection it can have binded object and proxies.</div> |
---|
| 103 | <dl><dt><span class="strong">Author:</span></dt> |
---|
| 104 | <dd>Sergi Toda <sergi.toda@estudiants.urv.cat></dd></dl> |
---|
| 105 | </li> |
---|
| 106 | </ul> |
---|
| 107 | </div> |
---|
| 108 | <div class="summary"> |
---|
| 109 | <ul class="blockList"> |
---|
| 110 | <li class="blockList"> |
---|
| 111 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 112 | <ul class="blockList"> |
---|
| 113 | <li class="blockList"><a name="constructor_summary"> |
---|
| 114 | <!-- --> |
---|
| 115 | </a> |
---|
| 116 | <h3>Constructor Summary</h3> |
---|
| 117 | <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
---|
| 118 | <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
---|
| 119 | <tr> |
---|
| 120 | <th class="colOne" scope="col">Constructor and Description</th> |
---|
| 121 | </tr> |
---|
| 122 | <tr class="altColor"> |
---|
| 123 | <td class="colOne"><code><strong><a href="../../../omq/common/broker/Broker.html#Broker(java.util.Properties)">Broker</a></strong>(java.util.Properties env)</code> </td> |
---|
| 124 | </tr> |
---|
| 125 | </table> |
---|
| 126 | </li> |
---|
| 127 | </ul> |
---|
| 128 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 129 | <ul class="blockList"> |
---|
| 130 | <li class="blockList"><a name="method_summary"> |
---|
| 131 | <!-- --> |
---|
| 132 | </a> |
---|
| 133 | <h3>Method Summary</h3> |
---|
| 134 | <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
---|
| 135 | <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
---|
| 136 | <tr> |
---|
| 137 | <th class="colFirst" scope="col">Modifier and Type</th> |
---|
| 138 | <th class="colLast" scope="col">Method and Description</th> |
---|
| 139 | </tr> |
---|
| 140 | <tr class="altColor"> |
---|
| 141 | <td class="colFirst"><code>void</code></td> |
---|
| 142 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#bind(java.lang.String, omq.server.RemoteObject)">bind</a></strong>(java.lang.String reference, |
---|
| 143 | <a href="../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a> remote)</code> |
---|
| 144 | <div class="block">Binds the reference to the specified remote object.</div> |
---|
| 145 | </td> |
---|
| 146 | </tr> |
---|
| 147 | <tr class="rowColor"> |
---|
| 148 | <td class="colFirst"><code>void</code></td> |
---|
| 149 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#bind(java.lang.String, omq.server.RemoteObject, java.util.Properties)">bind</a></strong>(java.lang.String reference, |
---|
| 150 | <a href="../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a> remote, |
---|
| 151 | java.util.Properties env)</code> |
---|
| 152 | <div class="block">Binds the reference to the specified remote object.</div> |
---|
| 153 | </td> |
---|
| 154 | </tr> |
---|
| 155 | <tr class="altColor"> |
---|
| 156 | <td class="colFirst"><code>void</code></td> |
---|
| 157 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#closeConnection()">closeConnection</a></strong>()</code> |
---|
| 158 | <div class="block">This method close the broker's connection</div> |
---|
| 159 | </td> |
---|
| 160 | </tr> |
---|
| 161 | <tr class="rowColor"> |
---|
| 162 | <td class="colFirst"><code>com.rabbitmq.client.Channel</code></td> |
---|
| 163 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#getChannel()">getChannel</a></strong>()</code> |
---|
| 164 | <div class="block">Return the broker's channel</div> |
---|
| 165 | </td> |
---|
| 166 | </tr> |
---|
| 167 | <tr class="altColor"> |
---|
| 168 | <td class="colFirst"><code>com.rabbitmq.client.Connection</code></td> |
---|
| 169 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#getConnection()">getConnection</a></strong>()</code> </td> |
---|
| 170 | </tr> |
---|
| 171 | <tr class="rowColor"> |
---|
| 172 | <td class="colFirst"><code>java.util.Properties</code></td> |
---|
| 173 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#getEnvironment()">getEnvironment</a></strong>()</code> </td> |
---|
| 174 | </tr> |
---|
| 175 | <tr class="altColor"> |
---|
| 176 | <td class="colFirst"><code>com.rabbitmq.client.Channel</code></td> |
---|
| 177 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#getNewChannel()">getNewChannel</a></strong>()</code> |
---|
| 178 | <div class="block">Creates a new channel using the Broker's connection</div> |
---|
| 179 | </td> |
---|
| 180 | </tr> |
---|
| 181 | <tr class="rowColor"> |
---|
| 182 | <td class="colFirst"><code><a href="../../../omq/client/listener/ResponseListener.html" title="class in omq.client.listener">ResponseListener</a></code></td> |
---|
| 183 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#getResponseListener()">getResponseListener</a></strong>()</code> </td> |
---|
| 184 | </tr> |
---|
| 185 | <tr class="altColor"> |
---|
| 186 | <td class="colFirst"><code><a href="../../../omq/common/util/Serializer.html" title="class in omq.common.util">Serializer</a></code></td> |
---|
| 187 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#getSerializer()">getSerializer</a></strong>()</code> </td> |
---|
| 188 | </tr> |
---|
| 189 | <tr class="rowColor"> |
---|
| 190 | <td class="colFirst"><code><T extends <a href="../../../omq/Remote.html" title="interface in omq">Remote</a>> <br>T</code></td> |
---|
| 191 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#lookup(java.lang.String, java.lang.Class)">lookup</a></strong>(java.lang.String reference, |
---|
| 192 | java.lang.Class<T> contract)</code> |
---|
| 193 | <div class="block">Returns the remote object for specified reference.</div> |
---|
| 194 | </td> |
---|
| 195 | </tr> |
---|
| 196 | <tr class="altColor"> |
---|
| 197 | <td class="colFirst"><code><T extends <a href="../../../omq/Remote.html" title="interface in omq">Remote</a>> <br>T</code></td> |
---|
| 198 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#lookupMulti(java.lang.String, java.lang.Class)">lookupMulti</a></strong>(java.lang.String reference, |
---|
| 199 | java.lang.Class<T> contract)</code> |
---|
| 200 | <div class="block">Returns the remote object for specified reference.</div> |
---|
| 201 | </td> |
---|
| 202 | </tr> |
---|
| 203 | <tr class="rowColor"> |
---|
| 204 | <td class="colFirst"><code>void</code></td> |
---|
| 205 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#stopBroker()">stopBroker</a></strong>()</code> |
---|
| 206 | <div class="block">This method stops the broker's connection and all the threads created</div> |
---|
| 207 | </td> |
---|
| 208 | </tr> |
---|
| 209 | <tr class="altColor"> |
---|
| 210 | <td class="colFirst"><code>void</code></td> |
---|
| 211 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#tryConnection(java.util.Properties)">tryConnection</a></strong>(java.util.Properties env)</code> |
---|
| 212 | <div class="block">This function is used to send a ping message to see if the connection |
---|
| 213 | works</div> |
---|
| 214 | </td> |
---|
| 215 | </tr> |
---|
| 216 | <tr class="rowColor"> |
---|
| 217 | <td class="colFirst"><code>void</code></td> |
---|
| 218 | <td class="colLast"><code><strong><a href="../../../omq/common/broker/Broker.html#unbind(java.lang.String)">unbind</a></strong>(java.lang.String reference)</code> |
---|
| 219 | <div class="block">Unbinds a remoteObject from its reference and kills all the threads |
---|
| 220 | created.</div> |
---|
| 221 | </td> |
---|
| 222 | </tr> |
---|
| 223 | </table> |
---|
| 224 | <ul class="blockList"> |
---|
| 225 | <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
---|
| 226 | <!-- --> |
---|
| 227 | </a> |
---|
| 228 | <h3>Methods inherited from class java.lang.Object</h3> |
---|
| 229 | <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
---|
| 230 | </ul> |
---|
| 231 | </li> |
---|
| 232 | </ul> |
---|
| 233 | </li> |
---|
| 234 | </ul> |
---|
| 235 | </div> |
---|
| 236 | <div class="details"> |
---|
| 237 | <ul class="blockList"> |
---|
| 238 | <li class="blockList"> |
---|
| 239 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 240 | <ul class="blockList"> |
---|
| 241 | <li class="blockList"><a name="constructor_detail"> |
---|
| 242 | <!-- --> |
---|
| 243 | </a> |
---|
| 244 | <h3>Constructor Detail</h3> |
---|
| 245 | <a name="Broker(java.util.Properties)"> |
---|
| 246 | <!-- --> |
---|
| 247 | </a> |
---|
| 248 | <ul class="blockListLast"> |
---|
| 249 | <li class="blockList"> |
---|
| 250 | <h4>Broker</h4> |
---|
| 251 | <pre>public Broker(java.util.Properties env) |
---|
| 252 | throws java.lang.Exception</pre> |
---|
| 253 | <dl><dt><span class="strong">Throws:</span></dt> |
---|
| 254 | <dd><code>java.lang.Exception</code></dd></dl> |
---|
| 255 | </li> |
---|
| 256 | </ul> |
---|
| 257 | </li> |
---|
| 258 | </ul> |
---|
| 259 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 260 | <ul class="blockList"> |
---|
| 261 | <li class="blockList"><a name="method_detail"> |
---|
| 262 | <!-- --> |
---|
| 263 | </a> |
---|
| 264 | <h3>Method Detail</h3> |
---|
| 265 | <a name="stopBroker()"> |
---|
| 266 | <!-- --> |
---|
| 267 | </a> |
---|
| 268 | <ul class="blockList"> |
---|
| 269 | <li class="blockList"> |
---|
| 270 | <h4>stopBroker</h4> |
---|
| 271 | <pre>public void stopBroker() |
---|
| 272 | throws java.lang.Exception</pre> |
---|
| 273 | <div class="block">This method stops the broker's connection and all the threads created</div> |
---|
| 274 | <dl><dt><span class="strong">Throws:</span></dt> |
---|
| 275 | <dd><code>java.lang.Exception</code></dd></dl> |
---|
| 276 | </li> |
---|
| 277 | </ul> |
---|
| 278 | <a name="getConnection()"> |
---|
| 279 | <!-- --> |
---|
| 280 | </a> |
---|
| 281 | <ul class="blockList"> |
---|
| 282 | <li class="blockList"> |
---|
| 283 | <h4>getConnection</h4> |
---|
| 284 | <pre>public com.rabbitmq.client.Connection getConnection() |
---|
| 285 | throws java.lang.Exception</pre> |
---|
| 286 | <dl><dt><span class="strong">Returns:</span></dt><dd>Broker's connection</dd> |
---|
| 287 | <dt><span class="strong">Throws:</span></dt> |
---|
| 288 | <dd><code>java.lang.Exception</code></dd></dl> |
---|
| 289 | </li> |
---|
| 290 | </ul> |
---|
| 291 | <a name="closeConnection()"> |
---|
| 292 | <!-- --> |
---|
| 293 | </a> |
---|
| 294 | <ul class="blockList"> |
---|
| 295 | <li class="blockList"> |
---|
| 296 | <h4>closeConnection</h4> |
---|
| 297 | <pre>public void closeConnection() |
---|
| 298 | throws java.io.IOException</pre> |
---|
| 299 | <div class="block">This method close the broker's connection</div> |
---|
| 300 | <dl><dt><span class="strong">Throws:</span></dt> |
---|
| 301 | <dd><code>java.io.IOException</code></dd></dl> |
---|
| 302 | </li> |
---|
| 303 | </ul> |
---|
| 304 | <a name="getChannel()"> |
---|
| 305 | <!-- --> |
---|
| 306 | </a> |
---|
| 307 | <ul class="blockList"> |
---|
| 308 | <li class="blockList"> |
---|
| 309 | <h4>getChannel</h4> |
---|
| 310 | <pre>public com.rabbitmq.client.Channel getChannel() |
---|
| 311 | throws java.lang.Exception</pre> |
---|
| 312 | <div class="block">Return the broker's channel</div> |
---|
| 313 | <dl><dt><span class="strong">Returns:</span></dt><dd>Broker's channel</dd> |
---|
| 314 | <dt><span class="strong">Throws:</span></dt> |
---|
| 315 | <dd><code>java.lang.Exception</code></dd></dl> |
---|
| 316 | </li> |
---|
| 317 | </ul> |
---|
| 318 | <a name="getNewChannel()"> |
---|
| 319 | <!-- --> |
---|
| 320 | </a> |
---|
| 321 | <ul class="blockList"> |
---|
| 322 | <li class="blockList"> |
---|
| 323 | <h4>getNewChannel</h4> |
---|
| 324 | <pre>public com.rabbitmq.client.Channel getNewChannel() |
---|
| 325 | throws java.io.IOException</pre> |
---|
| 326 | <div class="block">Creates a new channel using the Broker's connection</div> |
---|
| 327 | <dl><dt><span class="strong">Returns:</span></dt><dd>newChannel</dd> |
---|
| 328 | <dt><span class="strong">Throws:</span></dt> |
---|
| 329 | <dd><code>java.io.IOException</code></dd></dl> |
---|
| 330 | </li> |
---|
| 331 | </ul> |
---|
| 332 | <a name="lookup(java.lang.String, java.lang.Class)"> |
---|
| 333 | <!-- --> |
---|
| 334 | </a> |
---|
| 335 | <ul class="blockList"> |
---|
| 336 | <li class="blockList"> |
---|
| 337 | <h4>lookup</h4> |
---|
| 338 | <pre>public <T extends <a href="../../../omq/Remote.html" title="interface in omq">Remote</a>> T lookup(java.lang.String reference, |
---|
| 339 | java.lang.Class<T> contract) |
---|
| 340 | throws <a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a></pre> |
---|
| 341 | <div class="block">Returns the remote object for specified reference.</div> |
---|
| 342 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>reference</code> - - Binding name</dd><dd><code>contract</code> - - Remote Interface</dd> |
---|
| 343 | <dt><span class="strong">Returns:</span></dt><dd>newProxy</dd> |
---|
| 344 | <dt><span class="strong">Throws:</span></dt> |
---|
| 345 | <dd><code><a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a></code></dd></dl> |
---|
| 346 | </li> |
---|
| 347 | </ul> |
---|
| 348 | <a name="lookupMulti(java.lang.String, java.lang.Class)"> |
---|
| 349 | <!-- --> |
---|
| 350 | </a> |
---|
| 351 | <ul class="blockList"> |
---|
| 352 | <li class="blockList"> |
---|
| 353 | <h4>lookupMulti</h4> |
---|
| 354 | <pre>public <T extends <a href="../../../omq/Remote.html" title="interface in omq">Remote</a>> T lookupMulti(java.lang.String reference, |
---|
| 355 | java.lang.Class<T> contract) |
---|
| 356 | throws <a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a></pre> |
---|
| 357 | <div class="block">Returns the remote object for specified reference. This function returns |
---|
| 358 | an special type of proxy, every method invoked will be multi and |
---|
| 359 | asynchronous.</div> |
---|
| 360 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>reference</code> - - Binding name</dd><dd><code>contract</code> - - Remote Interface</dd> |
---|
| 361 | <dt><span class="strong">Returns:</span></dt><dd>newProxy</dd> |
---|
| 362 | <dt><span class="strong">Throws:</span></dt> |
---|
| 363 | <dd><code><a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a></code></dd></dl> |
---|
| 364 | </li> |
---|
| 365 | </ul> |
---|
| 366 | <a name="bind(java.lang.String, omq.server.RemoteObject)"> |
---|
| 367 | <!-- --> |
---|
| 368 | </a> |
---|
| 369 | <ul class="blockList"> |
---|
| 370 | <li class="blockList"> |
---|
| 371 | <h4>bind</h4> |
---|
| 372 | <pre>public void bind(java.lang.String reference, |
---|
| 373 | <a href="../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a> remote) |
---|
| 374 | throws <a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a>, |
---|
| 375 | <a href="../../../omq/exception/AlreadyBoundException.html" title="class in omq.exception">AlreadyBoundException</a></pre> |
---|
| 376 | <div class="block">Binds the reference to the specified remote object. This function uses |
---|
| 377 | the broker's environment</div> |
---|
| 378 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>reference</code> - - Binding name</dd><dd><code>remote</code> - - RemoteObject to bind</dd> |
---|
| 379 | <dt><span class="strong">Throws:</span></dt> |
---|
| 380 | <dd><code><a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a></code> - If the remote operation failed</dd> |
---|
| 381 | <dd><code><a href="../../../omq/exception/AlreadyBoundException.html" title="class in omq.exception">AlreadyBoundException</a></code> - If name is already bound.</dd></dl> |
---|
| 382 | </li> |
---|
| 383 | </ul> |
---|
| 384 | <a name="bind(java.lang.String, omq.server.RemoteObject, java.util.Properties)"> |
---|
| 385 | <!-- --> |
---|
| 386 | </a> |
---|
| 387 | <ul class="blockList"> |
---|
| 388 | <li class="blockList"> |
---|
| 389 | <h4>bind</h4> |
---|
| 390 | <pre>public void bind(java.lang.String reference, |
---|
| 391 | <a href="../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a> remote, |
---|
| 392 | java.util.Properties env) |
---|
| 393 | throws <a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a>, |
---|
| 394 | <a href="../../../omq/exception/AlreadyBoundException.html" title="class in omq.exception">AlreadyBoundException</a></pre> |
---|
| 395 | <div class="block">Binds the reference to the specified remote object. This function uses |
---|
| 396 | the broker's environment</div> |
---|
| 397 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>reference</code> - - Binding name</dd><dd><code>remote</code> - - RemoteObject to bind</dd><dd><code>env</code> - - RemoteObject environment. You can set how many threads will |
---|
| 398 | be listen to the reference, the multiqueue name and the |
---|
| 399 | properties of the object queue and multiqueue</dd> |
---|
| 400 | <dt><span class="strong">Throws:</span></dt> |
---|
| 401 | <dd><code><a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a></code> - If the remote operation failed</dd> |
---|
| 402 | <dd><code><a href="../../../omq/exception/AlreadyBoundException.html" title="class in omq.exception">AlreadyBoundException</a></code> - If name is already bound.</dd></dl> |
---|
| 403 | </li> |
---|
| 404 | </ul> |
---|
| 405 | <a name="unbind(java.lang.String)"> |
---|
| 406 | <!-- --> |
---|
| 407 | </a> |
---|
| 408 | <ul class="blockList"> |
---|
| 409 | <li class="blockList"> |
---|
| 410 | <h4>unbind</h4> |
---|
| 411 | <pre>public void unbind(java.lang.String reference) |
---|
| 412 | throws <a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a>, |
---|
| 413 | java.io.IOException</pre> |
---|
| 414 | <div class="block">Unbinds a remoteObject from its reference and kills all the threads |
---|
| 415 | created.</div> |
---|
| 416 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>reference</code> - - Binding name</dd> |
---|
| 417 | <dt><span class="strong">Throws:</span></dt> |
---|
| 418 | <dd><code><a href="../../../omq/exception/RemoteException.html" title="class in omq.exception">RemoteException</a></code> - If the remote operation failed</dd> |
---|
| 419 | <dd><code>java.io.IOException</code> - If there are problems while killing the threads</dd></dl> |
---|
| 420 | </li> |
---|
| 421 | </ul> |
---|
| 422 | <a name="tryConnection(java.util.Properties)"> |
---|
| 423 | <!-- --> |
---|
| 424 | </a> |
---|
| 425 | <ul class="blockList"> |
---|
| 426 | <li class="blockList"> |
---|
| 427 | <h4>tryConnection</h4> |
---|
| 428 | <pre>public void tryConnection(java.util.Properties env) |
---|
| 429 | throws java.lang.Exception</pre> |
---|
| 430 | <div class="block">This function is used to send a ping message to see if the connection |
---|
| 431 | works</div> |
---|
| 432 | <dl><dt><span class="strong">Parameters:</span></dt><dd><code>env</code> - </dd> |
---|
| 433 | <dt><span class="strong">Throws:</span></dt> |
---|
| 434 | <dd><code>java.lang.Exception</code></dd></dl> |
---|
| 435 | </li> |
---|
| 436 | </ul> |
---|
| 437 | <a name="getEnvironment()"> |
---|
| 438 | <!-- --> |
---|
| 439 | </a> |
---|
| 440 | <ul class="blockList"> |
---|
| 441 | <li class="blockList"> |
---|
| 442 | <h4>getEnvironment</h4> |
---|
| 443 | <pre>public java.util.Properties getEnvironment()</pre> |
---|
| 444 | </li> |
---|
| 445 | </ul> |
---|
| 446 | <a name="getResponseListener()"> |
---|
| 447 | <!-- --> |
---|
| 448 | </a> |
---|
| 449 | <ul class="blockList"> |
---|
| 450 | <li class="blockList"> |
---|
| 451 | <h4>getResponseListener</h4> |
---|
| 452 | <pre>public <a href="../../../omq/client/listener/ResponseListener.html" title="class in omq.client.listener">ResponseListener</a> getResponseListener()</pre> |
---|
| 453 | </li> |
---|
| 454 | </ul> |
---|
| 455 | <a name="getSerializer()"> |
---|
| 456 | <!-- --> |
---|
| 457 | </a> |
---|
| 458 | <ul class="blockListLast"> |
---|
| 459 | <li class="blockList"> |
---|
| 460 | <h4>getSerializer</h4> |
---|
| 461 | <pre>public <a href="../../../omq/common/util/Serializer.html" title="class in omq.common.util">Serializer</a> getSerializer()</pre> |
---|
| 462 | </li> |
---|
| 463 | </ul> |
---|
| 464 | </li> |
---|
| 465 | </ul> |
---|
| 466 | </li> |
---|
| 467 | </ul> |
---|
| 468 | </div> |
---|
| 469 | </div> |
---|
| 470 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 471 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 472 | <div class="bottomNav"><a name="navbar_bottom"> |
---|
| 473 | <!-- --> |
---|
| 474 | </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
---|
| 475 | <!-- --> |
---|
| 476 | </a> |
---|
| 477 | <ul class="navList" title="Navigation"> |
---|
| 478 | <li><a href="../../../overview-summary.html">Overview</a></li> |
---|
| 479 | <li><a href="package-summary.html">Package</a></li> |
---|
| 480 | <li class="navBarCell1Rev">Class</li> |
---|
| 481 | <li><a href="class-use/Broker.html">Use</a></li> |
---|
| 482 | <li><a href="package-tree.html">Tree</a></li> |
---|
| 483 | <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
---|
| 484 | <li><a href="../../../index-files/index-1.html">Index</a></li> |
---|
| 485 | <li><a href="../../../help-doc.html">Help</a></li> |
---|
| 486 | </ul> |
---|
| 487 | </div> |
---|
| 488 | <div class="subNav"> |
---|
| 489 | <ul class="navList"> |
---|
| 490 | <li>Prev Class</li> |
---|
| 491 | <li>Next Class</li> |
---|
| 492 | </ul> |
---|
| 493 | <ul class="navList"> |
---|
| 494 | <li><a href="../../../index.html?omq/common/broker/Broker.html" target="_top">Frames</a></li> |
---|
| 495 | <li><a href="Broker.html" target="_top">No Frames</a></li> |
---|
| 496 | </ul> |
---|
| 497 | <ul class="navList" id="allclasses_navbar_bottom"> |
---|
| 498 | <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
---|
| 499 | </ul> |
---|
| 500 | <div> |
---|
| 501 | <script type="text/javascript"><!-- |
---|
| 502 | allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
---|
| 503 | if(window==top) { |
---|
| 504 | allClassesLink.style.display = "block"; |
---|
| 505 | } |
---|
| 506 | else { |
---|
| 507 | allClassesLink.style.display = "none"; |
---|
| 508 | } |
---|
| 509 | //--> |
---|
| 510 | </script> |
---|
| 511 | </div> |
---|
| 512 | <div> |
---|
| 513 | <ul class="subNavList"> |
---|
| 514 | <li>Summary: </li> |
---|
| 515 | <li>Nested | </li> |
---|
| 516 | <li>Field | </li> |
---|
| 517 | <li><a href="#constructor_summary">Constr</a> | </li> |
---|
| 518 | <li><a href="#method_summary">Method</a></li> |
---|
| 519 | </ul> |
---|
| 520 | <ul class="subNavList"> |
---|
| 521 | <li>Detail: </li> |
---|
| 522 | <li>Field | </li> |
---|
| 523 | <li><a href="#constructor_detail">Constr</a> | </li> |
---|
| 524 | <li><a href="#method_detail">Method</a></li> |
---|
| 525 | </ul> |
---|
| 526 | </div> |
---|
| 527 | <a name="skip-navbar_bottom"> |
---|
| 528 | <!-- --> |
---|
| 529 | </a></div> |
---|
| 530 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 531 | </body> |
---|
| 532 | </html> |
---|