Class JobRequestModelAssembler.JobRequestWrapper

java.lang.Object
com.netflix.genie.web.apis.rest.v3.hateoas.assemblers.JobRequestModelAssembler.JobRequestWrapper
Enclosing class:
JobRequestModelAssembler

public static class JobRequestModelAssembler.JobRequestWrapper extends Object
A simple wrapper class because the job request may not have an id available (there wasn't one originally sent) so need to use the one the system provided later in order to generate the links properly.
Since:
4.3.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    JobRequestWrapper(String id, com.netflix.genie.common.dto.JobRequest jobRequest)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the actual id of the job the system assigned after job submission if none was already supplied.
    com.netflix.genie.common.dto.JobRequest
    Get the original job request sent to the system by the user.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JobRequestWrapper

      public JobRequestWrapper(String id, com.netflix.genie.common.dto.JobRequest jobRequest)
      Constructor.
      Parameters:
      id - The actual id of the job
      jobRequest - The original job request
  • Method Details

    • getId

      public String getId()
      Get the actual id of the job the system assigned after job submission if none was already supplied.
      Returns:
      The jobs' unique id
    • getJobRequest

      public com.netflix.genie.common.dto.JobRequest getJobRequest()
      Get the original job request sent to the system by the user.
      Returns:
      The JobRequest