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
Modifier and TypeFieldDescriptionboolean
boolean
long
int
int
0 => 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
ConstructorDescriptionDefault constructor.IngestionTaskReport
(CharSequence topicName, Integer partitionId, Long offset, 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.Schema
boolean
Gets the value of the 'exceptionThrown' field.boolean
Gets the value of the 'isPositive' field.Gets the value of the 'message' field.long
Gets the value of the 'offset' field.Gets the value of the 'offsetRecord' field.int
Gets the value of the 'partitionId' field.int
Gets the value of the 'reportType' field.org.apache.avro.Schema
org.apache.avro.specific.SpecificData
Gets the value of the 'storeVersionState' field.Gets the value of the 'topicName' field.void
void
void
setExceptionThrown
(boolean value) Sets the value of the 'exceptionThrown' field.void
setIsPositive
(boolean value) Sets the value of the 'isPositive' field.void
setMessage
(CharSequence value) Sets the value of the 'message' field.void
setOffset
(long value) Sets the value of the 'offset' field.void
setOffsetRecord
(ByteBuffer value) Sets the value of the 'offsetRecord' field.void
setPartitionId
(int value) Sets the value of the 'partitionId' field.void
setReportType
(int value) Sets the value of the 'reportType' field.void
setStoreVersionState
(ByteBuffer value) Sets the value of the 'storeVersionState' field.void
setTopicName
(CharSequence value) Sets the value of the 'topicName' field.void
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 -
offset
public long offset -
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, Long offset, 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 partitionIdoffset
- The new value for offsetisPositive
- 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:
getSpecificData
in classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchema
in interfaceorg.apache.avro.generic.GenericContainer
- Specified by:
getSchema
in classorg.apache.avro.specific.SpecificRecordBase
-
get
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
get
in classorg.apache.avro.specific.SpecificRecordBase
-
put
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
- Specified by:
put
in 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.
-
getOffset
public long getOffset()Gets the value of the 'offset' field.- Returns:
- The value of the 'offset' field.
-
setOffset
public void setOffset(long value) Sets the value of the 'offset' 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:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classorg.apache.avro.specific.SpecificRecordBase
- Throws:
IOException
-