@InterfaceStability.Evolving public interface ApplicationRunner
SamzaApplication
at runtime.
Implementation Notes: implementation of ApplicationRunner
must have a public default constructor
#ApplicationRunner(SamzaApplication, Config)
Modifier and Type | Method and Description |
---|---|
void |
kill()
Kill the Samza jobs represented by
SamzaApplication
It is non-blocking so it doesn't wait for the application stopping. |
void |
run()
Deploy and run the Samza jobs to execute
SamzaApplication . |
ApplicationStatus |
status()
Get the collective status of the Samza jobs represented by
SamzaApplication . |
void |
waitForFinish()
Waits until the application finishes.
|
boolean |
waitForFinish(java.time.Duration timeout)
Waits for
timeout duration for the application to finish. |
void run()
SamzaApplication
.
It is non-blocking so it doesn't wait for the application running.void kill()
SamzaApplication
It is non-blocking so it doesn't wait for the application stopping.ApplicationStatus status()
SamzaApplication
.
Returns ApplicationStatus
object.SamzaApplication
void waitForFinish()
boolean waitForFinish(java.time.Duration timeout)
timeout
duration for the application to finish.timeout
- time to wait for the application to finish