All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.alexcojocaru.mojo.elasticsearch.v2.step.DefaultInstanceStepSequence Maven / Gradle / Ivy

Go to download

A Maven plugin to run a single node Elasticsearch cluster during the integration test phase of a build

There is a newer version: 6.28
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy