rice.rm
Interface RM
- All Known Implementing Classes:
- RMImpl
- public interface RM
Method Summary |
void |
lookupForward(RouteMessage msg)
Called by client(RMClient) to enable optimizations to route to the
nearest replica. |
void |
registerKey(Id key)
Called by client(RMClient) to notify the RM substrate of the
presence of a key corresponding to a object that was 'recently'
inserted at itself. |
registerKey
public void registerKey(Id key)
- Called by client(RMClient) to notify the RM substrate of the
presence of a key corresponding to a object that was 'recently'
inserted at itself. The RM substrate algorithm is designed on a
Pull model. This call however gives the RM substrate to implement
the Push model if it desires so in future. The current implementation
this method is non-operational since we believe that the Pull model
behaves sufficiently well.
- Parameters:
key
- the object identifier
lookupForward
public void lookupForward(RouteMessage msg)
- Called by client(RMClient) to enable optimizations to route to the
nearest replica. Should be called by client in the context of the
forward method of a lookup message. Should only be called if the local
client does not have the desired object. This call could change the
nextHop field in the RouteMessage.
- Parameters:
msg
- the RouteMessage