thanks for your reminding. 
At first, we want the rpc call is : <method-name, method-params>, then we use java's reflection to call "method-name" method.
But now, we define a interface  updateMetricFromRPC, so we do not need reflection any more.