Class ReadinessCheck
java.lang.Object
org.apache.hadoop.yarn.service.api.records.ReadinessCheck
- All Implemented Interfaces:
Serializable
A custom command or a pluggable helper container to determine the readiness
of a container of a component. Readiness for every service is different.
Hence the need for a simple interface, with scope to support advanced
usecases.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArtifact of the pluggable readiness check helper container (optional).booleanA blob of key value pairs that will be used to configure the check.getType()inthashCode()properties(Map<String, String> properties) putPropsItem(String key, String propsItem) voidsetArtifact(Artifact artifact) voidsetProperties(Map<String, String> properties) voidtoString()type(ReadinessCheck.TypeEnum type) E.g.
-
Constructor Details
-
ReadinessCheck
public ReadinessCheck()
-
-
Method Details
-
type
E.g. HTTP (YARN will perform a simple REST call at a regular interval and expect a 204 No content). -
getType
-
setType
-
properties
-
putPropsItem
-
getProperties
A blob of key value pairs that will be used to configure the check.- Returns:
- properties
-
setProperties
-
artifact
Artifact of the pluggable readiness check helper container (optional). If specified, this helper container typically hosts the http uri and encapsulates the complex scripts required to perform actual container readiness check. At the end it is expected to respond a 204 No content just like the simplified use case. This pluggable framework benefits service owners who can run services without any packaging modifications. Note, artifacts of type docker only is supported for now. -
getArtifact
-
setArtifact
-
equals
-
hashCode
public int hashCode() -
toString
-