Class ContainerRecord

  • All Implemented Interfaces:
    Serializable

    public class ContainerRecord
    extends Object
    implements Serializable
    Records a container started from a known image. Key properties out of "docker inspect" limited to a subset because fingerprints are performance sensitive. We may opt to store the whole JSON but that's probably need a better data store.
    Author:
    Kohsuke Kawaguchi
    See Also:
    DockerRunFingerprintFacet, Serialized Form
    • Constructor Detail

      • ContainerRecord

        public ContainerRecord​(@NonNull
                               String host,
                               @NonNull
                               String containerId,
                               @NonNull
                               String imageId,
                               @NonNull
                               String containerName,
                               long created,
                               @NonNull
                               Map<String,​String> tags)
    • Method Detail

      • getHost

        public String getHost()
        The host name on which the container is run.
      • getContainerId

        public String getContainerId()
        64byte sha1 container ID.
      • getImageId

        public String getImageId()
        Get the ID of the image from which this container was started.
        Returns:
        The ID of the image from which this container was started.
      • setImageId

        public void setImageId​(@NonNull
                               String imageId)
        Set the image ID of the image from which this container was started.
        Parameters:
        imageId - The image ID of the image from which this container was started.
      • getContainerName

        public String getContainerName()
        Human readable container name.
      • getCreated

        public long getCreated()
        When was this container created?
      • getTags

        public Map<String,​String> getTags()
        Additional user-specified context information submitted from clients.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object