java.lang.Object
org.apache.hadoop.yarn.service.api.records.Artifact
All Implemented Interfaces:
Serializable

@Public @Unstable public class Artifact extends Object implements Serializable
Artifact of an service component.
See Also:
  • Constructor Details

    • Artifact

      public Artifact()
  • Method Details

    • id

      public Artifact id(String id)
      Artifact id. Examples are package location uri for tarball based services, image name for docker, etc.
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • type

      public Artifact type(Artifact.TypeEnum type)
      Artifact type, like docker, tarball, etc. (optional).
    • getType

      public Artifact.TypeEnum getType()
    • setType

      public void setType(Artifact.TypeEnum type)
    • uri

      public Artifact uri(String uri)
      Artifact location to support multiple artifact stores (optional).
    • getUri

      public String getUri()
    • setUri

      public void setUri(String uri)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object