Class PushJobDetails
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.status.protocol.PushJobDetails
- 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 PushJobDetails
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
long
int
Latest checkpoint reached by the push job if available, negative values are known error checkpoints.long
timestamp for when the reported details were collectedstatic final org.apache.avro.Schema
Failure details of sending liveness heartbeat from the push job.long
total amount of compressed value bytes storedlong
total amount of Gzip compressed value byteslong
total amount of key bytes pushedlong
total number of key value pairs pushedlong
total amount of uncompressed value byteslong
total amount of Zstd with Dictionary compressed value bytesint
0 => NO_OP, 1 => GZIP -
Constructor Summary
ConstructorDescriptionDefault constructor.PushJobDetails
(CharSequence clusterName, Long reportTimestamp, List<PushJobDetailsStatusTuple> overallStatus, Map<CharSequence, List<PushJobDetailsStatusTuple>> coloStatus, CharSequence pushId, Integer partitionCount, Integer valueCompressionStrategy, Boolean chunkingEnabled, Long jobDurationInMs, Long totalNumberOfRecords, Long totalKeyBytes, Long totalRawValueBytes, Long totalCompressedValueBytes, Long totalGzipCompressedValueBytes, Long totalZstdWithDictCompressedValueBytes, Map<CharSequence, CharSequence> pushJobConfigs, Map<CharSequence, CharSequence> producerConfigs, Integer pushJobLatestCheckpoint, CharSequence failureDetails, CharSequence sendLivenessHeartbeatFailureDetails) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionget
(int field$) boolean
Gets the value of the 'chunkingEnabled' field.static org.apache.avro.Schema
Gets the value of the 'clusterName' field.Gets the value of the 'coloStatus' field.Gets the value of the 'failureDetails' field.long
Gets the value of the 'jobDurationInMs' field.Gets the value of the 'overallStatus' field.int
Gets the value of the 'partitionCount' field.Gets the value of the 'producerConfigs' field.Gets the value of the 'pushId' field.Gets the value of the 'pushJobConfigs' field.Gets the value of the 'pushJobLatestCheckpoint' field.long
Gets the value of the 'reportTimestamp' field.org.apache.avro.Schema
Gets the value of the 'sendLivenessHeartbeatFailureDetails' field.org.apache.avro.specific.SpecificData
long
Gets the value of the 'totalCompressedValueBytes' field.long
Gets the value of the 'totalGzipCompressedValueBytes' field.long
Gets the value of the 'totalKeyBytes' field.long
Gets the value of the 'totalNumberOfRecords' field.long
Gets the value of the 'totalRawValueBytes' field.long
Gets the value of the 'totalZstdWithDictCompressedValueBytes' field.int
Gets the value of the 'valueCompressionStrategy' field.void
void
void
setChunkingEnabled
(boolean value) Sets the value of the 'chunkingEnabled' field.void
setClusterName
(CharSequence value) Sets the value of the 'clusterName' field.void
Sets the value of the 'coloStatus' field.void
setFailureDetails
(CharSequence value) Sets the value of the 'failureDetails' field.void
setJobDurationInMs
(long value) Sets the value of the 'jobDurationInMs' field.void
Sets the value of the 'overallStatus' field.void
setPartitionCount
(int value) Sets the value of the 'partitionCount' field.void
Sets the value of the 'producerConfigs' field.void
setPushId
(CharSequence value) Sets the value of the 'pushId' field.void
setPushJobConfigs
(Map<CharSequence, CharSequence> value) Sets the value of the 'pushJobConfigs' field.void
Sets the value of the 'pushJobLatestCheckpoint' field.void
setReportTimestamp
(long value) Sets the value of the 'reportTimestamp' field.void
Sets the value of the 'sendLivenessHeartbeatFailureDetails' field.void
setTotalCompressedValueBytes
(long value) Sets the value of the 'totalCompressedValueBytes' field.void
setTotalGzipCompressedValueBytes
(long value) Sets the value of the 'totalGzipCompressedValueBytes' field.void
setTotalKeyBytes
(long value) Sets the value of the 'totalKeyBytes' field.void
setTotalNumberOfRecords
(long value) Sets the value of the 'totalNumberOfRecords' field.void
setTotalRawValueBytes
(long value) Sets the value of the 'totalRawValueBytes' field.void
setTotalZstdWithDictCompressedValueBytes
(long value) Sets the value of the 'totalZstdWithDictCompressedValueBytes' field.void
setValueCompressionStrategy
(int value) Sets the value of the 'valueCompressionStrategy' 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$ -
clusterName
-
reportTimestamp
public long reportTimestamptimestamp for when the reported details were collected -
overallStatus
-
coloStatus
-
pushId
-
partitionCount
public int partitionCount -
valueCompressionStrategy
public int valueCompressionStrategy0 => NO_OP, 1 => GZIP -
chunkingEnabled
public boolean chunkingEnabled -
jobDurationInMs
public long jobDurationInMs -
totalNumberOfRecords
public long totalNumberOfRecordstotal number of key value pairs pushed -
totalKeyBytes
public long totalKeyBytestotal amount of key bytes pushed -
totalRawValueBytes
public long totalRawValueBytestotal amount of uncompressed value bytes -
totalCompressedValueBytes
public long totalCompressedValueBytestotal amount of compressed value bytes stored -
totalGzipCompressedValueBytes
public long totalGzipCompressedValueBytestotal amount of Gzip compressed value bytes -
totalZstdWithDictCompressedValueBytes
public long totalZstdWithDictCompressedValueBytestotal amount of Zstd with Dictionary compressed value bytes -
pushJobConfigs
-
producerConfigs
-
pushJobLatestCheckpoint
Latest checkpoint reached by the push job if available, negative values are known error checkpoints. Refer tocom.linkedin.venice.hadoop.VenicePushJob.PushJobCheckpoints
-
failureDetails
-
sendLivenessHeartbeatFailureDetails
Failure details of sending liveness heartbeat from the push job. If no failure or the job is not enabled to send liveness heartbeat, this field is null
-
-
Constructor Details
-
PushJobDetails
public PushJobDetails()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder()
. -
PushJobDetails
public PushJobDetails(CharSequence clusterName, Long reportTimestamp, List<PushJobDetailsStatusTuple> overallStatus, Map<CharSequence, List<PushJobDetailsStatusTuple>> coloStatus, CharSequence pushId, Integer partitionCount, Integer valueCompressionStrategy, Boolean chunkingEnabled, Long jobDurationInMs, Long totalNumberOfRecords, Long totalKeyBytes, Long totalRawValueBytes, Long totalCompressedValueBytes, Long totalGzipCompressedValueBytes, Long totalZstdWithDictCompressedValueBytes, Map<CharSequence, CharSequence> pushJobConfigs, Map<CharSequence, CharSequence> producerConfigs, Integer pushJobLatestCheckpoint, CharSequence failureDetails, CharSequence sendLivenessHeartbeatFailureDetails) All-args constructor.- Parameters:
clusterName
- The new value for clusterNamereportTimestamp
- timestamp for when the reported details were collectedoverallStatus
- The new value for overallStatuscoloStatus
- The new value for coloStatuspushId
- The new value for pushIdpartitionCount
- The new value for partitionCountvalueCompressionStrategy
- 0 => NO_OP, 1 => GZIPchunkingEnabled
- The new value for chunkingEnabledjobDurationInMs
- The new value for jobDurationInMstotalNumberOfRecords
- total number of key value pairs pushedtotalKeyBytes
- total amount of key bytes pushedtotalRawValueBytes
- total amount of uncompressed value bytestotalCompressedValueBytes
- total amount of compressed value bytes storedtotalGzipCompressedValueBytes
- total amount of Gzip compressed value bytestotalZstdWithDictCompressedValueBytes
- total amount of Zstd with Dictionary compressed value bytespushJobConfigs
- The new value for pushJobConfigsproducerConfigs
- The new value for producerConfigspushJobLatestCheckpoint
- Latest checkpoint reached by the push job if available, negative values are known error checkpoints. Refer tocom.linkedin.venice.hadoop.VenicePushJob.PushJobCheckpoints
failureDetails
- The new value for failureDetailssendLivenessHeartbeatFailureDetails
- Failure details of sending liveness heartbeat from the push job. If no failure or the job is not enabled to send liveness heartbeat, this field is null
-
-
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
-
getClusterName
Gets the value of the 'clusterName' field.- Returns:
- The value of the 'clusterName' field.
-
setClusterName
Sets the value of the 'clusterName' field.- Parameters:
value
- the value to set.
-
getReportTimestamp
public long getReportTimestamp()Gets the value of the 'reportTimestamp' field.- Returns:
- timestamp for when the reported details were collected
-
setReportTimestamp
public void setReportTimestamp(long value) Sets the value of the 'reportTimestamp' field. timestamp for when the reported details were collected- Parameters:
value
- the value to set.
-
getOverallStatus
Gets the value of the 'overallStatus' field.- Returns:
- The value of the 'overallStatus' field.
-
setOverallStatus
Sets the value of the 'overallStatus' field.- Parameters:
value
- the value to set.
-
getColoStatus
Gets the value of the 'coloStatus' field.- Returns:
- The value of the 'coloStatus' field.
-
setColoStatus
Sets the value of the 'coloStatus' field.- Parameters:
value
- the value to set.
-
getPushId
Gets the value of the 'pushId' field.- Returns:
- The value of the 'pushId' field.
-
setPushId
Sets the value of the 'pushId' field.- Parameters:
value
- the value to set.
-
getPartitionCount
public int getPartitionCount()Gets the value of the 'partitionCount' field.- Returns:
- The value of the 'partitionCount' field.
-
setPartitionCount
public void setPartitionCount(int value) Sets the value of the 'partitionCount' field.- Parameters:
value
- the value to set.
-
getValueCompressionStrategy
public int getValueCompressionStrategy()Gets the value of the 'valueCompressionStrategy' field.- Returns:
- 0 => NO_OP, 1 => GZIP
-
setValueCompressionStrategy
public void setValueCompressionStrategy(int value) Sets the value of the 'valueCompressionStrategy' field. 0 => NO_OP, 1 => GZIP- Parameters:
value
- the value to set.
-
getChunkingEnabled
public boolean getChunkingEnabled()Gets the value of the 'chunkingEnabled' field.- Returns:
- The value of the 'chunkingEnabled' field.
-
setChunkingEnabled
public void setChunkingEnabled(boolean value) Sets the value of the 'chunkingEnabled' field.- Parameters:
value
- the value to set.
-
getJobDurationInMs
public long getJobDurationInMs()Gets the value of the 'jobDurationInMs' field.- Returns:
- The value of the 'jobDurationInMs' field.
-
setJobDurationInMs
public void setJobDurationInMs(long value) Sets the value of the 'jobDurationInMs' field.- Parameters:
value
- the value to set.
-
getTotalNumberOfRecords
public long getTotalNumberOfRecords()Gets the value of the 'totalNumberOfRecords' field.- Returns:
- total number of key value pairs pushed
-
setTotalNumberOfRecords
public void setTotalNumberOfRecords(long value) Sets the value of the 'totalNumberOfRecords' field. total number of key value pairs pushed- Parameters:
value
- the value to set.
-
getTotalKeyBytes
public long getTotalKeyBytes()Gets the value of the 'totalKeyBytes' field.- Returns:
- total amount of key bytes pushed
-
setTotalKeyBytes
public void setTotalKeyBytes(long value) Sets the value of the 'totalKeyBytes' field. total amount of key bytes pushed- Parameters:
value
- the value to set.
-
getTotalRawValueBytes
public long getTotalRawValueBytes()Gets the value of the 'totalRawValueBytes' field.- Returns:
- total amount of uncompressed value bytes
-
setTotalRawValueBytes
public void setTotalRawValueBytes(long value) Sets the value of the 'totalRawValueBytes' field. total amount of uncompressed value bytes- Parameters:
value
- the value to set.
-
getTotalCompressedValueBytes
public long getTotalCompressedValueBytes()Gets the value of the 'totalCompressedValueBytes' field.- Returns:
- total amount of compressed value bytes stored
-
setTotalCompressedValueBytes
public void setTotalCompressedValueBytes(long value) Sets the value of the 'totalCompressedValueBytes' field. total amount of compressed value bytes stored- Parameters:
value
- the value to set.
-
getTotalGzipCompressedValueBytes
public long getTotalGzipCompressedValueBytes()Gets the value of the 'totalGzipCompressedValueBytes' field.- Returns:
- total amount of Gzip compressed value bytes
-
setTotalGzipCompressedValueBytes
public void setTotalGzipCompressedValueBytes(long value) Sets the value of the 'totalGzipCompressedValueBytes' field. total amount of Gzip compressed value bytes- Parameters:
value
- the value to set.
-
getTotalZstdWithDictCompressedValueBytes
public long getTotalZstdWithDictCompressedValueBytes()Gets the value of the 'totalZstdWithDictCompressedValueBytes' field.- Returns:
- total amount of Zstd with Dictionary compressed value bytes
-
setTotalZstdWithDictCompressedValueBytes
public void setTotalZstdWithDictCompressedValueBytes(long value) Sets the value of the 'totalZstdWithDictCompressedValueBytes' field. total amount of Zstd with Dictionary compressed value bytes- Parameters:
value
- the value to set.
-
getPushJobConfigs
Gets the value of the 'pushJobConfigs' field.- Returns:
- The value of the 'pushJobConfigs' field.
-
setPushJobConfigs
Sets the value of the 'pushJobConfigs' field.- Parameters:
value
- the value to set.
-
getProducerConfigs
Gets the value of the 'producerConfigs' field.- Returns:
- The value of the 'producerConfigs' field.
-
setProducerConfigs
Sets the value of the 'producerConfigs' field.- Parameters:
value
- the value to set.
-
getPushJobLatestCheckpoint
Gets the value of the 'pushJobLatestCheckpoint' field.- Returns:
- Latest checkpoint reached by the push job if available, negative values are known error checkpoints. Refer to
com.linkedin.venice.hadoop.VenicePushJob.PushJobCheckpoints
-
setPushJobLatestCheckpoint
Sets the value of the 'pushJobLatestCheckpoint' field. Latest checkpoint reached by the push job if available, negative values are known error checkpoints. Refer tocom.linkedin.venice.hadoop.VenicePushJob.PushJobCheckpoints
- Parameters:
value
- the value to set.
-
getFailureDetails
Gets the value of the 'failureDetails' field.- Returns:
- The value of the 'failureDetails' field.
-
setFailureDetails
Sets the value of the 'failureDetails' field.- Parameters:
value
- the value to set.
-
getSendLivenessHeartbeatFailureDetails
Gets the value of the 'sendLivenessHeartbeatFailureDetails' field.- Returns:
- Failure details of sending liveness heartbeat from the push job. If no failure or the job is not enabled to send liveness heartbeat, this field is null
-
setSendLivenessHeartbeatFailureDetails
Sets the value of the 'sendLivenessHeartbeatFailureDetails' field. Failure details of sending liveness heartbeat from the push job. If no failure or the job is not enabled to send liveness heartbeat, this field is null- 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
-