Produced by Araxis Merge on 9/25/2018 2:13:10 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\java\rmi\registry | Registry.java | Mon Jan 22 14:46:52 2018 UTC |
2 | build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\java\rmi\registry | Registry.java | Wed Sep 12 17:11:51 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 382 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /* | |
2 | * Copyrig ht (c) 199 6, 2001, O racle and/ or its aff iliates. A ll rights reserved. | |
3 | * DO NOT ALTER OR R EMOVE COPY RIGHT NOTI CES OR THI S FILE HEA DER. | |
4 | * | |
5 | * This co de is free software; you can r edistribut e it and/o r modify i t | |
6 | * under t he terms o f the GNU General Pu blic Licen se version 2 only, a s | |
7 | * publish ed by the Free Softw are Founda tion. Ora cle design ates this | |
8 | * particu lar file a s subject to the "Cl asspath" e xception a s provided | |
9 | * by Orac le in the LICENSE fi le that ac companied this code. | |
10 | * | |
11 | * This co de is dist ributed in the hope that it wi ll be usef ul, but WI THOUT | |
12 | * ANY WAR RANTY; wit hout even the implie d warranty of MERCHA NTABILITY or | |
13 | * FITNESS FOR A PAR TICULAR PU RPOSE. Se e the GNU General Pu blic Licen se | |
14 | * version 2 for mor e details (a copy is included in the LIC ENSE file that | |
15 | * accompa nied this code). | |
16 | * | |
17 | * You sho uld have r eceived a copy of th e GNU Gene ral Public License v ersion | |
18 | * 2 along with this work; if not, write to the Fr ee Softwar e Foundati on, | |
19 | * Inc., 5 1 Franklin St, Fifth Floor, Bo ston, MA 0 2110-1301 USA. | |
20 | * | |
21 | * Please contact Or acle, 500 Oracle Par kway, Redw ood Shores , CA 94065 USA | |
22 | * or visi t www.orac le.com if you need a dditional informatio n or have any | |
23 | * questio ns. | |
24 | */ | |
25 | package ja va.rmi.reg istry; | |
26 | ||
27 | import jav a.rmi.Acce ssExceptio n; | |
28 | import jav a.rmi.Alre adyBoundEx ception; | |
29 | import jav a.rmi.NotB oundExcept ion; | |
30 | import jav a.rmi.Remo te; | |
31 | import jav a.rmi.Remo teExceptio n; | |
32 | ||
33 | /** | |
34 | * <code>R egistry</c ode> is a remote int erface to a simple r emote | |
35 | * object registry t hat provid es methods for stori ng and ret rieving | |
36 | * remote object ref erences bo und with a rbitrary s tring name s. The | |
37 | * <code>b ind</code> , <code>un bind</code >, and <co de>rebind< /code> | |
38 | * methods are used to alter t he name bi ndings in the regist ry, and | |
39 | * the <co de>lookup< /code> and <code>lis t</code> m ethods are used to | |
40 | * query t he current name bind ings. | |
41 | * | |
42 | * <p>In i ts typical usage, a <code>Regi stry</code > enables RMI client | |
43 | * bootstr apping: it provides a simple m eans for a client to obtain an | |
44 | * initial reference to a remo te object. Therefor e, a regis try's | |
45 | * remote object imp lementatio n is typic ally expor ted with a | |
46 | * well-kn own addres s, such as with a we ll-known { @link | |
47 | * java.rm i.server.O bjID#REGIS TRY_ID Obj ID} and TC P port num ber | |
48 | * (defaul t is {@lin k #REGISTR Y_PORT 109 9}). | |
49 | * | |
50 | * <p>The {@link Loc ateRegistr y} class p rovides a programmat ic API for | |
51 | * constru cting a bo otstrap re ference to a <code>R egistry</c ode> at a | |
52 | * remote address (s ee the sta tic <code> getRegistr y</code> m ethods) | |
53 | * and for creating and export ing a <cod e>Registry </code> in the | |
54 | * current VM on a p articular local addr ess (see t he static | |
55 | * <code>c reateRegis try</code> methods). | |
56 | * | |
57 | * <p>A <c ode>Regist ry</code> implementa tion may c hoose to r estrict | |
58 | * access to some or all of it s methods (for examp le, method s that | |
59 | * mutate the regist ry's bindi ngs may be restricte d to calls | |
60 | * origina ting from the local host). If a <code>R egistry</c ode> | |
61 | * method chooses to deny acce ss for a g iven invoc ation, its | |
62 | * impleme ntation ma y throw {@ link java. rmi.Access Exception} , which | |
63 | * (becaus e it exten ds {@link java.rmi.R emoteExcep tion}) wil l be | |
64 | * wrapped in a {@li nk java.rm i.ServerEx ception} w hen caught by a | |
65 | * remote client. | |
66 | * | |
67 | * <p>The names used for bindi ngs in a < code>Regis try</code> are pure | |
68 | * strings , not pars ed. A ser vice which stores it s remote r eference | |
69 | * in a <c ode>Regist ry</code> may wish t o use a pa ckage name as a | |
70 | * prefix in the nam e binding to reduce the likeli hood of na me | |
71 | * collisi ons in the registry. | |
72 | * | |
73 | * @author Ann Wollrath | |
74 | * @author Pete r Jones | |
75 | * @since JDK1 .1 | |
76 | * @see Loca teRegistry | |
77 | */ | |
78 | public int erface Reg istry exte nds Remote { | |
79 | ||
80 | /** We ll known p ort for re gistry. */ | |
81 | public sta tic final int REGIST RY_PORT
|
|
82 | ||
83 | /** | |
84 | * Ret urns the r emote refe rence boun d to the s pecified | |
85 | * <co de>name</c ode> in th is registr y. | |
86 | * | |
87 | * @pa ram name the name for the re mote refer ence to lo ok up | |
88 | * | |
89 | * @re turn a re ference to a remote object | |
90 | * | |
91 | * @th rows NotB oundExcept ion if <co de>name</c ode> is no t currentl y bound | |
92 | * | |
93 | * @th rows Remo teExceptio n if remot e communic ation with the | |
94 | * reg istry fail ed; if exc eption is a <code>Se rverExcept ion</code> | |
95 | * con taining an <code>Acc essExcepti on</code>, then the registry | |
96 | * den ies the ca ller acces s to perfo rm this op eration | |
97 | * | |
98 | * @th rows Acce ssExceptio n if this registry i s local an d it denie s | |
99 | * the caller ac cess to pe rform this operation | |
100 | * | |
101 | * @th rows Null PointerExc eption if <code>name </code> is <code>nul l</code> | |
102 | */ | |
103 | public Remote lo okup(Strin g name) | |
104 | th rows Remot eException , NotBound Exception, AccessExc eption; | |
105 | ||
106 | /** | |
107 | * Bin ds a remot e referenc e to the s pecified < code>name< /code> in | |
108 | * thi s registry . | |
109 | * | |
110 | * @pa ram name the name to associa te with th e remote r eference | |
111 | * @pa ram obj a referenc e to a rem ote object (usually a stub) | |
112 | * | |
113 | * @th rows Alre adyBoundEx ception if <code>nam e</code> i s already bound | |
114 | * | |
115 | * @th rows Remo teExceptio n if remot e communic ation with the | |
116 | * reg istry fail ed; if exc eption is a <code>Se rverExcept ion</code> | |
117 | * con taining an <code>Acc essExcepti on</code>, then the registry | |
118 | * den ies the ca ller acces s to perfo rm this op eration (i f | |
119 | * ori ginating f rom a non- local host , for exam ple) | |
120 | * | |
121 | * @th rows Acce ssExceptio n if this registry i s local an d it denie s | |
122 | * the caller ac cess to pe rform this operation | |
123 | * | |
124 | * @th rows Null PointerExc eption if <code>name </code> is | |
125 | * <co de>null</c ode>, or i f <code>ob j</code> i s <code>nu ll</code> | |
126 | */ | |
127 | public void bind (String na me, Remote obj) | |
128 | th rows Remot eException , AlreadyB oundExcept ion, Acces sException ; | |
129 | ||
130 | /** | |
131 | * Rem oves the b inding for the speci fied <code >name</cod e> in | |
132 | * thi s registry . | |
133 | * | |
134 | * @pa ram name the name of the bin ding to re move | |
135 | * | |
136 | * @th rows NotB oundExcept ion if <co de>name</c ode> is no t currentl y bound | |
137 | * | |
138 | * @th rows Remo teExceptio n if remot e communic ation with the | |
139 | * reg istry fail ed; if exc eption is a <code>Se rverExcept ion</code> | |
140 | * con taining an <code>Acc essExcepti on</code>, then the registry | |
141 | * den ies the ca ller acces s to perfo rm this op eration (i f | |
142 | * ori ginating f rom a non- local host , for exam ple) | |
143 | * | |
144 | * @th rows Acce ssExceptio n if this registry i s local an d it denie s | |
145 | * the caller ac cess to pe rform this operation | |
146 | * | |
147 | * @th rows Null PointerExc eption if <code>name </code> is <code>nul l</code> | |
148 | */ | |
149 | public void unbi nd(String name) | |
150 | th rows Remot eException , NotBound Exception, AccessExc eption; | |
151 | ||
152 | /** | |
153 | * Rep laces the binding fo r the spec ified <cod e>name</co de> in | |
154 | * thi s registry with the supplied r emote refe rence. If there is | |
155 | * an existing b inding for the speci fied <code >name</cod e>, it is | |
156 | * dis carded. | |
157 | * | |
158 | * @pa ram name the name to associa te with th e remote r eference | |
159 | * @pa ram obj a referenc e to a rem ote object (usually a stub) | |
160 | * | |
161 | * @th rows Remo teExceptio n if remot e communic ation with the | |
162 | * reg istry fail ed; if exc eption is a <code>Se rverExcept ion</code> | |
163 | * con taining an <code>Acc essExcepti on</code>, then the registry | |
164 | * den ies the ca ller acces s to perfo rm this op eration (i f | |
165 | * ori ginating f rom a non- local host , for exam ple) | |
166 | * | |
167 | * @th rows Acce ssExceptio n if this registry i s local an d it denie s | |
168 | * the caller ac cess to pe rform this operation | |
169 | * | |
170 | * @th rows Null PointerExc eption if <code>name </code> is | |
171 | * <co de>null</c ode>, or i f <code>ob j</code> i s <code>nu ll</code> | |
172 | */ | |
173 | public void rebi nd(String name, Remo te obj) | |
174 | th rows Remot eException , AccessEx ception; | |
175 | ||
176 | /** | |
177 | * Ret urns an ar ray of the names bou nd in this registry. The | |
178 | * arr ay will co ntain a sn apshot of the names bound in t his | |
179 | * reg istry at t he time of the given invocatio n of this method. | |
180 | * | |
181 | * @re turn an a rray of th e names bo und in thi s registry | |
182 | * | |
183 | * @th rows Remo teExceptio n if remot e communic ation with the | |
184 | * reg istry fail ed; if exc eption is a <code>Se rverExcept ion</code> | |
185 | * con taining an <code>Acc essExcepti on</code>, then the registry | |
186 | * den ies the ca ller acces s to perfo rm this op eration | |
187 | * | |
188 | * @th rows Acce ssExceptio n if this registry i s local an d it denie s | |
189 | * the caller ac cess to pe rform this operation | |
190 | */ | |
191 | public String[] list() thr ows Remote Exception, AccessExc eption; | |
192 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.