use of org.smartdata.protocol.AdminServerProto.ListActionInfoOfLastActionsRequestProto in project SSM by Intel-bigdata.
the class AdminProtocolClientSideTranslator method listActionInfoOfLastActions.
@Override
public List<ActionInfo> listActionInfoOfLastActions(int maxNumActions) throws IOException {
ListActionInfoOfLastActionsRequestProto req = ListActionInfoOfLastActionsRequestProto.newBuilder().setMaxNumActions(maxNumActions).build();
try {
List<ActionInfoProto> protoslist = rpcProxy.listActionInfoOfLastActions(null, req).getActionInfoListList();
if (protoslist == null) {
return new ArrayList<>();
}
List<ActionInfo> list = new ArrayList<>();
for (ActionInfoProto infoProto : protoslist) {
list.add(ProtoBufferHelper.convert(infoProto));
}
return list;
} catch (ServiceException e) {
throw ProtoBufferHelper.getRemoteException(e);
}
}
Aggregations