public class JobMonitor extends NodeTask
| Constructor and Description |
|---|
JobMonitor(com.netflix.genie.common.dto.JobExecution execution,
java.io.File stdOut,
java.io.File stdErr,
org.apache.commons.exec.Executor executor,
org.springframework.context.ApplicationEventPublisher publisher,
org.springframework.context.event.ApplicationEventMulticaster eventMulticaster,
com.netflix.spectator.api.Registry registry,
com.netflix.genie.core.properties.JobsProperties jobsProperties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getFixedDelay()
Get how long the system should wait between invoking the run() method of this task in milliseconds after the
last successful run of the task.
|
GenieTaskScheduleType |
getScheduleType()
Get the type of scheduling mechanism which should be used to schedule this task.
|
void |
run()
This will check the process identified by the pid supplied to the constructor.
|
getFixedRate, getTriggerpublic JobMonitor(com.netflix.genie.common.dto.JobExecution execution,
@NotNull
java.io.File stdOut,
@NotNull
java.io.File stdErr,
@NotNull
org.apache.commons.exec.Executor executor,
@NotNull
org.springframework.context.ApplicationEventPublisher publisher,
@NotNull
org.springframework.context.event.ApplicationEventMulticaster eventMulticaster,
@NotNull
com.netflix.spectator.api.Registry registry,
@NotNull
com.netflix.genie.core.properties.JobsProperties jobsProperties)
execution - The job execution object including the pidstdOut - The std out output filestdErr - The std err output fileexecutor - The process executor to usepublisher - The event publisher to use when a job isn't running anymoreeventMulticaster - The multicaster to send async eventsregistry - The metrics event registryjobsProperties - The properties for jobspublic void run()
public GenieTaskScheduleType getScheduleType()
getScheduleType in class GenieTaskpublic long getFixedDelay()
getFixedDelay in class GenieTask