Search in sources :

Example 1 with GetRuleInfoResponseProto

use of org.smartdata.common.protocol.AdminServerProto.GetRuleInfoResponseProto in project SSM by Intel-bigdata.

the class SmartAdminProtocolAdminSideTranslatorPB method getRuleInfo.

@Override
public RuleInfo getRuleInfo(long id) throws IOException {
    try {
        GetRuleInfoRequestProto req = GetRuleInfoRequestProto.newBuilder().setRuleId(id).build();
        GetRuleInfoResponseProto r = rpcProxy.getRuleInfo(null, req);
        return PBHelper.convert(r.getResult());
    } catch (ServiceException e) {
        throw PBHelper.getRemoteException(e);
    }
}
Also used : ServiceException(com.google.protobuf.ServiceException) GetRuleInfoRequestProto(org.smartdata.common.protocol.AdminServerProto.GetRuleInfoRequestProto) GetRuleInfoResponseProto(org.smartdata.common.protocol.AdminServerProto.GetRuleInfoResponseProto)

Aggregations

ServiceException (com.google.protobuf.ServiceException)1 GetRuleInfoRequestProto (org.smartdata.common.protocol.AdminServerProto.GetRuleInfoRequestProto)1 GetRuleInfoResponseProto (org.smartdata.common.protocol.AdminServerProto.GetRuleInfoResponseProto)1