Class JobResolutionProperties.Resources

  • Enclosing class:
    JobResolutionProperties

    public static class JobResolutionProperties.Resources
    extends java.lang.Object
    Computation resource properties.
    • Constructor Summary

      Constructors 
      Constructor Description
      Resources()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCpu()
      Get the default number of CPUs.
      org.springframework.util.unit.DataSize getDisk()
      Get the amount of disk space to allocate for the job.
      int getGpu()
      Get the number of GPUs.
      org.springframework.util.unit.DataSize getMemory()
      Get the default amount of memory.
      org.springframework.util.unit.DataSize getNetwork()
      Get the network bandwidth that should be allocated for the job.
      void setCpu​(@Min(1L) java.lang.Integer cpu)
      Set the new default CPU value.
      void setDisk​(org.springframework.util.unit.DataSize disk)
      Set the new disk size.
      void setGpu​(@Min(0L) java.lang.Integer gpu)
      Set the new default amount of GPUs.
      void setMemory​(org.springframework.util.unit.DataSize memory)
      Set the default amount of memory for the job runtime.
      void setNetwork​(org.springframework.util.unit.DataSize network)
      Set the new network bandwidth default for jobs.
      • Methods inherited from class java.lang.Object

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

      • Resources

        public Resources()
    • Method Detail

      • getCpu

        public int getCpu()
        Get the default number of CPUs.
        Returns:
        The default number of CPUs
      • setCpu

        public void setCpu​(@Min(1L) @Nullable
                           @Min(1L) java.lang.Integer cpu)
        Set the new default CPU value.
        Parameters:
        cpu - The cpu value or null
      • getGpu

        public int getGpu()
        Get the number of GPUs.
        Returns:
        The number of GPUs.
      • setGpu

        public void setGpu​(@Min(0L) @Nullable
                           @Min(0L) java.lang.Integer gpu)
        Set the new default amount of GPUs.
        Parameters:
        gpu - The new number of GPUs or null to set back to default
      • getMemory

        public org.springframework.util.unit.DataSize getMemory()
        Get the default amount of memory.
        Returns:
        The amount of memory as a DataSize instance
      • setMemory

        public void setMemory​(@Nullable
                              org.springframework.util.unit.DataSize memory)
        Set the default amount of memory for the job runtime.
        Parameters:
        memory - The new amount of memory or null to reset to default
      • getDisk

        public org.springframework.util.unit.DataSize getDisk()
        Get the amount of disk space to allocate for the job.
        Returns:
        The disk space as DataSize instance
      • setDisk

        public void setDisk​(@Nullable
                            org.springframework.util.unit.DataSize disk)
        Set the new disk size.
        Parameters:
        disk - The new disk size or null to set back to default
      • getNetwork

        public org.springframework.util.unit.DataSize getNetwork()
        Get the network bandwidth that should be allocated for the job.
        Returns:
        The network bandwidth as a DataSize instance that should be converted to something like Mbps
      • setNetwork

        public void setNetwork​(@Nullable
                               org.springframework.util.unit.DataSize network)
        Set the new network bandwidth default for jobs.
        Parameters:
        network - The new default or if null revert to hardcoded default