| 1 |
14 |
jlechner |
/* DGCImpl_Stub.java
|
| 2 |
|
|
Copyright (C) 2002 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 |
|
|
// Stub class generated by rmic - DO NOT EDIT!
|
| 40 |
|
|
|
| 41 |
|
|
package gnu.java.rmi.dgc;
|
| 42 |
|
|
|
| 43 |
|
|
public final class DGCImpl_Stub
|
| 44 |
|
|
extends java.rmi.server.RemoteStub
|
| 45 |
|
|
implements java.rmi.dgc.DGC
|
| 46 |
|
|
{
|
| 47 |
|
|
private static final long serialVersionUID = 2L;
|
| 48 |
|
|
|
| 49 |
|
|
private static final long interfaceHash = -669196253586618813L;
|
| 50 |
|
|
|
| 51 |
|
|
private static boolean useNewInvoke;
|
| 52 |
|
|
|
| 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)")
|
| 56 |
|
|
};
|
| 57 |
|
|
|
| 58 |
|
|
private static java.lang.reflect.Method $method_clean_0;
|
| 59 |
|
|
private static java.lang.reflect.Method $method_dirty_1;
|
| 60 |
|
|
|
| 61 |
|
|
static {
|
| 62 |
|
|
try {
|
| 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 });
|
| 64 |
|
|
useNewInvoke = true;
|
| 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});
|
| 67 |
|
|
|
| 68 |
|
|
}
|
| 69 |
|
|
catch (java.lang.NoSuchMethodException e) {
|
| 70 |
|
|
useNewInvoke = false;
|
| 71 |
|
|
}
|
| 72 |
|
|
}
|
| 73 |
|
|
|
| 74 |
|
|
public DGCImpl_Stub() {
|
| 75 |
|
|
super();
|
| 76 |
|
|
}
|
| 77 |
|
|
public DGCImpl_Stub(java.rmi.server.RemoteRef ref) {
|
| 78 |
|
|
super(ref);
|
| 79 |
|
|
}
|
| 80 |
|
|
|
| 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 {
|
| 82 |
|
|
try {
|
| 83 |
|
|
if (useNewInvoke) {
|
| 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);
|
| 85 |
|
|
}
|
| 86 |
|
|
else {
|
| 87 |
|
|
java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject)this, operations, 0, interfaceHash);
|
| 88 |
|
|
try {
|
| 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);
|
| 94 |
|
|
}
|
| 95 |
|
|
catch (java.io.IOException e) {
|
| 96 |
|
|
throw new java.rmi.MarshalException("error marshalling arguments", e);
|
| 97 |
|
|
}
|
| 98 |
|
|
ref.invoke(call);
|
| 99 |
|
|
try {
|
| 100 |
|
|
java.io.ObjectInput in = call.getInputStream();
|
| 101 |
|
|
}
|
| 102 |
|
|
catch (java.io.IOException e) {
|
| 103 |
|
|
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
|
| 104 |
|
|
}
|
| 105 |
|
|
finally {
|
| 106 |
|
|
ref.done(call);
|
| 107 |
|
|
}
|
| 108 |
|
|
}
|
| 109 |
|
|
}
|
| 110 |
|
|
catch (java.rmi.RemoteException e) {
|
| 111 |
|
|
throw e;
|
| 112 |
|
|
}
|
| 113 |
|
|
catch (java.lang.Exception e) {
|
| 114 |
|
|
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
|
| 115 |
|
|
}
|
| 116 |
|
|
}
|
| 117 |
|
|
|
| 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 {
|
| 119 |
|
|
try {
|
| 120 |
|
|
if (useNewInvoke) {
|
| 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);
|
| 123 |
|
|
}
|
| 124 |
|
|
else {
|
| 125 |
|
|
java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject)this, operations, 1, interfaceHash);
|
| 126 |
|
|
try {
|
| 127 |
|
|
java.io.ObjectOutput out = call.getOutputStream();
|
| 128 |
|
|
out.writeObject($param_0);
|
| 129 |
|
|
out.writeLong($param_1);
|
| 130 |
|
|
out.writeObject($param_2);
|
| 131 |
|
|
}
|
| 132 |
|
|
catch (java.io.IOException e) {
|
| 133 |
|
|
throw new java.rmi.MarshalException("error marshalling arguments", e);
|
| 134 |
|
|
}
|
| 135 |
|
|
ref.invoke(call);
|
| 136 |
|
|
java.rmi.dgc.Lease $result;
|
| 137 |
|
|
try {
|
| 138 |
|
|
java.io.ObjectInput in = call.getInputStream();
|
| 139 |
|
|
$result = (java.rmi.dgc.Lease)in.readObject();
|
| 140 |
|
|
return ($result);
|
| 141 |
|
|
}
|
| 142 |
|
|
catch (java.io.IOException e) {
|
| 143 |
|
|
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
|
| 144 |
|
|
}
|
| 145 |
|
|
finally {
|
| 146 |
|
|
ref.done(call);
|
| 147 |
|
|
}
|
| 148 |
|
|
}
|
| 149 |
|
|
}
|
| 150 |
|
|
catch (java.rmi.RemoteException e) {
|
| 151 |
|
|
throw e;
|
| 152 |
|
|
}
|
| 153 |
|
|
catch (java.lang.Exception e) {
|
| 154 |
|
|
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
|
| 155 |
|
|
}
|
| 156 |
|
|
}
|
| 157 |
|
|
|
| 158 |
|
|
}
|