|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.oncrpc.RpcCallCache
public class RpcCallCache
This class is used for handling the duplicate non-idempotenty Rpc calls. A non-idempotent request is processed as follows:
| Nested Class Summary | |
|---|---|
static class |
RpcCallCache.CacheEntry
|
static class |
RpcCallCache.ClientRequest
Call that is used to track a client in the RpcCallCache |
| Constructor Summary | |
|---|---|
RpcCallCache(String program,
int maxEntries)
|
|
| Method Summary | |
|---|---|
void |
callCompleted(InetAddress clientId,
int xid,
RpcResponse response)
Mark a request as completed and add corresponding response to the cache |
RpcCallCache.CacheEntry |
checkOrAddToCache(InetAddress clientId,
int xid)
Check the cache for an entry. |
String |
getProgram()
Return the program name |
Iterator<Map.Entry<RpcCallCache.ClientRequest,RpcCallCache.CacheEntry>> |
iterator()
Iterator to the cache entries |
int |
size()
Return number of cached entries |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RpcCallCache(String program,
int maxEntries)
| Method Detail |
|---|
public String getProgram()
public void callCompleted(InetAddress clientId,
int xid,
RpcResponse response)
public RpcCallCache.CacheEntry checkOrAddToCache(InetAddress clientId,
int xid)
public int size()
public Iterator<Map.Entry<RpcCallCache.ClientRequest,RpcCallCache.CacheEntry>> iterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||