2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
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)
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.
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
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
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. */
39 // Stub class generated by rmic - DO NOT EDIT!
41 package gnu
.java
.rmi
.dgc
;
43 public final class DGCImpl_Stub
44 extends java
.rmi
.server
.RemoteStub
45 implements java
.rmi
.dgc
.DGC
47 private static final long serialVersionUID
= 2L;
49 private static final long interfaceHash
= -669196253586618813L;
51 private static boolean useNewInvoke
;
53 private static final java
.rmi
.server
.Operation
[] operations
= {
54 new java
.rmi
.server
.Operation("void clean(java.rmi.server.ObjID[], long, java.rmi.dgc.VMID, boolean)"),
55 new java
.rmi
.server
.Operation("java.rmi.dgc.Lease dirty(java.rmi.server.ObjID[], long, java.rmi.dgc.Lease)")
58 private static java
.lang
.reflect
.Method $method_clean_0
;
59 private static java
.lang
.reflect
.Method $method_dirty_1
;
63 java
.rmi
.server
.RemoteRef
.class.getMethod("invoke", new java
.lang
.Class
[] { java
.rmi
.Remote
.class, java
.lang
.reflect
.Method
.class, java
.lang
.Object
[].class, long.class });
65 $method_clean_0
= gnu
.java
.rmi
.dgc
.DGCImpl
.class.getMethod("clean", new java
.lang
.Class
[] {java
.rmi
.server
.ObjID
[].class, long.class, java
.rmi
.dgc
.VMID
.class, boolean.class});
66 $method_dirty_1
= gnu
.java
.rmi
.dgc
.DGCImpl
.class.getMethod("dirty", new java
.lang
.Class
[] {java
.rmi
.server
.ObjID
[].class, long.class, java
.rmi
.dgc
.Lease
.class});
69 catch (java
.lang
.NoSuchMethodException e
) {
74 public DGCImpl_Stub() {
77 public DGCImpl_Stub(java
.rmi
.server
.RemoteRef ref
) {
81 public void clean(java
.rmi
.server
.ObjID
[] $param_0
, long $param_1
, java
.rmi
.dgc
.VMID $param_2
, boolean $param_3
) throws java
.rmi
.RemoteException
{
84 ref
.invoke(this, $method_clean_0
, new java
.lang
.Object
[] {$param_0
, new java
.lang
.Long($param_1
), $param_2
, Boolean
.valueOf($param_3
)}, -5803803475088455571L);
87 java
.rmi
.server
.RemoteCall call
= ref
.newCall((java
.rmi
.server
.RemoteObject
)this, operations
, 0, interfaceHash
);
89 java
.io
.ObjectOutput out
= call
.getOutputStream();
90 out
.writeObject($param_0
);
91 out
.writeLong($param_1
);
92 out
.writeObject($param_2
);
93 out
.writeBoolean($param_3
);
95 catch (java
.io
.IOException e
) {
96 throw new java
.rmi
.MarshalException("error marshalling arguments", e
);
100 java
.io
.ObjectInput in
= call
.getInputStream();
102 catch (java
.io
.IOException e
) {
103 throw new java
.rmi
.UnmarshalException("error unmarshalling return", e
);
110 catch (java
.rmi
.RemoteException e
) {
113 catch (java
.lang
.Exception e
) {
114 throw new java
.rmi
.UnexpectedException("undeclared checked exception", e
);
118 public java
.rmi
.dgc
.Lease
dirty(java
.rmi
.server
.ObjID
[] $param_0
, long $param_1
, java
.rmi
.dgc
.Lease $param_2
) throws java
.rmi
.RemoteException
{
121 java
.lang
.Object $result
= ref
.invoke(this, $method_dirty_1
, new java
.lang
.Object
[] {$param_0
, new java
.lang
.Long($param_1
), $param_2
}, -8139341527526761862L);
122 return ((java
.rmi
.dgc
.Lease
)$result
);
125 java
.rmi
.server
.RemoteCall call
= ref
.newCall((java
.rmi
.server
.RemoteObject
)this, operations
, 1, interfaceHash
);
127 java
.io
.ObjectOutput out
= call
.getOutputStream();
128 out
.writeObject($param_0
);
129 out
.writeLong($param_1
);
130 out
.writeObject($param_2
);
132 catch (java
.io
.IOException e
) {
133 throw new java
.rmi
.MarshalException("error marshalling arguments", e
);
136 java
.rmi
.dgc
.Lease $result
;
138 java
.io
.ObjectInput in
= call
.getInputStream();
139 $result
= (java
.rmi
.dgc
.Lease
)in
.readObject();
142 catch (java
.io
.IOException e
) {
143 throw new java
.rmi
.UnmarshalException("error unmarshalling return", e
);
150 catch (java
.rmi
.RemoteException e
) {
153 catch (java
.lang
.Exception e
) {
154 throw new java
.rmi
.UnexpectedException("undeclared checked exception", e
);