Class SyncDataNodeMPPDataExchangeServiceClient
- java.lang.Object
-
- org.apache.thrift.TServiceClient
-
- org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService.Client
-
- org.apache.iotdb.commons.client.sync.SyncDataNodeMPPDataExchangeServiceClient
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ThriftClient,org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService.Iface
public class SyncDataNodeMPPDataExchangeServiceClient extends org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService.Client implements ThriftClient, java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyncDataNodeMPPDataExchangeServiceClient.Factory
-
Field Summary
-
Fields inherited from interface org.apache.iotdb.commons.client.ThriftClient
logger
-
-
Constructor Summary
Constructors Constructor Description SyncDataNodeMPPDataExchangeServiceClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, int connectionTimeout, org.apache.iotdb.common.rpc.thrift.TEndPoint endpoint, ClientManager<org.apache.iotdb.common.rpc.thrift.TEndPoint,SyncDataNodeMPPDataExchangeServiceClient> clientManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetTimeout()voidinvalidate()Close this connection.voidinvalidateAll()Removing all pooled instances corresponding to current instance's endpoint.voidsetTimeout(int timeout)java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.mpp.rpc.thrift.MPPDataExchangeService.Client
getDataBlock, onAcknowledgeDataBlockEvent, onCloseSinkChannelEvent, onEndOfDataBlockEvent, onNewDataBlockEvent, recv_getDataBlock, recv_onAcknowledgeDataBlockEvent, recv_onCloseSinkChannelEvent, recv_onEndOfDataBlockEvent, recv_onNewDataBlockEvent, send_getDataBlock, send_onAcknowledgeDataBlockEvent, send_onCloseSinkChannelEvent, send_onEndOfDataBlockEvent, send_onNewDataBlockEvent
-
-
-
-
Constructor Detail
-
SyncDataNodeMPPDataExchangeServiceClient
public SyncDataNodeMPPDataExchangeServiceClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, int connectionTimeout, org.apache.iotdb.common.rpc.thrift.TEndPoint endpoint, ClientManager<org.apache.iotdb.common.rpc.thrift.TEndPoint,SyncDataNodeMPPDataExchangeServiceClient> clientManager) throws org.apache.thrift.transport.TTransportException- Throws:
org.apache.thrift.transport.TTransportException
-
-
Method Detail
-
getTimeout
public int getTimeout() throws java.net.SocketException- Throws:
java.net.SocketException
-
setTimeout
public void setTimeout(int timeout)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
invalidate
public void invalidate()
Description copied from interface:ThriftClientClose this connection.- Specified by:
invalidatein interfaceThriftClient
-
invalidateAll
public void invalidateAll()
Description copied from interface:ThriftClientRemoving all pooled instances corresponding to current instance's endpoint.- Specified by:
invalidateAllin interfaceThriftClient
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-