01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: *
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: /**
20: * @author Mikhail A. Markov
21: * @version $Revision: 1.6.4.2 $
22: */package java.rmi.server;
23:
24: import java.lang.reflect.Method;
25: import java.io.Externalizable;
26: import java.io.ObjectOutput;
27: import java.rmi.Remote;
28: import java.rmi.RemoteException;
29:
30: /**
31: * @com.intel.drl.spec_ref
32: *
33: * @author Mikhail A. Markov
34: * @version $Revision: 1.6.4.2 $
35: */
36: public interface RemoteRef extends Externalizable {
37:
38: public static final long serialVersionUID = 3632638527362204081L;
39:
40: /** @com.intel.drl.spec_ref */
41: public static final String packagePrefix = "org.apache.harmony.rmi.remoteref"; //$NON-NLS-1$
42:
43: /**
44: * @com.intel.drl.spec_ref
45: */
46: public Object invoke(Remote obj, Method m, Object[] params, long h)
47: throws Exception;
48:
49: /**
50: * @com.intel.drl.spec_ref
51: * @deprecated The newCall() -> invoke() -> done() method invocation
52: * triplet is replaced by the single invocation of the
53: * invoke(Remote, Method, Object[], long) method in RMI v1.2.
54: */
55: @Deprecated
56: public RemoteCall newCall(RemoteObject obj, Operation[] op, int a1,
57: long a2) throws RemoteException;
58:
59: /**
60: * @com.intel.drl.spec_ref
61: */
62: public String getRefClass(ObjectOutput out);
63:
64: /**
65: * @com.intel.drl.spec_ref
66: */
67: public boolean remoteEquals(RemoteRef ref);
68:
69: /**
70: * @com.intel.drl.spec_ref
71: * @deprecated The newCall() -> invoke() -> done() method invocation
72: * triplet is replaced by the single invocation of the
73: * invoke(Remote, Method, Object[], long) method in RMI v1.2.
74: */
75: @Deprecated
76: public void invoke(RemoteCall call) throws Exception;
77:
78: /**
79: * @com.intel.drl.spec_ref
80: * @deprecated The newCall() -> invoke() -> done() method invocation
81: * triplet is replaced by the single invocation of the
82: * invoke(Remote, Method, Object[], long) method in RMI v1.2.
83: */
84: @Deprecated
85: public void done(RemoteCall call) throws RemoteException;
86:
87: /**
88: * @com.intel.drl.spec_ref
89: */
90: public String remoteToString();
91:
92: /**
93: * @com.intel.drl.spec_ref
94: */
95: public int remoteHashCode();
96: }
|