public class RedeploymentContainerMatcher extends java.lang.Object implements ContainerMatcher
ContainerMatcher
used for redeployment of modules when a container exits the cluster.
This matcher provides the following functionality:
exclusions
collection are not returned;
these containers are presumed to have already
deployed the moduleConstructor and Description |
---|
RedeploymentContainerMatcher(ContainerMatcher containerMatcher,
java.util.Collection<java.lang.String> exclusions)
Construct an
ExcludingContainerMatcher . |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Container> |
match(ModuleDescriptor moduleDescriptor,
ModuleDeploymentProperties deploymentProperties,
java.lang.Iterable<Container> containers)
Matches the provided module against one of the candidate containers.
|
public RedeploymentContainerMatcher(ContainerMatcher containerMatcher, java.util.Collection<java.lang.String> exclusions)
ExcludingContainerMatcher
.containerMatcher
- container matcher to wrapexclusions
- collection of container names to excludepublic java.util.Collection<Container> match(ModuleDescriptor moduleDescriptor, ModuleDeploymentProperties deploymentProperties, java.lang.Iterable<Container> containers)
match
in interface ContainerMatcher
moduleDescriptor
- the module to match againstdeploymentProperties
- deployment properties for the module; this provides
hints such as the number of containers and other
matching criteriacontainers
- iterable list of containers to match against