Class IdlTestIntegrationCommand
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
ch.admin.bit.jeap.messaging.avro.command.integration.idl.IdlTestIntegrationCommand
- All Implemented Interfaces:
ch.admin.bit.jeap.command.avro.AvroCommand,ch.admin.bit.jeap.command.Command,ch.admin.bit.jeap.kafka.SerializedMessageReceiver,ch.admin.bit.jeap.messaging.avro.AvroMessage,ch.admin.bit.jeap.messaging.avro.SerializedMessageHolder,ch.admin.bit.jeap.messaging.model.Message,Externalizable,Serializable,Comparable<org.apache.avro.specific.SpecificRecord>,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.IndexedRecord,org.apache.avro.specific.SpecificRecord
public class IdlTestIntegrationCommand
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ch.admin.bit.jeap.command.avro.AvroCommand
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for IdlTestIntegrationCommand instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IdlTestIntegrationCommand(ch.admin.bit.jeap.messaging.avro.AvroMessageIdentity identity, ch.admin.bit.jeap.messaging.avro.AvroMessageType type, ch.admin.bit.jeap.messaging.avro.AvroMessagePublisher publisher, IdlTestIntegrationReferences references, IdlTestIntegrationPayload payload, String commandVersion) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<IdlTestIntegrationCommand> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static IdlTestIntegrationCommandDeserializes a IdlTestIntegrationCommand from a ByteBuffer.get(int field$) static org.apache.avro.SchemaGets the value of the 'commandVersion' field.static org.apache.avro.message.BinaryMessageDecoder<IdlTestIntegrationCommand> Return the BinaryMessageDecoder instance used by this class.static org.apache.avro.message.BinaryMessageEncoder<IdlTestIntegrationCommand> Return the BinaryMessageEncoder instance used by this class.ch.admin.bit.jeap.messaging.avro.AvroMessageIdentityGets the value of the 'identity' field.Gets the value of the 'commandVersion' field as an OptionalOptional<ch.admin.bit.jeap.messaging.avro.AvroMessageIdentity> Gets the value of the 'identity' field as an OptionalGets the value of the 'payload' field as an OptionalOptional<ch.admin.bit.jeap.messaging.avro.AvroMessagePublisher> Gets the value of the 'publisher' field as an OptionalGets the value of the 'references' field as an OptionalOptional<ch.admin.bit.jeap.messaging.avro.AvroMessageType> Gets the value of the 'type' field as an OptionalGets the value of the 'payload' field.ch.admin.bit.jeap.messaging.avro.AvroMessagePublisherGets the value of the 'publisher' field.Gets the value of the 'references' field.org.apache.avro.Schemabyte[]org.apache.avro.specific.SpecificDatach.admin.bit.jeap.messaging.avro.AvroMessageTypegetType()Gets the value of the 'type' field.Creates a new IdlTestIntegrationCommand RecordBuilder.Creates a new IdlTestIntegrationCommand RecordBuilder by copying an existing IdlTestIntegrationCommand instance.Creates a new IdlTestIntegrationCommand RecordBuilder by copying an existing Builder.voidvoidvoidsetCommandVersion(String value) Sets the value of the 'commandVersion' field.voidsetIdentity(ch.admin.bit.jeap.messaging.avro.AvroMessageIdentity value) Sets the value of the 'identity' field.voidSets the value of the 'payload' field.voidsetPayload(ch.admin.bit.jeap.messaging.model.MessagePayload payload) voidsetPublisher(ch.admin.bit.jeap.messaging.avro.AvroMessagePublisher value) Sets the value of the 'publisher' field.voidSets the value of the 'references' field.voidsetReferences(ch.admin.bit.jeap.messaging.model.MessageReferences references) voidsetSerializedMessage(byte[] serializedMessage) voidsetType(ch.admin.bit.jeap.messaging.avro.AvroMessageType value) Sets the value of the 'type' field.Serializes this IdlTestIntegrationCommand to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.admin.bit.jeap.command.avro.AvroCommand
setUserMethods inherited from interface ch.admin.bit.jeap.messaging.avro.AvroMessage
getOptionalProcessId, setProcessIdMethods inherited from interface org.apache.avro.generic.GenericRecord
hasFieldMethods inherited from interface ch.admin.bit.jeap.messaging.model.Message
getOptionalUser
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$
-
-
Constructor Details
-
IdlTestIntegrationCommand
public IdlTestIntegrationCommand()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
IdlTestIntegrationCommand
public IdlTestIntegrationCommand(ch.admin.bit.jeap.messaging.avro.AvroMessageIdentity identity, ch.admin.bit.jeap.messaging.avro.AvroMessageType type, ch.admin.bit.jeap.messaging.avro.AvroMessagePublisher publisher, IdlTestIntegrationReferences references, IdlTestIntegrationPayload payload, String commandVersion) All-args constructor.- Parameters:
identity- The new value for identitytype- The new value for typepublisher- The new value for publisherreferences- The new value for referencespayload- The new value for payloadcommandVersion- The new value for commandVersion
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getEncoder
Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
getDecoder
Return the BinaryMessageDecoder instance used by this class.- Returns:
- the message decoder used by this class
-
createDecoder
public static org.apache.avro.message.BinaryMessageDecoder<IdlTestIntegrationCommand> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.- Parameters:
resolver- aSchemaStoreused to find schemas by fingerprint- Returns:
- a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
Serializes this IdlTestIntegrationCommand to a ByteBuffer.- Returns:
- a buffer holding the serialized data for this instance
- Throws:
IOException- if this instance could not be serialized
-
fromByteBuffer
Deserializes a IdlTestIntegrationCommand from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a IdlTestIntegrationCommand instance decoded from the given buffer
- Throws:
IOException- if the given bytes could not be deserialized into an instance of this class
-
getSerializedMessage
public byte[] getSerializedMessage()- Specified by:
getSerializedMessagein interfacech.admin.bit.jeap.messaging.avro.SerializedMessageHolder
-
setSerializedMessage
public void setSerializedMessage(byte[] serializedMessage) - Specified by:
setSerializedMessagein interfacech.admin.bit.jeap.kafka.SerializedMessageReceiver
-
getSpecificData
public org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
getIdentity
public ch.admin.bit.jeap.messaging.avro.AvroMessageIdentity getIdentity()Gets the value of the 'identity' field.- Specified by:
getIdentityin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'identity' field.
-
getOptionalIdentity
Gets the value of the 'identity' field as an Optional- Returns:
- The value wrapped in an Optional
-
setIdentity
public void setIdentity(ch.admin.bit.jeap.messaging.avro.AvroMessageIdentity value) Sets the value of the 'identity' field.- Specified by:
setIdentityin interfacech.admin.bit.jeap.command.avro.AvroCommand- Parameters:
value- the value to set.
-
getType
public ch.admin.bit.jeap.messaging.avro.AvroMessageType getType()Gets the value of the 'type' field.- Specified by:
getTypein interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'type' field.
-
getOptionalType
Gets the value of the 'type' field as an Optional- Returns:
- The value wrapped in an Optional
-
setType
public void setType(ch.admin.bit.jeap.messaging.avro.AvroMessageType value) Sets the value of the 'type' field.- Specified by:
setTypein interfacech.admin.bit.jeap.command.avro.AvroCommand- Parameters:
value- the value to set.
-
getPublisher
public ch.admin.bit.jeap.messaging.avro.AvroMessagePublisher getPublisher()Gets the value of the 'publisher' field.- Specified by:
getPublisherin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'publisher' field.
-
getOptionalPublisher
Gets the value of the 'publisher' field as an Optional- Returns:
- The value wrapped in an Optional
-
setPublisher
public void setPublisher(ch.admin.bit.jeap.messaging.avro.AvroMessagePublisher value) Sets the value of the 'publisher' field.- Specified by:
setPublisherin interfacech.admin.bit.jeap.command.avro.AvroCommand- Parameters:
value- the value to set.
-
getReferences
Gets the value of the 'references' field.- Specified by:
getReferencesin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- Specified by:
getReferencesin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'references' field.
-
getOptionalReferences
Gets the value of the 'references' field as an Optional- Specified by:
getOptionalReferencesin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- Specified by:
getOptionalReferencesin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value wrapped in an Optional
-
setReferences
Sets the value of the 'references' field.- Parameters:
value- the value to set.
-
setReferences
public void setReferences(ch.admin.bit.jeap.messaging.model.MessageReferences references) - Specified by:
setReferencesin interfacech.admin.bit.jeap.messaging.avro.AvroMessage
-
getPayload
Gets the value of the 'payload' field.- Specified by:
getPayloadin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- Specified by:
getPayloadin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'payload' field.
-
getOptionalPayload
Gets the value of the 'payload' field as an Optional- Specified by:
getOptionalPayloadin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- Specified by:
getOptionalPayloadin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value wrapped in an Optional
-
setPayload
Sets the value of the 'payload' field.- Parameters:
value- the value to set.
-
setPayload
public void setPayload(ch.admin.bit.jeap.messaging.model.MessagePayload payload) - Specified by:
setPayloadin interfacech.admin.bit.jeap.messaging.avro.AvroMessage
-
getCommandVersion
Gets the value of the 'commandVersion' field.- Specified by:
getCommandVersionin interfacech.admin.bit.jeap.command.Command- Returns:
- The value of the 'commandVersion' field.
-
getOptionalCommandVersion
Gets the value of the 'commandVersion' field as an Optional- Returns:
- The value wrapped in an Optional
-
setCommandVersion
Sets the value of the 'commandVersion' field.- Specified by:
setCommandVersionin interfacech.admin.bit.jeap.command.avro.AvroCommand- Parameters:
value- the value to set.
-
newBuilder
Creates a new IdlTestIntegrationCommand RecordBuilder.- Returns:
- A new IdlTestIntegrationCommand RecordBuilder
-
newBuilder
Creates a new IdlTestIntegrationCommand RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new IdlTestIntegrationCommand RecordBuilder
-
newBuilder
Creates a new IdlTestIntegrationCommand RecordBuilder by copying an existing IdlTestIntegrationCommand instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new IdlTestIntegrationCommand RecordBuilder
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-