Class ContainerRecord
- java.lang.Object
-
- org.jenkinsci.plugins.docker.commons.fingerprint.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getContainerId()
64byte sha1 container ID.String
getContainerName()
Human readable container name.long
getCreated()
When was this container created?String
getHost()
The host name on which the container is run.String
getImageId()
Get the ID of the image from which this container was started.Map<String,String>
getTags()
Additional user-specified context information submitted from clients.int
hashCode()
void
setImageId(String imageId)
Set the image ID of the image from which this container was started.
-
-
-
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.
-
-