| 30 | LockToolImpl::~LockToolImpl() {} |
| 31 | |
| 32 | int LockToolImpl::PhxEcho(phxrpc::OptMap &opt_map) { |
| 33 | google::protobuf::StringValue req; |
| 34 | google::protobuf::StringValue resp; |
| 35 | |
| 36 | if (NULL == opt_map.Get('s')) return -1; |
| 37 | |
| 38 | req.set_value(opt_map.Get('s')); |
| 39 | |
| 40 | LockClient client; |
| 41 | int ret = client.PhxEcho(req, &resp); |
| 42 | printf("%s return %d\n", __func__, ret); |
| 43 | printf("resp: {\n%s}\n", resp.DebugString().c_str()); |
| 44 | |
| 45 | return ret; |
| 46 | } |
| 47 | |
| 48 | int LockToolImpl::GetLockInfo(phxrpc::OptMap &opt_map) { |
| 49 | phxqueue::comm::proto::GetLockInfoRequest req; |