Package org.hertsstack.core.descriptor
Class CustomGrpcDescriptor
- java.lang.Object
-
- org.hertsstack.core.descriptor.CustomGrpcDescriptor
-
public class CustomGrpcDescriptor extends java.lang.Object
Herts gRPC custom static descriptor.
-
-
Constructor Summary
Constructors Constructor Description CustomGrpcDescriptor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomGrpcUnaryDescriptor
generateGrpcDescriptor(java.lang.String serviceName, java.util.List<RegisteredMethod> hertsMethods)
Generate gRPC unary descriptor.static io.grpc.MethodDescriptor<byte[],byte[]>
generateMethodDescriptor(HertsType coreType, java.lang.String serviceName, java.lang.String methodName)
Generate method descriptor.static io.grpc.MethodDescriptor<java.lang.Object,java.lang.Object>
generateStramingMethodDescriptor(HertsType coreType, java.lang.String serviceName, java.lang.String methodName)
Generate straeming method descriptorstatic CustomGrpcStreamingDescriptor
generateStreamingGrpcDescriptor(java.lang.String serviceName, java.util.List<RegisteredMethod> hertsMethods)
Generate gRPC client, server, bidirectional streaming descriptor.
-
-
-
Method Detail
-
generateMethodDescriptor
public static io.grpc.MethodDescriptor<byte[],byte[]> generateMethodDescriptor(HertsType coreType, java.lang.String serviceName, java.lang.String methodName)
Generate method descriptor.- Parameters:
coreType
- HertsCoreTypeserviceName
- Interface service namemethodName
- Rpc name- Returns:
- MethodDescriptor
-
generateStramingMethodDescriptor
public static io.grpc.MethodDescriptor<java.lang.Object,java.lang.Object> generateStramingMethodDescriptor(HertsType coreType, java.lang.String serviceName, java.lang.String methodName)
Generate straeming method descriptor- Parameters:
coreType
- HertsTypeserviceName
- Service namemethodName
- Method name- Returns:
- MethodDescriptor
-
generateGrpcDescriptor
public static CustomGrpcUnaryDescriptor generateGrpcDescriptor(java.lang.String serviceName, java.util.List<RegisteredMethod> hertsMethods)
Generate gRPC unary descriptor.- Parameters:
serviceName
- Interface service namehertsMethods
- HertMethod class list- Returns:
- HertsDescriptor
-
generateStreamingGrpcDescriptor
public static CustomGrpcStreamingDescriptor generateStreamingGrpcDescriptor(java.lang.String serviceName, java.util.List<RegisteredMethod> hertsMethods)
Generate gRPC client, server, bidirectional streaming descriptor.- Parameters:
serviceName
- Interface service namehertsMethods
- HertMethod class list- Returns:
- HertsStreamingDescriptor
-
-