Class ConfigurationManagementRequest

  • All Implemented Interfaces:
    java.io.Externalizable , java.io.Serializable , java.lang.Comparable , org.apache.avro.generic.GenericContainer , org.apache.avro.generic.GenericRecord , org.apache.avro.generic.IndexedRecord , org.apache.avro.specific.SpecificRecord

    
    public class ConfigurationManagementRequest
    extends SpecificRecordBase implements SpecificRecord
                        
    • Constructor Detail

      • ConfigurationManagementRequest

        ConfigurationManagementRequest()
        Default constructor.
      • ConfigurationManagementRequest

        ConfigurationManagementRequest(String section, String config, ConfigurationSchemaVersion schemaVersion, String updateActor, Integer version)
        All-args constructor.
        Parameters:
        section - Section of the configuration to update.
        config - Updated configuration in JSON or HOCON format.
        schemaVersion - Schema version of the updated configuration.
        updateActor - ID of RPC user that requested the configuration update.
        version - Version of the configuration for optimistic locking.
    • Method Detail

      • getSection

         String getSection()

        Gets the value of the 'section' field.

        Returns:

        Section of the configuration to update.

      • setSection

         void setSection(String value)

        Sets the value of the 'section' field. Section of the configuration to update.

        Parameters:
        value - the value to set.
      • getConfig

         String getConfig()

        Gets the value of the 'config' field.

        Returns:

        Updated configuration in JSON or HOCON format.

      • setConfig

         void setConfig(String value)

        Sets the value of the 'config' field. Updated configuration in JSON or HOCON format.

        Parameters:
        value - the value to set.
      • getUpdateActor

         String getUpdateActor()

        Gets the value of the 'updateActor' field.

        Returns:

        ID of RPC user that requested the configuration update.

      • setUpdateActor

         void setUpdateActor(String value)

        Sets the value of the 'updateActor' field. ID of RPC user that requested the configuration update.

        Parameters:
        value - the value to set.
      • getVersion

         int getVersion()

        Gets the value of the 'version' field.

        Returns:

        Version of the configuration for optimistic locking.

      • setVersion

         void setVersion(int value)

        Sets the value of the 'version' field. Version of the configuration for optimistic locking.

        Parameters:
        value - the value to set.
      • createDecoder

         static BinaryMessageDecoder<ConfigurationManagementRequest> createDecoder(SchemaStore resolver)

        Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.

        Parameters:
        resolver - a SchemaStore used to find schemas by fingerprint
        Returns:

        a BinaryMessageDecoder instance for this class backed by the given SchemaStore

      • toByteBuffer

         ByteBuffer toByteBuffer()

        Serializes this ConfigurationManagementRequest to a ByteBuffer.

        Returns:

        a buffer holding the serialized data for this instance

      • fromByteBuffer

         static ConfigurationManagementRequest fromByteBuffer(ByteBuffer b)

        Deserializes a ConfigurationManagementRequest from a ByteBuffer.

        Parameters:
        b - a byte buffer holding serialized data for an instance of this class
        Returns:

        a ConfigurationManagementRequest instance decoded from the given buffer