public class ThriftClient extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected org.apache.storm.thrift.protocol.TProtocol |
protocol |
protected boolean |
retryForever |
Constructor and Description |
---|
ThriftClient(Map<String,Object> topoConf,
ThriftConnectionType type,
String host) |
ThriftClient(Map<String,Object> topoConf,
ThriftConnectionType type,
String host,
Integer port,
Integer timeout) |
ThriftClient(Map<String,Object> topoConf,
ThriftConnectionType type,
String host,
Integer port,
Integer timeout,
String asUser) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
reconnect() |
org.apache.storm.thrift.transport.TTransport |
transport() |
protected org.apache.storm.thrift.protocol.TProtocol protocol
protected boolean retryForever
public ThriftClient(Map<String,Object> topoConf, ThriftConnectionType type, String host)
public ThriftClient(Map<String,Object> topoConf, ThriftConnectionType type, String host, Integer port, Integer timeout)
public org.apache.storm.thrift.transport.TTransport transport()
public void reconnect()
public void close()
close
in interface AutoCloseable
Copyright © 2023 The Apache Software Foundation. All rights reserved.