// Path: src/main/java/org/centralperf/sampler/api/Sampler.java
// public interface Sampler {
// 	/**
// 	 * Human readable of the sampler 
// 	 * @return The name for this sampler
// 	 */
// 	public String getName();
// 	
// 	/**
// 	 * Arbitratry unique ID for this sampler. Will never be displayed, but we be used to identify the kind of sampler used for a run 
// 	 * @return The UID of this sampler
// 	 */
// 	public String getUID();
// 	
// 	/**
// 	 * Launcher for this sample
// 	 * @return The launched of this sampler
// 	 */
// 	public SamplerLauncher getLauncher();
// 	
// 	/**
// 	 * The script processor analyze script to extract variables and is used to inject custom variables values in a definitive script
// 	 * before being launched
// 	 * @return The script processor for this sampler
// 	 */
// 	public SamplerScriptProcessor getScriptProcessor();
// 	
// 	/**
// 	 * Get the file extension for a script. This allows to build a complete filename when downloading the script
// 	 * @return the script file common extension (".jmx" for example)
// 	 */
// 	public String getScriptFileExtension();
// }
// 
// Path: src/main/java/org/centralperf/sampler/api/SamplerLauncher.java
// public interface SamplerLauncher {
// 	
// 	/**
// 	 * Launched the sampler and provides a job to interact with it
// 	 * @param ScriptContent	The script content to be used
// 	 * @param run	The run associated with this launch
// 	 * @return	A running job
// 	 */
// 	public abstract SamplerRunJob launch(String ScriptContent, Run run) throws ConfigurationException;
// }
// 
// Path: src/main/java/org/centralperf/sampler/api/SamplerScriptProcessor.java
// public interface SamplerScriptProcessor {
// 	
// 	/**
// 	 * Validates the provided script is compatible with this sampler
// 	 * @param script
// 	 * @return true if script is compatible
// 	 */
// 	public boolean validateScript(String script);
// 	
// 	/**
// 	 * Get the variables for provided script
// 	 * @param script
// 	 * @return a list of variable sets
// 	 */
// 	public List<ScriptVariableSet> getVariableSets(String script);
// 
// 	/**
// 	 * Returns a script with variables replaced with provided values
// 	 * @param scriptContent
// 	 * @param scriptVariables
// 	 * @return
// 	 */
// 	public String replaceVariablesInScript(String scriptContent,List<ScriptVariable> scriptVariables);
// }


import javax.annotation.Resource;
import org.centralperf.sampler.api.Sampler;
import org.centralperf.sampler.api.SamplerLauncher;
import org.centralperf.sampler.api.SamplerScriptProcessor;
import org.springframework.stereotype.Component;
/*
 * Copyright (C) 2014  The Central Perf authors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.centralperf.sampler.driver.gatling;



/**
* Gatling 1.x based Sampler
* @since 1.0 
*/
//@Component
@Deprecated
public class GatlingSampler implements Sampler {

	@Resource
	private GatlingLauncher launcher;
	
	@Resource
	private GatlingScriptProcessor scriptProcessor;
	
	public static final String UID = "GATLING_1_X";
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getName() {
		return "Gatling 1.x";
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getUID() {
		return UID;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
// Path: src/main/java/org/centralperf/sampler/api/Sampler.java
// public interface Sampler {
// 	/**
// 	 * Human readable of the sampler 
// 	 * @return The name for this sampler
// 	 */
// 	public String getName();
// 	
// 	/**
// 	 * Arbitratry unique ID for this sampler. Will never be displayed, but we be used to identify the kind of sampler used for a run 
// 	 * @return The UID of this sampler
// 	 */
// 	public String getUID();
// 	
// 	/**
// 	 * Launcher for this sample
// 	 * @return The launched of this sampler
// 	 */
// 	public SamplerLauncher getLauncher();
// 	
// 	/**
// 	 * The script processor analyze script to extract variables and is used to inject custom variables values in a definitive script
// 	 * before being launched
// 	 * @return The script processor for this sampler
// 	 */
// 	public SamplerScriptProcessor getScriptProcessor();
// 	
// 	/**
// 	 * Get the file extension for a script. This allows to build a complete filename when downloading the script
// 	 * @return the script file common extension (".jmx" for example)
// 	 */
// 	public String getScriptFileExtension();
// }
// 
// Path: src/main/java/org/centralperf/sampler/api/SamplerLauncher.java
// public interface SamplerLauncher {
// 	
// 	/**
// 	 * Launched the sampler and provides a job to interact with it
// 	 * @param ScriptContent	The script content to be used
// 	 * @param run	The run associated with this launch
// 	 * @return	A running job
// 	 */
// 	public abstract SamplerRunJob launch(String ScriptContent, Run run) throws ConfigurationException;
// }
// 
// Path: src/main/java/org/centralperf/sampler/api/SamplerScriptProcessor.java
// public interface SamplerScriptProcessor {
// 	
// 	/**
// 	 * Validates the provided script is compatible with this sampler
// 	 * @param script
// 	 * @return true if script is compatible
// 	 */
// 	public boolean validateScript(String script);
// 	
// 	/**
// 	 * Get the variables for provided script
// 	 * @param script
// 	 * @return a list of variable sets
// 	 */
// 	public List<ScriptVariableSet> getVariableSets(String script);
// 
// 	/**
// 	 * Returns a script with variables replaced with provided values
// 	 * @param scriptContent
// 	 * @param scriptVariables
// 	 * @return
// 	 */
// 	public String replaceVariablesInScript(String scriptContent,List<ScriptVariable> scriptVariables);
// }


// Path: src/main/java/org/centralperf/sampler/driver/gatling/GatlingSampler.java
import javax.annotation.Resource;
import org.centralperf.sampler.api.Sampler;
import org.centralperf.sampler.api.SamplerLauncher;
import org.centralperf.sampler.api.SamplerScriptProcessor;
import org.springframework.stereotype.Component;

/*
 * Copyright (C) 2014  The Central Perf authors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.centralperf.sampler.driver.gatling;



/**
* Gatling 1.x based Sampler
* @since 1.0 
*/
//@Component
@Deprecated
public class GatlingSampler implements Sampler {

	@Resource
	private GatlingLauncher launcher;
	
	@Resource
	private GatlingScriptProcessor scriptProcessor;
	
	public static final String UID = "GATLING_1_X";
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getName() {
		return "Gatling 1.x";
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getUID() {
		return UID;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public SamplerLauncher getLauncher() {