Package com.linkedin.venice.jobs
Class DataWriterComputeJob
- java.lang.Object
-
- com.linkedin.venice.jobs.DataWriterComputeJob
-
- All Implemented Interfaces:
ComputeJob,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
AbstractDataWriterSparkJob,DataWriterMRJob
public abstract class DataWriterComputeJob extends java.lang.Object implements ComputeJob
An abstraction for executing and monitoring a data writer compute job running on any batch compute engine
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.linkedin.venice.jobs.ComputeJob
ComputeJob.Status
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>PASS_THROUGH_CONFIG_PREFIXESPass-through the properties whose names start with:VeniceWriter.VENICE_WRITER_CONFIG_PREFIXConfigKeys.KAFKA_CONFIG_PREFIXKafkaInputRecordReader.KIF_RECORD_READER_KAFKA_CONFIG_PREFIX
-
Constructor Summary
Constructors Constructor Description DataWriterComputeJob()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconfigure(VeniceProperties properties)abstract voidconfigure(VeniceProperties props, PushJobSetting pushJobSetting)java.lang.ThrowablegetFailureReason()protected abstract PushJobSettinggetPushJobSetting()ComputeJob.StatusgetStatus()abstract DataWriterTaskTrackergetTaskTracker()voidkill()protected abstract voidrunComputeJob()voidrunJob()protected voidvalidateJob()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.linkedin.venice.jobs.ComputeJob
close
-
-
-
-
Method Detail
-
getTaskTracker
public abstract DataWriterTaskTracker getTaskTracker()
-
validateJob
protected void validateJob()
-
runComputeJob
protected abstract void runComputeJob()
-
configure
public void configure(VeniceProperties properties)
- Specified by:
configurein interfaceComputeJob
-
getPushJobSetting
protected abstract PushJobSetting getPushJobSetting()
-
configure
public abstract void configure(VeniceProperties props, PushJobSetting pushJobSetting)
-
runJob
public void runJob()
- Specified by:
runJobin interfaceComputeJob
-
kill
public void kill()
- Specified by:
killin interfaceComputeJob
-
getStatus
public ComputeJob.Status getStatus()
- Specified by:
getStatusin interfaceComputeJob
-
getFailureReason
public java.lang.Throwable getFailureReason()
- Specified by:
getFailureReasonin interfaceComputeJob
-
-