Class P2PMetadataTransferHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
com.linkedin.davinci.blobtransfer.client.P2PMetadataTransferHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class P2PMetadataTransferHandler extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
The client-side Netty handler to process responses for P2P metadata transfer.
  • Constructor Details

  • Method Details

    • channelRead0

      protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpResponse msg) throws Exception
      Specified by:
      channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
      Throws:
      Exception
    • updateStorePartitionMetadata

      public void updateStorePartitionMetadata(StorageMetadataService storageMetadataService, BlobTransferPartitionMetadata transferredPartitionMetadata)
      Sync the offset record and store version state
      Parameters:
      storageMetadataService - storage metadata service
      transferredPartitionMetadata - transferred partition metadata
    • updateIncrementalPushInfoToStore

      public void updateIncrementalPushInfoToStore(OffsetRecord offsetRecord, BlobTransferPartitionMetadata transferredPartitionMetadata)
      Update the incremental push info to push status store from the transferred offset record trackingIncrementalPushStatus
      Parameters:
      offsetRecord -
      transferredPartitionMetadata -
    • getMetadata

      public BlobTransferPartitionMetadata getMetadata()