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

com.github.alexcojocaru.mojo.elasticsearch.v2.step.BlockProcessExecutionStep 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 com.github.alexcojocaru.mojo.elasticsearch.v2.ClusterConfiguration;
import com.github.alexcojocaru.mojo.elasticsearch.v2.ExecutionLock;

/**
 * Block the current process execution if the setAwait flag is set on the cluster configuration.
 * 
 * @author Alex Cojocaru
 */
public class BlockProcessExecutionStep
        implements ClusterStep
{

    @Override
    public void execute(ClusterConfiguration config)
    {
        if (config.isSetAwait())
        {
            new ExecutionLock(config.getLog()).lock();
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy