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.
|
static int |
INTER_PROCESS_DISABLE
The constant for the grpc server port, -1 represents don't start an inter process server.
|
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 final int INTER_PROCESS_DISABLE
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)