Class CreateJobCommand

java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.Command<Integer>
uk.ac.manchester.spinnaker.spalloc.messages.CreateJobCommand

public class CreateJobCommand
extends Command<Integer>
Request to create a job.
See Also:
Spalloc Server documentation
  • Constructor Details

    • CreateJobCommand

      public CreateJobCommand​(int numBoards, String owner)
      Create a request to create a job. Short-hand form for most basic kind of request.
      Parameters:
      numBoards - The number of boards to request.
      owner - The owner of the job to create.
    • CreateJobCommand

      public CreateJobCommand​(List<Integer> args, Map<String,​Object> kwargs)
      Create a request to create a job.
      Parameters:
      args - The arguments, describing default (empty), the number of boards (one arg), the triad size (two args) or the board location (three args).
      kwargs - Additional arguments required. Must include the key owner. Values can be boxed primitive types or strings.
      Throws:
      IllegalArgumentException - if the owner key is missing