Class Criterion

java.lang.Object
com.netflix.genie.common.internal.dtos.Criterion
All Implemented Interfaces:
Serializable

public class Criterion extends Object implements Serializable
Representation of various criterion options available. Used for determining which cluster and command are used to execute a job.
Since:
4.0.0
See Also:
  • Constructor Details

    • Criterion

      public Criterion(Criterion criterion, String status)
      Copy the contents of the given Criterion but use the supplied status.
      Parameters:
      criterion - The Criterion to copy
      status - The status to use
  • Method Details

    • getId

      public Optional<String> getId()
      Get the id of the resource desired if it exists.
      Returns:
      Optional wrapping the id
    • getName

      public Optional<String> getName()
      Get the name of the resource desired if it exists.
      Returns:
      Optional wrapping the name
    • getVersion

      public Optional<String> getVersion()
      Get the version of the resource desired if it exists.
      Returns:
      Optional wrapping the version
    • getStatus

      public Optional<String> getStatus()
      Get the desired status of the resource if it has been set by the creator.
      Returns:
      Optional wrapping the status
    • getTags

      public Set<String> getTags()
      Get the set of tags the creator desires the resource to have if any were set.
      Returns:
      An immutable set of strings. Any attempt at modification will throw an exception.