1:
37:
38:
39:
40:
41: package ;
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: }