Class RequestForwardingServiceImpl

java.lang.Object
com.netflix.genie.web.services.impl.RequestForwardingServiceImpl
All Implemented Interfaces:
RequestForwardingService

public class RequestForwardingServiceImpl extends Object implements RequestForwardingService
Default implementation of RequestForwardingService.
Since:
4.0.0
  • Constructor Details

    • RequestForwardingServiceImpl

      public RequestForwardingServiceImpl(org.springframework.web.client.RestTemplate restTemplate, com.netflix.genie.common.internal.util.GenieHostInfo hostInfo, JobsForwardingProperties jobsForwardingProperties)
      Constructor.
      Parameters:
      restTemplate - The RestTemplate instance to use to call other Genie nodes API endpoints
      hostInfo - The GenieHostInfo instance containing introspection information about the current node
      jobsForwardingProperties - 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:
      kill in interface RequestForwardingService
      Parameters:
      host - The host to send the kill request to
      jobId - The id of the job that should be killed
      request - The optional Http request that triggered this kill forwarding action