/**
 * 
 */
package de.evoila.cf.broker.service.mysql;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import de.evoila.cf.broker.model.Mode;
import de.evoila.cf.broker.model.ServerAddress;
import de.evoila.cf.broker.service.HAProxyService;

/**
 * @author Rene Schollmeyer
 *
 */

@Service
public class HAProxyServiceImpl extends HAProxyService {

	@Override
	public Mode getMode(ServerAddress serverAddress) {
		return Mode.TCP;
	}
	
	@Override
	public List<String> getOptions(ServerAddress serverAddress) {
		return new ArrayList<String>();
	}
}

Return the required HAProxy mode for the implemented service
feat: Return the required HAProxy mode for the implemented service

When generating service keys the Service Brokers uses the correct mode
of the HAProxy to forward requests
