public final class GrpcUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLOUD_DISCOVERY_METADATA_PORT
The cloud discovery metadata key used to identify the grpc port.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
extractMethodName(MethodDescriptor<?,?> method)
Extracts the method name from the given method.
|
static String |
extractServiceName(MethodDescriptor<?,?> method)
Extracts the service name from the given method.
|
public static final String CLOUD_DISCOVERY_METADATA_PORT
public static String extractServiceName(MethodDescriptor<?,?> method)
method - The method to get the service name from.MethodDescriptor.extractFullServiceName(String),
extractMethodName(MethodDescriptor)public static String extractMethodName(MethodDescriptor<?,?> method)
method - The method to get the method name from.extractServiceName(MethodDescriptor)