Class AdminResponse

java.lang.Object
com.linkedin.davinci.listener.response.AdminResponse

public class AdminResponse extends Object
This class stores all the information required for answering a server admin request.
  • Field Details

    • IGNORED_COMPRESSION_DICT

      public static final ByteBuffer IGNORED_COMPRESSION_DICT
  • Constructor Details

    • AdminResponse

      public AdminResponse()
  • Method Details

    • 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(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(String message)
    • getMessage

      public String getMessage()
    • getResponseRecord

      public AdminResponseRecord getResponseRecord()