Search in sources :

Example 1 with ListActionsSupportedRequestProto

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

the class AdminProtocolClientSideTranslator method listActionsSupported.

@Override
public List<ActionDescriptor> listActionsSupported() throws IOException {
    ListActionsSupportedRequestProto req = ListActionsSupportedRequestProto.newBuilder().build();
    try {
        List<ActionDescriptorProto> prolist = rpcProxy.listActionsSupported(null, req).getActDesListList();
        List<ActionDescriptor> list = new ArrayList<>();
        for (ActionDescriptorProto a : prolist) {
            list.add(ProtoBufferHelper.convert(a));
        }
        return list;
    } catch (ServiceException e) {
        throw ProtoBufferHelper.getRemoteException(e);
    }
}
Also used : ServiceException(com.google.protobuf.ServiceException) ActionDescriptor(org.smartdata.model.ActionDescriptor) ListActionsSupportedRequestProto(org.smartdata.protocol.AdminServerProto.ListActionsSupportedRequestProto) ActionDescriptorProto(org.smartdata.protocol.AdminServerProto.ActionDescriptorProto) ArrayList(java.util.ArrayList)

Aggregations

ServiceException (com.google.protobuf.ServiceException)1 ArrayList (java.util.ArrayList)1 ActionDescriptor (org.smartdata.model.ActionDescriptor)1 ActionDescriptorProto (org.smartdata.protocol.AdminServerProto.ActionDescriptorProto)1 ListActionsSupportedRequestProto (org.smartdata.protocol.AdminServerProto.ListActionsSupportedRequestProto)1