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

com.playtika.testcontainer.memsql.MemSqlStatusCheck Maven / Gradle / Ivy

There is a newer version: 3.1.9
Show newest version
package com.playtika.testcontainer.memsql;

import com.playtika.testcontainer.common.checks.AbstractCommandWaitStrategy;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@RequiredArgsConstructor
public class MemSqlStatusCheck extends AbstractCommandWaitStrategy {

    private final MemSqlProperties properties;

    @Override
    public String[] getCheckCommand() {
        return new String[]{
                "memsql",
                "-u" + properties.getUser(),
                "-p" + properties.getPassword(),
                "-h", properties.getHost(),
                "-P", String.valueOf(properties.getPort()),
                "-e", properties.getStatusCheck()
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy