Class RequestForwardingServiceImpl
java.lang.Object
com.netflix.genie.web.services.impl.RequestForwardingServiceImpl
- All Implemented Interfaces:
RequestForwardingService
Default implementation of
RequestForwardingService.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionRequestForwardingServiceImpl(org.springframework.web.client.RestTemplate restTemplate, com.netflix.genie.common.internal.util.GenieHostInfo hostInfo, JobsForwardingProperties jobsForwardingProperties) Constructor. -
Method Summary
-
Constructor Details
-
RequestForwardingServiceImpl
public RequestForwardingServiceImpl(org.springframework.web.client.RestTemplate restTemplate, com.netflix.genie.common.internal.util.GenieHostInfo hostInfo, JobsForwardingProperties jobsForwardingProperties) Constructor.- Parameters:
restTemplate- TheRestTemplateinstance to use to call other Genie nodes API endpointshostInfo- TheGenieHostInfoinstance containing introspection information about the current nodejobsForwardingProperties- The properties related to forwarding requests
-
-
Method Details
-
kill
public void kill(String host, String jobId, @Nullable javax.servlet.http.HttpServletRequest request) Send a kill request for the given job id to another Genie host.- Specified by:
killin interfaceRequestForwardingService- Parameters:
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
-