1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| package org.jboss.cache; |
8 |
| |
9 |
| import org.jboss.cache.marshall.MethodCall; |
10 |
| import org.jgroups.Address; |
11 |
| |
12 |
| import java.lang.reflect.Method; |
13 |
| import java.util.List; |
14 |
| |
15 |
| |
16 |
| |
17 |
| |
18 |
| |
19 |
| |
20 |
| public class RPCManagerImpl implements RPCManager |
21 |
| { |
22 |
| private CacheImpl c; |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
4
| public RPCManagerImpl()
|
28 |
| { |
29 |
| } |
30 |
| |
31 |
1106
| public RPCManagerImpl(CacheSPI c)
|
32 |
| { |
33 |
1106
| this.c = (CacheImpl) c;
|
34 |
| } |
35 |
| |
36 |
| |
37 |
| |
38 |
120089
| public List callRemoteMethods(List<Address> recipients, MethodCall methodCall, int mode, boolean excludeSelf, long timeout) throws Exception
|
39 |
| { |
40 |
120089
| return c.callRemoteMethods(recipients, methodCall, mode, excludeSelf, timeout);
|
41 |
| } |
42 |
| |
43 |
10
| public boolean isCoordinator()
|
44 |
| { |
45 |
10
| return c.isCoordinator();
|
46 |
| } |
47 |
| |
48 |
0
| public Address getCoordinator()
|
49 |
| { |
50 |
0
| return c.getCoordinator();
|
51 |
| } |
52 |
| |
53 |
628
| public List callRemoteMethods(List<Address> recipients, MethodCall methodCall, boolean synchronous, boolean excludeSelf, int timeout) throws Exception
|
54 |
| { |
55 |
628
| return c.callRemoteMethods(recipients, methodCall, synchronous, excludeSelf, timeout);
|
56 |
| } |
57 |
| |
58 |
113266
| public List callRemoteMethods(List<Address> recipients, Method method, Object[] arguments, boolean synchronous, boolean excludeSelf, long timeout) throws Exception
|
59 |
| { |
60 |
113266
| return c.callRemoteMethods(recipients, method, arguments, synchronous, excludeSelf, timeout);
|
61 |
| } |
62 |
| |
63 |
4
| public void setCache(CacheSPI c)
|
64 |
| { |
65 |
4
| this.c = (CacheImpl) c;
|
66 |
| } |
67 |
| |
68 |
| |
69 |
| |
70 |
| |
71 |
10771
| public ReplicationQueue getReplicationQueue()
|
72 |
| { |
73 |
10771
| return c.getReplicationQueue();
|
74 |
| } |
75 |
| } |