Package com.linkedin.venice.pushmonitor
Class RouterBasedPushMonitor
- java.lang.Object
-
- com.linkedin.venice.pushmonitor.RouterBasedPushMonitor
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class RouterBasedPushMonitor extends java.lang.Object implements java.io.Closeable
This push monitor is able to query push job status from routers; it only works for stores running in Leader/Follower mode and it will be built for STREAM_REPROCESSING job.
-
-
Constructor Summary
Constructors Constructor Description RouterBasedPushMonitor(TransportClient d2TransportClient, java.lang.String resourceName, VeniceSystemFactory factory, org.apache.samza.system.SystemProducer producer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ExecutionStatus
getCurrentStatus()
void
setCurrentStatus(ExecutionStatus currentStatus)
void
setStreamReprocessingExitMode(SamzaExitMode exitMode)
void
start()
-
-
-
Constructor Detail
-
RouterBasedPushMonitor
public RouterBasedPushMonitor(TransportClient d2TransportClient, java.lang.String resourceName, VeniceSystemFactory factory, org.apache.samza.system.SystemProducer producer)
-
-
Method Detail
-
start
public void start()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
setCurrentStatus
public void setCurrentStatus(ExecutionStatus currentStatus)
-
getCurrentStatus
public ExecutionStatus getCurrentStatus()
-
setStreamReprocessingExitMode
public void setStreamReprocessingExitMode(SamzaExitMode exitMode)
-
-