org.diirt.datasource.timecache.PVCacheFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-timecache Show documentation
Show all versions of datasource-timecache Show documentation
Local cache for time series gathered from multiple sources.
The newest version!
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.timecache;
import org.diirt.datasource.timecache.source.DataSourceFactory;
import org.diirt.datasource.timecache.storage.DataStorageFactory;
import org.diirt.vtype.VType;
/**
* @author Fred Arnaud (Sopra Group) - ITER
*/
public class PVCacheFactory {
public static PVCache createPVCache(String channelName,
Class type) {
return new PVCacheImpl(channelName,
DataSourceFactory.createSources(type),
DataStorageFactory.createStorage(type));
}
}