Class AdminResponse
- java.lang.Object
-
- com.linkedin.davinci.listener.response.AdminResponse
-
public class AdminResponse extends java.lang.Object
This class stores all the information required for answering a server admin request.
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.ByteBuffer
IGNORED_COMPRESSION_DICT
-
Constructor Summary
Constructors Constructor Description AdminResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPartitionConsumptionState(PartitionConsumptionState state)
Add a partition consumption state to the admin response recordvoid
addServerConfigs(java.util.Properties properties)
Load all server configs into admin response recordvoid
addStoreVersionState(StoreVersionState storeVersionState)
Add store version state metadata into the admin response recordjava.lang.String
getMessage()
io.netty.buffer.ByteBuf
getResponseBody()
AdminResponseRecord
getResponseRecord()
static int
getResponseSchemaIdHeader()
boolean
isError()
byte[]
serializedResponse()
void
setError(boolean error)
void
setMessage(java.lang.String message)
-
-
-
Method Detail
-
addPartitionConsumptionState
public void addPartitionConsumptionState(PartitionConsumptionState state)
Add a partition consumption state to the admin response record
-
addStoreVersionState
public void addStoreVersionState(StoreVersionState storeVersionState)
Add store version state metadata into the admin response record
-
addServerConfigs
public void addServerConfigs(java.util.Properties properties)
Load all server configs into admin response record
-
getResponseBody
public io.netty.buffer.ByteBuf getResponseBody()
-
serializedResponse
public byte[] serializedResponse()
-
getResponseSchemaIdHeader
public static int getResponseSchemaIdHeader()
-
setError
public void setError(boolean error)
-
isError
public boolean isError()
-
setMessage
public void setMessage(java.lang.String message)
-
getMessage
public java.lang.String getMessage()
-
getResponseRecord
public AdminResponseRecord getResponseRecord()
-
-