public class DockerDeploymentFacet
extends org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintFacet
DockerContainerRecord
s.
It's supposed to be used within a container fingerprint, which stores
the info about events.
This facet should be added to container Fingerprint
s.Constructor and Description |
---|
DockerDeploymentFacet(hudson.model.Fingerprint fingerprint,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
add(DockerContainerRecord r) |
static DockerDeploymentFacet |
addEvent(hudson.model.Fingerprint fingerprint,
org.jenkinsci.plugins.docker.traceability.api.DockerTraceabilityReport event) |
static DockerDeploymentFacet |
getDeploymentFacet(String containerId)
Retrieves a deployment facet for the specified container.
|
SortedSet<DockerContainerRecord> |
getDeploymentRecords() |
String |
getImageId()
Get Image ID, for which the container has been created.
|
String |
getLastStatus()
Retrieves the last known status.
|
DockerContainerRecord |
getLatest() |
static DockerDeploymentFacet |
getOrCreate(hudson.model.Fingerprint fingerprint) |
public DockerDeploymentFacet(hudson.model.Fingerprint fingerprint, long timestamp)
public void add(DockerContainerRecord r) throws IOException
IOException
@Nonnull public SortedSet<DockerContainerRecord> getDeploymentRecords()
@CheckForNull public DockerContainerRecord getLatest()
@CheckForNull public String getImageId()
non-null
value, but may be null
in corner-cases@Nonnull public String getLastStatus()
@CheckForNull public static DockerDeploymentFacet getDeploymentFacet(String containerId)
containerId
- Container ID (64-char)@Nonnull public static DockerDeploymentFacet getOrCreate(@Nonnull hudson.model.Fingerprint fingerprint) throws IOException
IOException
public static DockerDeploymentFacet addEvent(@Nonnull hudson.model.Fingerprint fingerprint, @Nonnull org.jenkinsci.plugins.docker.traceability.api.DockerTraceabilityReport event) throws IOException
IOException
Copyright © 2015–2016. All rights reserved.