Package com.netflix.genie.common.dto
Class Criterion
java.lang.Object
com.netflix.genie.common.dto.Criterion
- All Implemented Interfaces:
Serializable
Representation of various criterion options available. Used for determining which cluster and command are used to
execute a job.
- Since:
- 4.3.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating a Criterion instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the id of the resource desired if it exists.getName()Get the name of the resource desired if it exists.Get the desired status of the resource if it has been set by the creator.getTags()Get the set of tags the creator desires the resource to have if any were set.Get the version of the resource desired if it exists.
-
Constructor Details
-
Method Details
-
getId
Get the id of the resource desired if it exists.- Returns:
Optionalwrapping the id
-
getName
Get the name of the resource desired if it exists.- Returns:
Optionalwrapping the name
-
getVersion
Get the version of the resource desired if it exists.- Returns:
Optionalwrapping the version
-
getStatus
Get the desired status of the resource if it has been set by the creator.- Returns:
Optionalwrapping the status
-
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.
-