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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ConfigurationManagementRequest.Builder
RecordBuilder for ConfigurationManagementRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
section
public String
config
public ConfigurationSchemaVersion
schemaVersion
public String
updateActor
public int
version
-
Constructor Summary
Constructors Constructor Description ConfigurationManagementRequest()
Default constructor. ConfigurationManagementRequest(String section, String config, ConfigurationSchemaVersion schemaVersion, String updateActor, Integer version)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getSection()
Gets the value of the 'section' field. void
setSection(String value)
Sets the value of the 'section' field. String
getConfig()
Gets the value of the 'config' field. void
setConfig(String value)
Sets the value of the 'config' field. ConfigurationSchemaVersion
getSchemaVersion()
Gets the value of the 'schemaVersion' field. void
setSchemaVersion(ConfigurationSchemaVersion value)
Sets the value of the 'schemaVersion' field. String
getUpdateActor()
Gets the value of the 'updateActor' field. void
setUpdateActor(String value)
Sets the value of the 'updateActor' field. int
getVersion()
Gets the value of the 'version' field. void
setVersion(int value)
Sets the value of the 'version' field. static Schema
getClassSchema()
static BinaryMessageEncoder<ConfigurationManagementRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<ConfigurationManagementRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<ConfigurationManagementRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this ConfigurationManagementRequest to a ByteBuffer. static ConfigurationManagementRequest
fromByteBuffer(ByteBuffer b)
Deserializes a ConfigurationManagementRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static ConfigurationManagementRequest.Builder
newBuilder()
Creates a new ConfigurationManagementRequest RecordBuilder. static ConfigurationManagementRequest.Builder
newBuilder(ConfigurationManagementRequest.Builder other)
Creates a new ConfigurationManagementRequest RecordBuilder by copying an existing Builder. static ConfigurationManagementRequest.Builder
newBuilder(ConfigurationManagementRequest other)
Creates a new ConfigurationManagementRequest RecordBuilder by copying an existing ConfigurationManagementRequest instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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.
-
getSchemaVersion
ConfigurationSchemaVersion getSchemaVersion()
Gets the value of the 'schemaVersion' field.
- Returns:
Schema version of the updated configuration.
-
setSchemaVersion
void setSchemaVersion(ConfigurationSchemaVersion value)
Sets the value of the 'schemaVersion' field. Schema version of the updated configuration.
- 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.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<ConfigurationManagementRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
- Returns:
the message encoder used by this class
-
getDecoder
static BinaryMessageDecoder<ConfigurationManagementRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
- Returns:
the message decoder used by this class
-
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
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static ConfigurationManagementRequest.Builder newBuilder()
Creates a new ConfigurationManagementRequest RecordBuilder.
- Returns:
A new ConfigurationManagementRequest RecordBuilder
-
newBuilder
static ConfigurationManagementRequest.Builder newBuilder(ConfigurationManagementRequest.Builder other)
Creates a new ConfigurationManagementRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.- Returns:
A new ConfigurationManagementRequest RecordBuilder
-
newBuilder
static ConfigurationManagementRequest.Builder newBuilder(ConfigurationManagementRequest other)
Creates a new ConfigurationManagementRequest RecordBuilder by copying an existing ConfigurationManagementRequest instance.
- Parameters:
other
- The existing instance to copy.- Returns:
A new ConfigurationManagementRequest RecordBuilder
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-