Package com.linkedin.venice.client.utils
Class StoreClientTestUtils
- java.lang.Object
-
- com.linkedin.venice.client.utils.StoreClientTestUtils
-
public class StoreClientTestUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StoreClientTestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.netty.handler.codec.http.FullHttpResponse
constructHttpClusterDiscoveryResponse(java.lang.String storeName, java.lang.String clusterName, java.lang.String d2Service)
static io.netty.handler.codec.http.FullHttpResponse
constructHttpMultiSchemaIdResponse(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries)
static io.netty.handler.codec.http.FullHttpResponse
constructHttpMultiSchemaResponse(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries)
static io.netty.handler.codec.http.FullHttpResponse
constructHttpSchemaResponse(java.lang.String storeName, int schemaId, java.lang.String schemaStr)
static byte[]
constructMultiSchemaIdResponseInBytes(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries)
static byte[]
constructMultiSchemaResponseInBytes(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries)
static byte[]
constructSchemaResponseInBytes(java.lang.String storeName, int schemaId, java.lang.String schemaStr)
static io.netty.handler.codec.http.FullHttpResponse
constructStoreResponse(int schemaId, byte[] value)
static byte[]
serializeRecord(java.lang.Object object, org.apache.avro.Schema schema)
-
-
-
Method Detail
-
constructHttpSchemaResponse
public static io.netty.handler.codec.http.FullHttpResponse constructHttpSchemaResponse(java.lang.String storeName, int schemaId, java.lang.String schemaStr) throws java.io.IOException
- Throws:
java.io.IOException
-
constructHttpClusterDiscoveryResponse
public static io.netty.handler.codec.http.FullHttpResponse constructHttpClusterDiscoveryResponse(java.lang.String storeName, java.lang.String clusterName, java.lang.String d2Service) throws java.io.IOException
- Throws:
java.io.IOException
-
constructSchemaResponseInBytes
public static byte[] constructSchemaResponseInBytes(java.lang.String storeName, int schemaId, java.lang.String schemaStr) throws java.io.IOException
- Throws:
java.io.IOException
-
constructHttpMultiSchemaResponse
public static io.netty.handler.codec.http.FullHttpResponse constructHttpMultiSchemaResponse(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries) throws java.io.IOException
- Throws:
java.io.IOException
-
constructHttpMultiSchemaIdResponse
public static io.netty.handler.codec.http.FullHttpResponse constructHttpMultiSchemaIdResponse(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries) throws java.io.IOException
- Throws:
java.io.IOException
-
constructMultiSchemaIdResponseInBytes
public static byte[] constructMultiSchemaIdResponseInBytes(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries) throws java.io.IOException
- Throws:
java.io.IOException
-
constructMultiSchemaResponseInBytes
public static byte[] constructMultiSchemaResponseInBytes(java.lang.String storeName, java.util.Map<java.lang.Integer,java.lang.String> valueSchemaEntries) throws java.io.IOException
- Throws:
java.io.IOException
-
constructStoreResponse
public static io.netty.handler.codec.http.FullHttpResponse constructStoreResponse(int schemaId, byte[] value) throws java.io.IOException
- Throws:
java.io.IOException
-
serializeRecord
public static byte[] serializeRecord(java.lang.Object object, org.apache.avro.Schema schema) throws VeniceClientException
- Throws:
VeniceClientException
-
-