public interface StreamJob
StreamTask
s in its specific environment.
Users generally do not need to implement a StreamJob themselves, rather it is a framework-level
interface meant for those extending Samza itself. This class, and its accompanying factory,
allow Samza to run on other service providers besides YARN and LocalJob, such as Mesos or Sun Grid Engine.Modifier and Type | Method and Description |
---|---|
ApplicationStatus |
getStatus()
Get current
ApplicationStatus of the job |
StreamJob |
kill()
Kill this job immediately.
|
StreamJob |
submit()
Submit this job to be run.
|
ApplicationStatus |
waitForFinish(long timeoutMs)
Block on this job until either it finishes or reaches its timeout value
|
ApplicationStatus |
waitForStatus(ApplicationStatus status,
long timeoutMs)
Block on this job until either it transitions to the specified status or reaches it timeout value
|
StreamJob submit()
StreamJob kill()
ApplicationStatus waitForFinish(long timeoutMs)
timeoutMs
- How many milliseconds to wait before returning, assuming the job has not yet finishedApplicationStatus
of the job after finishing or timing outApplicationStatus waitForStatus(ApplicationStatus status, long timeoutMs)
status
- Target ApplicationStatus
to wait upontimeoutMs
- How many milliseconds to wait before returning, assuming the job has not transitioned to the specified valueApplicationStatus
of the job after finishing or reaching target stateApplicationStatus getStatus()
ApplicationStatus
of the job