use of org.smartdata.common.protocol.AdminServerProto.ListRulesInfoRequestProto in project SSM by Intel-bigdata.
the class SmartAdminProtocolAdminSideTranslatorPB method listRulesInfo.
@Override
public List<RuleInfo> listRulesInfo() throws IOException {
try {
ListRulesInfoRequestProto req = ListRulesInfoRequestProto.newBuilder().build();
List<RuleInfoProto> infoProtos = rpcProxy.listRulesInfo(null, req).getRulesInfoList();
if (infoProtos == null) {
return null;
}
List<RuleInfo> ret = new ArrayList<>();
for (RuleInfoProto infoProto : infoProtos) {
ret.add(PBHelper.convert(infoProto));
}
return ret;
} catch (ServiceException e) {
throw PBHelper.getRemoteException(e);
}
}
Aggregations