Class HertsRpcClientBuilder

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static IBuilder builder​(java.lang.String connectedHost)  
      static IBuilder builder​(java.lang.String connectedHost, int serverPort)  
      <T extends org.hertsstack.core.service.HertsService>
      T
      createHertsRpcService​(java.lang.Class<T> interfaceType)
      Create herts core interface
      <T extends org.hertsstack.core.service.HertsService>
      T
      createHertsRpcService​(java.lang.Class<T> interfaceClass, io.grpc.CallCredentials credentials)
      Create herts core interface
      io.grpc.ManagedChannel getChannel()
      Get channel
      java.lang.String getClient()
      Get clientId.
      org.hertsstack.rpcclient.ClientConnection getClientConnection()
      Get client connection
      java.lang.String getConnectedHost()
      Get connected host
      org.hertsstack.core.context.HertsType getHertsCoreType()
      Get registered herts type
      boolean isSecureConnection()
      Is secure or not
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HertsRpcClientBuilder

        public HertsRpcClientBuilder​(IBuilder builder)
    • Method Detail

      • builder

        public static IBuilder builder​(java.lang.String connectedHost,
                                       int serverPort)
      • builder

        public static IBuilder builder​(java.lang.String connectedHost)
      • getHertsCoreType

        public org.hertsstack.core.context.HertsType getHertsCoreType()
        Description copied from interface: HertsRpcClient
        Get registered herts type
        Specified by:
        getHertsCoreType in interface HertsRpcClient
        Returns:
        HertsType
      • getClient

        public java.lang.String getClient()
        Description copied from interface: HertsRpcClient
        Get clientId.
        Specified by:
        getClient in interface HertsRpcClient
        Returns:
        ClientId string
      • getChannel

        public io.grpc.ManagedChannel getChannel()
        Description copied from interface: HertsRpcClient
        Get channel
        Specified by:
        getChannel in interface HertsRpcClient
        Returns:
        ManagedChannel
      • getClientConnection

        public org.hertsstack.rpcclient.ClientConnection getClientConnection()
        Description copied from interface: HertsRpcClient
        Get client connection
        Specified by:
        getClientConnection in interface HertsRpcClient
        Returns:
        modelx.ClientConnection
      • createHertsRpcService

        public <T extends org.hertsstack.core.service.HertsService> T createHertsRpcService​(java.lang.Class<T> interfaceType)
        Description copied from interface: HertsRpcClient
        Create herts core interface
        Specified by:
        createHertsRpcService in interface HertsRpcClient
        Type Parameters:
        T - Generics
        Parameters:
        interfaceType - Class type
        Returns:
        HertsService
      • createHertsRpcService

        public <T extends org.hertsstack.core.service.HertsService> T createHertsRpcService​(java.lang.Class<T> interfaceClass,
                                                                                            io.grpc.CallCredentials credentials)
        Description copied from interface: HertsRpcClient
        Create herts core interface
        Specified by:
        createHertsRpcService in interface HertsRpcClient
        Type Parameters:
        T - Generics
        Parameters:
        interfaceClass - Class type
        credentials - CallCredentials if you want set authentication
        Returns:
        HertsService