1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.hadoop.hbase.ipc;
21
22 import java.lang.reflect.Method;
23 import java.io.IOException;
24 import java.net.InetSocketAddress;
25
26 import org.apache.hadoop.classification.InterfaceAudience;
27 import org.apache.hadoop.conf.Configurable;
28 import org.apache.hadoop.hbase.security.User;
29 import org.apache.hadoop.conf.Configuration;
30
31
32 @InterfaceAudience.Private
33 public interface RpcEngine extends Configurable {
34
35
36
37 <T extends VersionedProtocol> T getProxy(Class<T> protocol,
38 long clientVersion, InetSocketAddress addr,
39 Configuration conf, int rpcTimeout) throws IOException;
40
41
42 void close();
43
44
45 Object[] call(Method method, Object[][] params, InetSocketAddress[] addrs,
46 Class<? extends VersionedProtocol> protocol,
47 User ticket, Configuration conf)
48 throws IOException, InterruptedException;
49
50
51
52 RpcServer getServer(Class<? extends VersionedProtocol> protocol, Object instance,
53 Class<?>[] ifaces, String bindAddress,
54 int port, int numHandlers, int metaHandlerCount,
55 boolean verbose, Configuration conf, int highPriorityLevel)
56 throws IOException;
57
58 }