Class Criterion
java.lang.Object
com.netflix.genie.common.internal.dtos.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.0.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for creating a Criterion instance. -
Constructor Summary
-
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:
Optional
wrapping the id
-
getName
Get the name of the resource desired if it exists.- Returns:
Optional
wrapping the name
-
getVersion
Get the version of the resource desired if it exists.- Returns:
Optional
wrapping the version
-
getStatus
Get the desired status of the resource if it has been set by the creator.- Returns:
Optional
wrapping 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.
-