public class ImageChangeTrigger extends DeploymentTrigger implements IDeploymentImageChangeTrigger
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, KIND, LABELS, METADATA_NAME, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, TYPE, VALUE
Constructor and Description |
---|
ImageChangeTrigger(org.jboss.dmr.ModelNode node,
Map<String,String[]> propertyKeys) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getContainerNames()
The container names for this trigger
|
DockerImageURI |
getFrom()
Returns the name of the docker image repo to watch
|
boolean |
isAutomatic() |
void |
setAutomatic(boolean auto) |
void |
setContainerName(String name)
Convenience method for setting
a single container name
|
void |
setContainerNames(Collection<String> names) |
void |
setFrom(DockerImageURI fromImage) |
getNode, getPropertyKeys, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
public DockerImageURI getFrom()
IDeploymentImageChangeTrigger
getFrom
in interface IDeploymentImageChangeTrigger
public void setFrom(DockerImageURI fromImage)
setFrom
in interface IDeploymentImageChangeTrigger
public boolean isAutomatic()
isAutomatic
in interface IDeploymentImageChangeTrigger
public void setAutomatic(boolean auto)
setAutomatic
in interface IDeploymentImageChangeTrigger
public Collection<String> getContainerNames()
IDeploymentImageChangeTrigger
getContainerNames
in interface IDeploymentImageChangeTrigger
public void setContainerNames(Collection<String> names)
setContainerNames
in interface IDeploymentImageChangeTrigger
public void setContainerName(String name)
IDeploymentImageChangeTrigger
setContainerName
in interface IDeploymentImageChangeTrigger
Copyright © 2016 Red Hat, Inc. All rights reserved.