public class GRpcJobKillServiceImpl extends com.netflix.genie.proto.JobKillServiceGrpc.JobKillServiceImplBase implements JobKillService
| Constructor and Description |
|---|
GRpcJobKillServiceImpl(DataServices dataServices)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
killJob(java.lang.String jobId,
java.lang.String reason)
Kill the job with the given id if possible.
|
void |
registerForKillNotification(com.netflix.genie.proto.JobKillRegistrationRequest request,
io.grpc.stub.StreamObserver<com.netflix.genie.proto.JobKillRegistrationResponse> responseObserver)
Register to be notified when a kill request for the job is received.
|
public GRpcJobKillServiceImpl(DataServices dataServices)
dataServices - The DataServices instance to usepublic void registerForKillNotification(com.netflix.genie.proto.JobKillRegistrationRequest request,
io.grpc.stub.StreamObserver<com.netflix.genie.proto.JobKillRegistrationResponse> responseObserver)
registerForKillNotification in class com.netflix.genie.proto.JobKillServiceGrpc.JobKillServiceImplBaserequest - Request to register for getting notified when server gets a job kill request.responseObserver - The response observerpublic void killJob(java.lang.String jobId,
java.lang.String reason)
throws com.netflix.genie.common.exceptions.GenieException
killJob in interface JobKillServicejobId - id of job to killreason - brief reason for requesting the job be killedcom.netflix.genie.common.exceptions.GenieServerException - in case there is no response observer found to communicate with the agentcom.netflix.genie.common.exceptions.GenieException - if there is an error