com.github.alexcojocaru.mojo.elasticsearch.v2.step.DefaultInstanceStepSequence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-maven-plugin Show documentation
Show all versions of elasticsearch-maven-plugin Show documentation
A Maven plugin to run a single node Elasticsearch cluster during the integration test phase of a build
package com.github.alexcojocaru.mojo.elasticsearch.v2.step;
import java.util.LinkedList;
import java.util.List;
import com.github.alexcojocaru.mojo.elasticsearch.v2.InstanceConfiguration;
/**
* Implementation of a {@link InstanceStepSequence}.
*
* @author Alex Cojocaru
*/
public class DefaultInstanceStepSequence
implements InstanceStepSequence
{
protected List sequence = new LinkedList();
@Override
public void execute(InstanceConfiguration config)
{
sequence.forEach(step -> step.execute(config));
}
@Override
public void add(InstanceStep step)
{
this.sequence.add(step);
}
}