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

org.testcontainers.solace.Service Maven / Gradle / Ivy

The newest version!
package org.testcontainers.solace;

/**
 * Services that are supported by Testcontainers implementation
 */
public enum Service {
    AMQP("amqp", 5672, "amqp", false),
    MQTT("mqtt", 1883, "tcp", false),
    REST("rest", 9000, "http", false),
    SMF("smf", 55555, "tcp", true),
    SMF_SSL("smf", 55443, "tcps", true);

    private final String name;
    private final Integer port;
    private final String protocol;
    private final boolean supportSSL;

    Service(String name, Integer port, String protocol, boolean supportSSL) {
        this.name = name;
        this.port = port;
        this.protocol = protocol;
        this.supportSSL = supportSSL;
    }

    /**
     * @return Port assigned for the service
     */
    public Integer getPort() {
        return this.port;
    }

    /**
     * @return Protocol of the service
     */
    public String getProtocol() {
        return this.protocol;
    }

    /**
     * @return Name of the service
     */
    public String getName() {
        return this.name;
    }

    /**
     * @return Is SSL for this service supported ?
     */
    public boolean isSupportSSL() {
        return this.supportSSL;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy