OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [tools/] [gnu/] [classpath/] [tools/] [rmid/] [ActivationSystemImpl_Stub.java] - Blame information for rev 779

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 779 jeremybenn
/* ActivationSystemImpl.java -- implementation of the activation system.
2
   Copyright (c) 2006 Free Software Foundation, Inc.
3
 
4
This file is part of GNU Classpath.
5
 
6
GNU Classpath is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
9
any later version.
10
 
11
GNU Classpath is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GNU Classpath; see the file COPYING.  If not, write to the
18
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
02110-1301 USA.
20
 
21
Linking this library statically or dynamically with other modules is
22
making a combined work based on this library.  Thus, the terms and
23
conditions of the GNU General Public License cover the whole
24
combination.
25
 
26
As a special exception, the copyright holders of this library give you
27
permission to link this library with independent modules to produce an
28
executable, regardless of the license terms of these independent
29
modules, and to copy and distribute the resulting executable under
30
terms of your choice, provided that you also meet, for each linked
31
independent module, the terms and conditions of the license of that
32
module.  An independent module is a module which is not derived from
33
or based on this library.  If you modify this library, you may extend
34
this exception to your version of the library, but you are not
35
obligated to do so.  If you do not wish to do so, delete this
36
exception statement from your version. */
37
 
38
 
39
package gnu.classpath.tools.rmid;
40
 
41
import java.rmi.MarshalledObject;
42
import java.rmi.RemoteException;
43
import java.rmi.activation.ActivationDesc;
44
import java.rmi.activation.ActivationException;
45
import java.rmi.activation.ActivationGroupDesc;
46
import java.rmi.activation.ActivationGroupID;
47
import java.rmi.activation.ActivationID;
48
import java.rmi.activation.ActivationInstantiator;
49
import java.rmi.activation.ActivationMonitor;
50
import java.rmi.activation.ActivationSystem;
51
import java.rmi.activation.Activator;
52
import java.rmi.activation.UnknownGroupException;
53
import java.rmi.activation.UnknownObjectException;
54
 
55
import java.lang.reflect.Method;
56
import java.rmi.server.RemoteRef;
57
import java.rmi.server.RemoteStub;
58
import java.rmi.UnexpectedException;
59
 
60
/**
61
 * This class delegates its method calls to the remote RMI object, referenced
62
 * by {@link RemoteRef}.
63
 *
64
 * It is normally generated with rmic.
65
 */
66
public final class ActivationSystemImpl_Stub
67
    extends RemoteStub
68
    implements ActivationMonitor, Activator, ActivationSystem
69
{
70
    /**
71
     * Use serialVersionUID for interoperability
72
     */
73
    private static final long serialVersionUID = 2;
74
 
75
    /**
76
     * The explaining message for {@ling UnexpectedException}.
77
     */
78
    private static final String exception_message =
79
      "undeclared checked exception";
80
 
81
     /* All remote methods, invoked by this stub: */
82
    private static final Method met_setActivationGroupDesc;
83
    private static final Method met_inactiveGroup;
84
    private static final Method met_unregisterObject;
85
    private static final Method met_getActivationDesc;
86
    private static final Method met_setActivationDesc;
87
    private static final Method met_shutdown;
88
    private static final Method met_activate;
89
    private static final Method met_activeGroup;
90
    private static final Method met_registerGroup;
91
    private static final Method met_getActivationGroupDesc;
92
    private static final Method met_activeObject;
93
    private static final Method met_registerObject;
94
    private static final Method met_inactiveObject;
95
    private static final Method met_unregisterGroup;
96
    private static final Object[] NO_ARGS = new Object[0];
97
    static
98
      {
99
        final Class[]  NO_ARGSc = new Class[0];
100
        try
101
          {
102
             met_setActivationGroupDesc =
103
               ActivationSystem.class.getMethod("setActivationGroupDesc", new Class[]
104
                 {
105
                   ActivationGroupID.class, ActivationGroupDesc.class
106
                 });
107
             met_inactiveGroup =
108
               ActivationMonitor.class.getMethod("inactiveGroup", new Class[]
109
                 {
110
                   ActivationGroupID.class, long.class
111
                 });
112
             met_unregisterObject =
113
               ActivationSystem.class.getMethod("unregisterObject", new Class[]
114
                 {
115
                   ActivationID.class
116
                 });
117
             met_getActivationDesc =
118
               ActivationSystem.class.getMethod("getActivationDesc", new Class[]
119
                 {
120
                   ActivationID.class
121
                 });
122
             met_setActivationDesc =
123
               ActivationSystem.class.getMethod("setActivationDesc", new Class[]
124
                 {
125
                   ActivationID.class, ActivationDesc.class
126
                 });
127
             met_shutdown =
128
               ActivationSystem.class.getMethod("shutdown", NO_ARGSc);
129
             met_activate =
130
               Activator.class.getMethod("activate", new Class[]
131
                 {
132
                   ActivationID.class, boolean.class
133
                 });
134
             met_activeGroup =
135
               ActivationSystem.class.getMethod("activeGroup", new Class[]
136
                 {
137
                   ActivationGroupID.class, ActivationInstantiator.class, long.class
138
                 });
139
             met_registerGroup =
140
               ActivationSystem.class.getMethod("registerGroup", new Class[]
141
                 {
142
                   ActivationGroupDesc.class
143
                 });
144
             met_getActivationGroupDesc =
145
               ActivationSystem.class.getMethod("getActivationGroupDesc", new Class[]
146
                 {
147
                   ActivationGroupID.class
148
                 });
149
             met_activeObject =
150
               ActivationMonitor.class.getMethod("activeObject", new Class[]
151
                 {
152
                   ActivationID.class, MarshalledObject.class
153
                 });
154
             met_registerObject =
155
               ActivationSystem.class.getMethod("registerObject", new Class[]
156
                 {
157
                   ActivationDesc.class
158
                 });
159
             met_inactiveObject =
160
               ActivationMonitor.class.getMethod("inactiveObject", new Class[]
161
                 {
162
                   ActivationID.class
163
                 });
164
             met_unregisterGroup =
165
               ActivationSystem.class.getMethod("unregisterGroup", new Class[]
166
                 {
167
                   ActivationGroupID.class
168
                 });
169
 
170
          }
171
        catch (NoSuchMethodException nex)
172
          {
173
             NoSuchMethodError err = new NoSuchMethodError(
174
               "ActivationSystemImpl_Stub class initialization failed");
175
             err.initCause(nex);
176
             throw err;
177
          }
178
      }
179
 
180
    /**
181
     * Create the instance for _ActivationSystemImpl_Stub that forwards method calls to the
182
     * remote object.
183
     *
184
     * @para the reference to the remote object.
185
     */
186
    public ActivationSystemImpl_Stub(RemoteRef reference)
187
    {
188
       super(reference);
189
    }
190
 
191
    /* Methods */
192
  /** @inheritDoc */
193
  public ActivationGroupDesc setActivationGroupDesc(ActivationGroupID p0,
194
                                                    ActivationGroupDesc p1)
195
      throws ActivationException, UnknownGroupException, RemoteException
196
  {
197
    try
198
      {
199
        Object result = ref.invoke(this, met_setActivationGroupDesc,
200
                                   new Object[] { p0, p1 },
201
                                   1213918527826541191L);
202
        return (ActivationGroupDesc) result;
203
      }
204
    catch (RuntimeException e)
205
      {
206
        throw e;
207
      }
208
    catch (RemoteException e)
209
      {
210
        throw e;
211
      }
212
    catch (Exception e)
213
      {
214
        UnexpectedException uex = new UnexpectedException(exception_message);
215
        uex.detail = e;
216
        throw uex;
217
      }
218
  }
219
 
220
  /** @inheritDoc */
221
  public void inactiveGroup(ActivationGroupID p0, long p1)
222
      throws UnknownGroupException, RemoteException
223
  {
224
    try
225
      {
226
        ref.invoke(this, met_inactiveGroup, new Object[] { p0, new Long(p1) },
227
                   -399287892768650944L);
228
      }
229
    catch (RuntimeException e)
230
      {
231
        throw e;
232
      }
233
    catch (RemoteException e)
234
      {
235
        throw e;
236
      }
237
    catch (Exception e)
238
      {
239
        UnexpectedException uex = new UnexpectedException(exception_message);
240
        uex.detail = e;
241
        throw uex;
242
      }
243
  }
244
 
245
  /** @inheritDoc */
246
  public void unregisterObject(ActivationID p0) throws ActivationException,
247
      UnknownObjectException, RemoteException
248
  {
249
    try
250
      {
251
        ref.invoke(this, met_unregisterObject, new Object[] { p0 },
252
                   -6843850585331411084L);
253
      }
254
    catch (RuntimeException e)
255
      {
256
        throw e;
257
      }
258
    catch (RemoteException e)
259
      {
260
        throw e;
261
      }
262
    catch (Exception e)
263
      {
264
        UnexpectedException uex = new UnexpectedException(exception_message);
265
        uex.detail = e;
266
        throw uex;
267
      }
268
  }
269
 
270
  /** @inheritDoc */
271
  public ActivationDesc getActivationDesc(ActivationID p0)
272
      throws ActivationException, UnknownObjectException, RemoteException
273
  {
274
    try
275
      {
276
        Object result = ref.invoke(this, met_getActivationDesc,
277
                                   new Object[] { p0 }, 4830055440982622087L);
278
        return (ActivationDesc) result;
279
      }
280
    catch (RuntimeException e)
281
      {
282
        throw e;
283
      }
284
    catch (RemoteException e)
285
      {
286
        throw e;
287
      }
288
    catch (Exception e)
289
      {
290
        UnexpectedException uex = new UnexpectedException(exception_message);
291
        uex.detail = e;
292
        throw uex;
293
      }
294
  }
295
 
296
  /** @inheritDoc */
297
  public ActivationDesc setActivationDesc(ActivationID p0, ActivationDesc p1)
298
      throws ActivationException, UnknownObjectException,
299
      UnknownGroupException, RemoteException
300
  {
301
    try
302
      {
303
        Object result = ref.invoke(this, met_setActivationDesc,
304
                                   new Object[] { p0, p1 },
305
                                   7128043237057180796L);
306
        return (ActivationDesc) result;
307
      }
308
    catch (RuntimeException e)
309
      {
310
        throw e;
311
      }
312
    catch (RemoteException e)
313
      {
314
        throw e;
315
      }
316
    catch (Exception e)
317
      {
318
        UnexpectedException uex = new UnexpectedException(exception_message);
319
        uex.detail = e;
320
        throw uex;
321
      }
322
  }
323
 
324
  /** @inheritDoc */
325
  public void shutdown() throws RemoteException
326
  {
327
    try
328
      {
329
        ref.invoke(this, met_shutdown, NO_ARGS, -7207851917985848402L);
330
      }
331
    catch (RuntimeException e)
332
      {
333
        throw e;
334
      }
335
    catch (RemoteException e)
336
      {
337
        throw e;
338
      }
339
    catch (Exception e)
340
      {
341
        UnexpectedException uex = new UnexpectedException(exception_message);
342
        uex.detail = e;
343
        throw uex;
344
      }
345
  }
346
 
347
  /** @inheritDoc */
348
  public MarshalledObject activate(ActivationID p0, boolean p1)
349
      throws ActivationException, UnknownObjectException, RemoteException
350
  {
351
    try
352
      {
353
        Object result = ref.invoke(this, met_activate,
354
                                   new Object[] { p0, new Boolean(p1) },
355
                                   -8767355154875805558L);
356
        return (MarshalledObject) result;
357
      }
358
    catch (RuntimeException e)
359
      {
360
        throw e;
361
      }
362
    catch (RemoteException e)
363
      {
364
        throw e;
365
      }
366
    catch (Exception e)
367
      {
368
        UnexpectedException uex = new UnexpectedException(exception_message);
369
        uex.detail = e;
370
        throw uex;
371
      }
372
  }
373
 
374
  /** @inheritDoc */
375
  public ActivationMonitor activeGroup(ActivationGroupID p0,
376
                                       ActivationInstantiator p1, long p2)
377
      throws UnknownGroupException, ActivationException, RemoteException
378
  {
379
    try
380
      {
381
        Object result = ref.invoke(this, met_activeGroup,
382
                                   new Object[] { p0, p1, new Long(p2) },
383
                                   -4575843150759415294L);
384
        return (ActivationMonitor) result;
385
      }
386
    catch (RuntimeException e)
387
      {
388
        throw e;
389
      }
390
    catch (RemoteException e)
391
      {
392
        throw e;
393
      }
394
    catch (Exception e)
395
      {
396
        UnexpectedException uex = new UnexpectedException(exception_message);
397
        uex.detail = e;
398
        throw uex;
399
      }
400
  }
401
 
402
  /** @inheritDoc */
403
  public ActivationGroupID registerGroup(ActivationGroupDesc p0)
404
      throws ActivationException, RemoteException
405
  {
406
    try
407
      {
408
        Object result = ref.invoke(this, met_registerGroup,
409
                                   new Object[] { p0 }, 6921515268192657754L);
410
        return (ActivationGroupID) result;
411
      }
412
    catch (RuntimeException e)
413
      {
414
        throw e;
415
      }
416
    catch (RemoteException e)
417
      {
418
        throw e;
419
      }
420
    catch (Exception e)
421
      {
422
        UnexpectedException uex = new UnexpectedException(exception_message);
423
        uex.detail = e;
424
        throw uex;
425
      }
426
  }
427
 
428
  /** @inheritDoc */
429
  public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID p0)
430
      throws ActivationException, UnknownGroupException, RemoteException
431
  {
432
    try
433
      {
434
        Object result = ref.invoke(this, met_getActivationGroupDesc,
435
                                   new Object[] { p0 }, -8701843806548736528L);
436
        return (ActivationGroupDesc) result;
437
      }
438
    catch (RuntimeException e)
439
      {
440
        throw e;
441
      }
442
    catch (RemoteException e)
443
      {
444
        throw e;
445
      }
446
    catch (Exception e)
447
      {
448
        UnexpectedException uex = new UnexpectedException(exception_message);
449
        uex.detail = e;
450
        throw uex;
451
      }
452
  }
453
 
454
  /** @inheritDoc */
455
  public void activeObject(ActivationID p0, MarshalledObject p1)
456
      throws UnknownObjectException, RemoteException
457
  {
458
    try
459
      {
460
        ref.invoke(this, met_activeObject, new Object[] { p0, p1 },
461
                   2543984342209939736L);
462
      }
463
    catch (RuntimeException e)
464
      {
465
        throw e;
466
      }
467
    catch (RemoteException e)
468
      {
469
        throw e;
470
      }
471
    catch (Exception e)
472
      {
473
        UnexpectedException uex = new UnexpectedException(exception_message);
474
        uex.detail = e;
475
        throw uex;
476
      }
477
  }
478
 
479
  /** @inheritDoc */
480
  public ActivationID registerObject(ActivationDesc p0)
481
      throws ActivationException, UnknownGroupException, RemoteException
482
  {
483
    try
484
      {
485
        Object result = ref.invoke(this, met_registerObject,
486
                                   new Object[] { p0 }, -3006759798994351347L);
487
        return (ActivationID) result;
488
      }
489
    catch (RuntimeException e)
490
      {
491
        throw e;
492
      }
493
    catch (RemoteException e)
494
      {
495
        throw e;
496
      }
497
    catch (Exception e)
498
      {
499
        UnexpectedException uex = new UnexpectedException(exception_message);
500
        uex.detail = e;
501
        throw uex;
502
      }
503
  }
504
 
505
  /** @inheritDoc */
506
  public void inactiveObject(ActivationID p0) throws UnknownObjectException,
507
      RemoteException
508
  {
509
    try
510
      {
511
        ref.invoke(this, met_inactiveObject, new Object[] { p0 },
512
                   -4165404120701281807L);
513
      }
514
    catch (RuntimeException e)
515
      {
516
        throw e;
517
      }
518
    catch (RemoteException e)
519
      {
520
        throw e;
521
      }
522
    catch (Exception e)
523
      {
524
        UnexpectedException uex = new UnexpectedException(exception_message);
525
        uex.detail = e;
526
        throw uex;
527
      }
528
  }
529
 
530
  /** @inheritDoc */
531
  public void unregisterGroup(ActivationGroupID p0) throws ActivationException,
532
      UnknownGroupException, RemoteException
533
  {
534
    try
535
      {
536
        ref.invoke(this, met_unregisterGroup, new Object[] { p0 },
537
                   3768097077835970701L);
538
      }
539
    catch (RuntimeException e)
540
      {
541
        throw e;
542
      }
543
    catch (RemoteException e)
544
      {
545
        throw e;
546
      }
547
    catch (Exception e)
548
      {
549
        UnexpectedException uex = new UnexpectedException(exception_message);
550
        uex.detail = e;
551
        throw uex;
552
      }
553
  }
554
 
555
 
556
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.