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

org.diirt.datasource.timecache.Cache Maven / Gradle / Ivy

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.query.Query;
import org.diirt.datasource.timecache.query.QueryParameters;
import org.diirt.vtype.VType;

/**
 * Cache main interface: creates and manages all {@link PVCache}. Initialises
 * {@link Query} with the corresponding {@link PVCache}.
 * @author Fred Arnaud (Sopra Group) - ITER
 */
public interface Cache {

	/**
	 * Creates a new {@link Query}.
	 * @param channelName channel to be requested.
	 * @param type VType of data to be pulled by the query.
	 * @param parameters {@link QueryParameters}.
	 * @return initialised query without data.
	 */
	public  Query createQuery(String channelName,
			Class type, QueryParameters parameters);

	public void setStatisticsEnabled(boolean enabled);

	public CacheStatistics getStatistics();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy