Class IngestionTaskReport
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.ingestion.protocol.IngestionTaskReport
- All Implemented Interfaces:
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 IngestionTaskReport
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanintint0 => Completed, 1=> Errored, 2 => Started, 3 => Restarted, 4 => Progress, 5 => EndOfPushReceived, 6 => StartOfBufferReplayReceived, 7 => StartOfIncrementalPushReceived, 8 => EndOfIncrementalPushReceived, 9 => TopicSwitchReceived, 10 => DataRecoveryCompleted, 11 => Stoppedstatic final org.apache.avro.Schema -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IngestionTaskReport(CharSequence topicName, Integer partitionId, ByteBuffer pubSubPosition, Boolean isPositive, Boolean exceptionThrown, Integer reportType, CharSequence message, ByteBuffer offsetRecord, ByteBuffer storeVersionState) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget(int field$) static org.apache.avro.SchemabooleanGets the value of the 'exceptionThrown' field.booleanGets the value of the 'isPositive' field.Gets the value of the 'message' field.Gets the value of the 'offsetRecord' field.intGets the value of the 'partitionId' field.Gets the value of the 'pubSubPosition' field.intGets the value of the 'reportType' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDataGets the value of the 'storeVersionState' field.Gets the value of the 'topicName' field.voidvoidvoidsetExceptionThrown(boolean value) Sets the value of the 'exceptionThrown' field.voidsetIsPositive(boolean value) Sets the value of the 'isPositive' field.voidsetMessage(CharSequence value) Sets the value of the 'message' field.voidsetOffsetRecord(ByteBuffer value) Sets the value of the 'offsetRecord' field.voidsetPartitionId(int value) Sets the value of the 'partitionId' field.voidsetPubSubPosition(ByteBuffer value) Sets the value of the 'pubSubPosition' field.voidsetReportType(int value) Sets the value of the 'reportType' field.voidsetStoreVersionState(ByteBuffer value) Sets the value of the 'storeVersionState' field.voidsetTopicName(CharSequence value) Sets the value of the 'topicName' field.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 org.apache.avro.generic.GenericRecord
hasField
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$ -
topicName
-
partitionId
public int partitionId -
pubSubPosition
-
isPositive
public boolean isPositive -
exceptionThrown
public boolean exceptionThrown -
reportType
public int reportType0 => Completed, 1=> Errored, 2 => Started, 3 => Restarted, 4 => Progress, 5 => EndOfPushReceived, 6 => StartOfBufferReplayReceived, 7 => StartOfIncrementalPushReceived, 8 => EndOfIncrementalPushReceived, 9 => TopicSwitchReceived, 10 => DataRecoveryCompleted, 11 => Stopped -
message
-
offsetRecord
-
storeVersionState
-
-
Constructor Details
-
IngestionTaskReport
public IngestionTaskReport()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
IngestionTaskReport
public IngestionTaskReport(CharSequence topicName, Integer partitionId, ByteBuffer pubSubPosition, Boolean isPositive, Boolean exceptionThrown, Integer reportType, CharSequence message, ByteBuffer offsetRecord, ByteBuffer storeVersionState) All-args constructor.- Parameters:
topicName- The new value for topicNamepartitionId- The new value for partitionIdpubSubPosition- The new value for pubSubPositionisPositive- The new value for isPositiveexceptionThrown- The new value for exceptionThrownreportType- 0 => Completed, 1=> Errored, 2 => Started, 3 => Restarted, 4 => Progress, 5 => EndOfPushReceived, 6 => StartOfBufferReplayReceived, 7 => StartOfIncrementalPushReceived, 8 => EndOfIncrementalPushReceived, 9 => TopicSwitchReceived, 10 => DataRecoveryCompleted, 11 => Stoppedmessage- The new value for messageoffsetRecord- The new value for offsetRecordstoreVersionState- The new value for storeVersionState
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
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- Specified by:
getSchemain classorg.apache.avro.specific.SpecificRecordBase
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
getin classorg.apache.avro.specific.SpecificRecordBase
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Specified by:
putin classorg.apache.avro.specific.SpecificRecordBase
-
getTopicName
Gets the value of the 'topicName' field.- Returns:
- The value of the 'topicName' field.
-
setTopicName
Sets the value of the 'topicName' field.- Parameters:
value- the value to set.
-
getPartitionId
public int getPartitionId()Gets the value of the 'partitionId' field.- Returns:
- The value of the 'partitionId' field.
-
setPartitionId
public void setPartitionId(int value) Sets the value of the 'partitionId' field.- Parameters:
value- the value to set.
-
getPubSubPosition
Gets the value of the 'pubSubPosition' field.- Returns:
- The value of the 'pubSubPosition' field.
-
setPubSubPosition
Sets the value of the 'pubSubPosition' field.- Parameters:
value- the value to set.
-
getIsPositive
public boolean getIsPositive()Gets the value of the 'isPositive' field.- Returns:
- The value of the 'isPositive' field.
-
setIsPositive
public void setIsPositive(boolean value) Sets the value of the 'isPositive' field.- Parameters:
value- the value to set.
-
getExceptionThrown
public boolean getExceptionThrown()Gets the value of the 'exceptionThrown' field.- Returns:
- The value of the 'exceptionThrown' field.
-
setExceptionThrown
public void setExceptionThrown(boolean value) Sets the value of the 'exceptionThrown' field.- Parameters:
value- the value to set.
-
getReportType
public int getReportType()Gets the value of the 'reportType' field.- Returns:
- 0 => Completed, 1=> Errored, 2 => Started, 3 => Restarted, 4 => Progress, 5 => EndOfPushReceived, 6 => StartOfBufferReplayReceived, 7 => StartOfIncrementalPushReceived, 8 => EndOfIncrementalPushReceived, 9 => TopicSwitchReceived, 10 => DataRecoveryCompleted, 11 => Stopped
-
setReportType
public void setReportType(int value) Sets the value of the 'reportType' field. 0 => Completed, 1=> Errored, 2 => Started, 3 => Restarted, 4 => Progress, 5 => EndOfPushReceived, 6 => StartOfBufferReplayReceived, 7 => StartOfIncrementalPushReceived, 8 => EndOfIncrementalPushReceived, 9 => TopicSwitchReceived, 10 => DataRecoveryCompleted, 11 => Stopped- Parameters:
value- the value to set.
-
getMessage
Gets the value of the 'message' field.- Returns:
- The value of the 'message' field.
-
setMessage
Sets the value of the 'message' field.- Parameters:
value- the value to set.
-
getOffsetRecord
Gets the value of the 'offsetRecord' field.- Returns:
- The value of the 'offsetRecord' field.
-
setOffsetRecord
Sets the value of the 'offsetRecord' field.- Parameters:
value- the value to set.
-
getStoreVersionState
Gets the value of the 'storeVersionState' field.- Returns:
- The value of the 'storeVersionState' field.
-
setStoreVersionState
Sets the value of the 'storeVersionState' field.- Parameters:
value- the value to set.
-
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
-