Class MetaDataHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
com.linkedin.venice.router.MetaDataHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@Sharable public class MetaDataHandler extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
This MetaDataHandle is used to handle the following meta data requests: 1. Controller lookup: /controller, and it will return leader controller url as the content. 2. Key schema lookup: /key_schema/${storeName}, and it will return key schema in json format. The client can use SchemaResponse to parse it. 3. Single value schema lookup: /value_schema/${storeName}/${valueSchemaId}, and it will return the corresponding value schema in json format. The client can use SchemaResponse to parse it. 4. All value schema lookup: /value_schema/{$storeName}, and it will return all the value schema of the specified store in json format. The client can use MultiSchemaResponse to parse it.