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