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

com.axibase.tsd.driver.jdbc.enums.Strategy Maven / Gradle / Ivy

There is a newer version: 1.4.11
Show newest version
package com.axibase.tsd.driver.jdbc.enums;


import com.axibase.tsd.driver.jdbc.intf.IStoreStrategy;
import com.axibase.tsd.driver.jdbc.strategies.memory.MemoryStrategy;
import com.axibase.tsd.driver.jdbc.strategies.storage.FileStoreStrategy;
import com.axibase.tsd.driver.jdbc.strategies.stream.StreamStrategy;

public enum Strategy {
	FILE(FileStoreStrategy.class, "File"),
	STREAM(StreamStrategy.class, "Stream"),
	MEMORY(MemoryStrategy.class, "Stream");

	private final Class strategyClass;
	private final String source;


	Strategy(Class strategyClass, String source) {
		this.strategyClass = strategyClass;
		this.source = source;
	}

	public Class getStrategyClass() {
		return strategyClass;
	}

	public String getSource() {
		return source;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy