public class ThriftClient extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected org.apache.thrift.protocol.TProtocol |
_protocol |
protected boolean |
_retryForever |
Constructor and Description |
---|
ThriftClient(Map storm_conf,
ThriftConnectionType type,
String host) |
ThriftClient(Map storm_conf,
ThriftConnectionType type,
String host,
Integer port,
Integer timeout) |
ThriftClient(Map storm_conf,
ThriftConnectionType type,
String host,
Integer port,
Integer timeout,
String asUser) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
reconnect() |
org.apache.thrift.transport.TTransport |
transport() |
protected org.apache.thrift.protocol.TProtocol _protocol
protected boolean _retryForever
public ThriftClient(Map storm_conf, ThriftConnectionType type, String host)
public ThriftClient(Map storm_conf, ThriftConnectionType type, String host, Integer port, Integer timeout)
public org.apache.thrift.transport.TTransport transport()
public void reconnect()
public void close()
close
in interface AutoCloseable
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.