Examples of UnknownProtocolException


Examples of org.apache.hadoop.hbase.exceptions.UnknownProtocolException

      ServerRpcController execController = new ServerRpcController();
      CoprocessorServiceCall call = serviceRequest.getCall();
      String serviceName = call.getServiceName();
      String methodName = call.getMethodName();
      if (!coprocessorServiceHandlers.containsKey(serviceName)) {
        throw new UnknownProtocolException(null,
            "No registered coprocessor service found for name " + serviceName);
      }
      Service service = coprocessorServiceHandlers.get(serviceName);
      Descriptors.ServiceDescriptor serviceDesc = service.getDescriptorForType();
      Descriptors.MethodDescriptor methodDesc = serviceDesc.findMethodByName(methodName);
      if (methodDesc == null) {
        throw new UnknownProtocolException(service.getClass(), "Unknown method " + methodName
            + " called on service " + serviceName);
      }
      Message request =
          service.getRequestPrototype(methodDesc).newBuilderForType().mergeFrom(call.getRequest())
              .build();
View Full Code Here

Examples of org.rssowl.core.connection.UnknownProtocolException

    /* Handler present */
    if (handler != null)
      return handler;

    /* No Handler present */
    throw new UnknownProtocolException(Activator.getDefault().createErrorStatus(NLS.bind(Messages.ConnectionServiceImpl_ERROR_NO_PROTOCOL_HANDLER, protocol), null), protocol);
  }
View Full Code Here

Examples of org.rssowl.core.connection.UnknownProtocolException

    /* Handler present */
    if (handler != null)
      return handler.getLabel(link, monitor);

    /* No Handler present */
    throw new UnknownProtocolException(Activator.getDefault().createErrorStatus(NLS.bind(Messages.ConnectionServiceImpl_ERROR_NO_PROTOCOL_HANDLER, protocol), null), protocol);
  }
View Full Code Here

Examples of org.rssowl.core.connection.UnknownProtocolException

    /* Handler present */
    if (handler != null)
      return handler.reload(link, monitor, properties);

    /* No Handler present */
    throw new UnknownProtocolException(Activator.getDefault().createErrorStatus(NLS.bind(Messages.ConnectionServiceImpl_ERROR_NO_PROTOCOL_HANDLER, protocol), null), protocol);
  }
View Full Code Here

Examples of org.rssowl.core.connection.UnknownProtocolException

    /* Handler present */
    if (handler != null)
      return handler.getFeedIcon(link, monitor);

    /* No Handler present */
    throw new UnknownProtocolException(Activator.getDefault().createErrorStatus(NLS.bind(Messages.ConnectionServiceImpl_ERROR_NO_PROTOCOL_HANDLER, protocol), null), protocol);
  }
View Full Code Here

Examples of org.rssowl.core.connection.UnknownProtocolException

    /* Handler present */
    if (handler != null)
      return handler.getFeed(link, monitor);

    /* No Handler present */
    throw new UnknownProtocolException(Activator.getDefault().createErrorStatus(NLS.bind(Messages.ConnectionServiceImpl_ERROR_NO_PROTOCOL_HANDLER, protocol), null), protocol);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.