public class RequestForwardingServiceImpl extends java.lang.Object implements RequestForwardingService
RequestForwardingService
.Constructor and Description |
---|
RequestForwardingServiceImpl(org.springframework.web.client.RestTemplate restTemplate,
GenieHostInfo hostInfo,
JobsForwardingProperties jobsForwardingProperties)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
kill(java.lang.String host,
java.lang.String jobId,
javax.servlet.http.HttpServletRequest request)
Send a kill request for the given job id to another Genie host.
|
public RequestForwardingServiceImpl(org.springframework.web.client.RestTemplate restTemplate, GenieHostInfo hostInfo, JobsForwardingProperties jobsForwardingProperties)
restTemplate
- The RestTemplate
instance to use to call other Genie nodes API endpointshostInfo
- The GenieHostInfo
instance containing introspection information about
the current nodejobsForwardingProperties
- The properties related to forwarding requestspublic void kill(java.lang.String host, java.lang.String jobId, @Nullable javax.servlet.http.HttpServletRequest request)
kill
in interface RequestForwardingService
host
- The host to send the kill request tojobId
- The id of the job that should be killedrequest
- The optional Http request that triggered this kill forwarding action