Class DRPCClient

    • Constructor Detail

      • DRPCClient

        public DRPCClient​(Map<String,​Object> conf,
                          String host,
                          int port)
                   throws org.apache.storm.thrift.transport.TTransportException
        Throws:
        org.apache.storm.thrift.transport.TTransportException
      • DRPCClient

        public DRPCClient​(Map<String,​Object> conf,
                          String host,
                          int port,
                          Integer timeout)
                   throws org.apache.storm.thrift.transport.TTransportException
        Throws:
        org.apache.storm.thrift.transport.TTransportException
    • Method Detail

      • isLocalOverride

        public static boolean isLocalOverride()
        Check local override.
        Returns:
        true of new clients will be overridden to connect to a local cluster and not the configured remote cluster
      • getOverrideServiceId

        public static String getOverrideServiceId()
        Get override service ID.
        Returns:
        the service ID of the local override DRPC instance
      • getConfiguredClient

        public static DRPCClient getConfiguredClient​(Map<String,​Object> conf)
                                              throws org.apache.storm.thrift.transport.TTransportException
        Throws:
        org.apache.storm.thrift.transport.TTransportException
      • getHost

        public String getHost()
      • getPort

        public int getPort()