Class AdminResponse


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

      • IGNORED_COMPRESSION_DICT

        public static final java.nio.ByteBuffer IGNORED_COMPRESSION_DICT
    • Constructor Detail

      • AdminResponse

        public AdminResponse()
    • 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()