public class GRpcAgentJobKillServiceImpl extends java.lang.Object implements AgentJobKillService
AgentJobKillService
.Constructor and Description |
---|
GRpcAgentJobKillServiceImpl(com.netflix.genie.proto.JobKillServiceGrpc.JobKillServiceFutureStub client,
KillService killService,
org.springframework.core.task.TaskExecutor killTaskExecutor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
start(@NotBlank(message="Job id cannot be blank") java.lang.String jobId)
Start listening for job termination notification.
|
void |
stop()
Stop the service.
|
public GRpcAgentJobKillServiceImpl(com.netflix.genie.proto.JobKillServiceGrpc.JobKillServiceFutureStub client, KillService killService, org.springframework.core.task.TaskExecutor killTaskExecutor)
client
- The gRPC client to use to call the serverkillService
- KillService for killing the agentkillTaskExecutor
- A task executor to execute killing the agentpublic void start(@NotBlank(message="Job id cannot be blank") @NotBlank(message="Job id cannot be blank") java.lang.String jobId)
AgentJobKillService
start
in interface AgentJobKillService
jobId
- job idpublic void stop()
AgentJobKillService
stop
in interface AgentJobKillService