Class IoTDBConfigNodeReceiver
java.lang.Object
org.apache.iotdb.commons.pipe.receiver.IoTDBFileReceiver
org.apache.iotdb.confignode.manager.pipe.receiver.protocol.IoTDBConfigNodeReceiver
- All Implemented Interfaces:
IoTDBReceiver
-
Field Summary
Fields inherited from class org.apache.iotdb.commons.pipe.receiver.IoTDBFileReceiver
isUsingAsyncLoadTsFileStrategy, lastSuccessfulLoginTime, password, receiverFileDirWithIdSuffix, receiverId, shouldConvertDataTypeOnTypeMismatch, shouldMarkAsPipeRequest, username, validateTsFile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Stringprotected Stringprotected Stringprotected Stringprotected TSStatusloadFileV1(org.apache.iotdb.commons.pipe.connector.payload.thrift.request.PipeTransferFileSealReqV1 req, String fileAbsolutePath) protected TSStatusloadFileV2(org.apache.iotdb.commons.pipe.connector.payload.thrift.request.PipeTransferFileSealReqV2 req, List<String> fileAbsolutePaths) protected TSStatuslogin()receive(TPipeTransferReq req) protected booleanMethods inherited from class org.apache.iotdb.commons.pipe.receiver.IoTDBFileReceiver
getVersion, handleExit, handleTransferFilePiece, handleTransferFileSealV1, handleTransferFileSealV2, handleTransferHandshakeV1, handleTransferHandshakeV2, loginIfNecessary, updateWritingFileIfNeeded
-
Constructor Details
-
IoTDBConfigNodeReceiver
public IoTDBConfigNodeReceiver()
-
-
Method Details
-
receive
-
getClusterId
- Specified by:
getClusterIdin classIoTDBFileReceiver
-
shouldLogin
protected boolean shouldLogin()- Overrides:
shouldLoginin classIoTDBFileReceiver
-
login
- Specified by:
loginin classIoTDBFileReceiver
-
getReceiverFileBaseDir
- Specified by:
getReceiverFileBaseDirin classIoTDBFileReceiver
-
getSenderHost
- Specified by:
getSenderHostin classIoTDBFileReceiver
-
getSenderPort
- Specified by:
getSenderPortin classIoTDBFileReceiver
-
loadFileV1
protected TSStatus loadFileV1(org.apache.iotdb.commons.pipe.connector.payload.thrift.request.PipeTransferFileSealReqV1 req, String fileAbsolutePath) - Specified by:
loadFileV1in classIoTDBFileReceiver
-
loadFileV2
protected TSStatus loadFileV2(org.apache.iotdb.commons.pipe.connector.payload.thrift.request.PipeTransferFileSealReqV2 req, List<String> fileAbsolutePaths) throws IOException - Specified by:
loadFileV2in classIoTDBFileReceiver- Throws:
IOException
-
closeSession
protected void closeSession()- Specified by:
closeSessionin classIoTDBFileReceiver
-