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

com.github.narcissujsk.openstackjsk.model.octavia.LbMethod Maven / Gradle / Ivy

The newest version!
package com.github.narcissujsk.openstackjsk.model.octavia;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * Load Balancer Algorithm
 * 
 * @author wei
 *
 */
public enum LbMethod {
    ROUND_ROBIN,
    LEAST_CONNECTIONS,
    SOURCE_IP;

    @JsonCreator
    public static LbMethod forValue(String value) {
        if (value != null)
        {
            for (LbMethod s : LbMethod.values()) {
                if (s.name().equalsIgnoreCase(value)) {
                    return s;
                }
            }
        }
        return LbMethod.ROUND_ROBIN;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy