span.kind(kind); String service = invoker.getInterface().getSimpleName(); String method = RpcUtils.getMethodName(invocation); span.name(service + "/" + method); parseRemoteAddress(rpcContext, span); onError(result.getException(), span); isOneway = RpcUtils.isOneway(invoker.getUrl(), invocation);
@Override public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException { return new MockInvoker<T>(url); } }
public static Object parseMockValue(String mock) throws Exception { return parseMockValue(mock, null); }
public static boolean isJavaGenericSerialization(String generic) { return isGeneric(generic) && Constants.GENERIC_SERIALIZATION_NATIVE_JAVA.equalsIgnoreCase(generic); }
protected static String serviceKey(URL url) { return ProtocolUtils.serviceKey(url); }
@Override public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException { return new MockInvoker<T>(url); } }
public static Object parseMockValue(String mock) throws Exception { return parseMockValue(mock, null); }
protected static String serviceKey(int port, String serviceName, String serviceVersion, String serviceGroup) { return ProtocolUtils.serviceKey(port, serviceName, serviceVersion, serviceGroup); }
public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException { return new MockInvoker<T>(url); } }
public static Object parseMockValue(String mock) throws Exception { return parseMockValue(mock, null); }
protected static String serviceKey(int port, String serviceName, String serviceVersion, String serviceGroup) { return ProtocolUtils.serviceKey(port, serviceName, serviceVersion, serviceGroup); }
public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException { return new MockInvoker<T>(url); } }
public static Object parseMockValue(String mock) throws Exception { return parseMockValue(mock, null); }
protected static String serviceKey(URL url) { return ProtocolUtils.serviceKey(url); }
public <T> Invoker<T> refer(Class<T> type, URL url) throws JahhanException { return new MockInvoker<T>(url); } }
public static Object parseMockValue(String mock) throws Exception { return parseMockValue(mock, null); }
protected static String serviceKey(int port, String serviceName, String serviceVersion, String serviceGroup) { return ProtocolUtils.serviceKey(port, serviceName, serviceVersion, serviceGroup); }
protected static String serviceKey(int port, String serviceName, String serviceVersion, String serviceGroup) { return ProtocolUtils.serviceKey(port, serviceName, serviceVersion, serviceGroup); }
protected static String serviceKey(URL url) { return ProtocolUtils.serviceKey(url); }
protected static String serviceKey(int port, String serviceName, String serviceVersion, String serviceGroup) { return ProtocolUtils.serviceKey(port, serviceName, serviceVersion, serviceGroup); }