Class ConfigurationManagementResponse
-
- 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 ConfigurationManagementResponse extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ConfigurationManagementResponse.Builder
RecordBuilder for ConfigurationManagementResponse instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public boolean
success
public ExceptionEnvelope
exception
public String
section
public String
config
public ConfigurationSchemaVersion
schemaVersion
public int
version
-
Constructor Summary
Constructors Constructor Description ConfigurationManagementResponse()
Default constructor. ConfigurationManagementResponse(Boolean success, ExceptionEnvelope exception, String section, String config, ConfigurationSchemaVersion schemaVersion, Integer version)
All-args constructor.
-
Method Summary
Modifier and Type Method Description boolean
getSuccess()
Gets the value of the 'success' field. void
setSuccess(boolean value)
Sets the value of the 'success' field. ExceptionEnvelope
getException()
Gets the value of the 'exception' field. void
setException(ExceptionEnvelope value)
Sets the value of the 'exception' field. 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. 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<ConfigurationManagementResponse>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<ConfigurationManagementResponse>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<ConfigurationManagementResponse>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this ConfigurationManagementResponse to a ByteBuffer. static ConfigurationManagementResponse
fromByteBuffer(ByteBuffer b)
Deserializes a ConfigurationManagementResponse from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static ConfigurationManagementResponse.Builder
newBuilder()
Creates a new ConfigurationManagementResponse RecordBuilder. static ConfigurationManagementResponse.Builder
newBuilder(ConfigurationManagementResponse.Builder other)
Creates a new ConfigurationManagementResponse RecordBuilder by copying an existing Builder. static ConfigurationManagementResponse.Builder
newBuilder(ConfigurationManagementResponse other)
Creates a new ConfigurationManagementResponse RecordBuilder by copying an existing ConfigurationManagementResponse 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
-
ConfigurationManagementResponse
ConfigurationManagementResponse()
Default constructor.
-
ConfigurationManagementResponse
ConfigurationManagementResponse(Boolean success, ExceptionEnvelope exception, String section, String config, ConfigurationSchemaVersion schemaVersion, Integer version)
All-args constructor.- Parameters:
success
- Whether the request was successful.exception
- The cause of failure if the request was unsuccessful.section
- The configuration section for which an update was requested.config
- The current configuration in JSON format for the given section.schemaVersion
- Schema version of the current configuration.version
- The current configuration's optimistic-locking version for the given section.
-
-
Method Detail
-
getSuccess
boolean getSuccess()
Gets the value of the 'success' field.
-
setSuccess
void setSuccess(boolean value)
Sets the value of the 'success' field. Whether the request was successful.
- Parameters:
value
- the value to set.
-
getException
ExceptionEnvelope getException()
Gets the value of the 'exception' field.
-
setException
void setException(ExceptionEnvelope value)
Sets the value of the 'exception' field. The cause of failure if the request was unsuccessful.
- Parameters:
value
- the value to set.
-
getSection
String getSection()
Gets the value of the 'section' field.
-
setSection
void setSection(String value)
Sets the value of the 'section' field. The configuration section for which an update was requested.
- Parameters:
value
- the value to set.
-
setConfig
void setConfig(String value)
Sets the value of the 'config' field. The current configuration in JSON format for the given section.
- Parameters:
value
- the value to set.
-
getSchemaVersion
ConfigurationSchemaVersion getSchemaVersion()
Gets the value of the 'schemaVersion' field.
-
setSchemaVersion
void setSchemaVersion(ConfigurationSchemaVersion value)
Sets the value of the 'schemaVersion' field. Schema version of the current configuration.
- Parameters:
value
- the value to set.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
-
setVersion
void setVersion(int value)
Sets the value of the 'version' field. The current configuration's optimistic-locking version for the given section.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<ConfigurationManagementResponse> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<ConfigurationManagementResponse> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<ConfigurationManagementResponse> 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
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this ConfigurationManagementResponse to a ByteBuffer.
-
fromByteBuffer
static ConfigurationManagementResponse fromByteBuffer(ByteBuffer b)
Deserializes a ConfigurationManagementResponse from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static ConfigurationManagementResponse.Builder newBuilder()
Creates a new ConfigurationManagementResponse RecordBuilder.
-
newBuilder
static ConfigurationManagementResponse.Builder newBuilder(ConfigurationManagementResponse.Builder other)
Creates a new ConfigurationManagementResponse RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static ConfigurationManagementResponse.Builder newBuilder(ConfigurationManagementResponse other)
Creates a new ConfigurationManagementResponse RecordBuilder by copying an existing ConfigurationManagementResponse instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-