Class Configuration

java.lang.Object
uk.ac.manchester.spinnaker.py2json.Configuration

public final class Configuration extends Object
A configuration description. JSON-serializable.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The host address for the service to listen on.
    final @NotEmpty(message="there must be at least one machine described") List<@Valid Machine>
    The machines to manage.
    final @jakarta.validation.constraints.PositiveOrZero int
    How many retired jobs to retain.
    final @uk.ac.manchester.spinnaker.utils.validation.TCPPort int
    The port for the service to listen on.
    final @jakarta.validation.constraints.PositiveOrZero int
    Time to wait before freeing.
    final @jakarta.validation.constraints.Positive double
    How often (in seconds) to check for timeouts.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • machines

      @NotEmpty(message="there must be at least one machine described") public final @NotEmpty(message="there must be at least one machine described") List<@Valid Machine> machines
      The machines to manage.
    • port

      @TCPPort public final @uk.ac.manchester.spinnaker.utils.validation.TCPPort int port
      The port for the service to listen on.
    • ip

      @IPAddress(emptyOK=true) public final @IPAddress(emptyOK=true) String ip
      The host address for the service to listen on. Empty = all interfaces.
    • timeoutCheckInterval

      @Positive public final @jakarta.validation.constraints.Positive double timeoutCheckInterval
      How often (in seconds) to check for timeouts.
    • maxRetiredJobs

      @PositiveOrZero public final @jakarta.validation.constraints.PositiveOrZero int maxRetiredJobs
      How many retired jobs to retain.
    • secondsBeforeFree

      @PositiveOrZero public final @jakarta.validation.constraints.PositiveOrZero int secondsBeforeFree
      Time to wait before freeing.
  • Method Details