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

com.clickntap.api.Console Maven / Gradle / Ivy

There is a newer version: 1.30
Show newest version
package com.clickntap.api;

import java.util.List;

import com.clickntap.smart.SmartApp;
import com.clickntap.tool.cache.CacheManager;

public class Console implements ConsoleInterface {

	private CacheManager cacheManager;
	private SmartApp smartApp;
	private String version;

	public void setVersion(String version) {
		this.version = version;
	}

	public CacheManager getCacheManager() {
		return cacheManager;
	}

	public void setCacheManager(CacheManager cacheManager) {
		this.cacheManager = cacheManager;
	}

	public SmartApp getSmartApp() {
		return smartApp;
	}

	public void setSmartApp(SmartApp smartApp) {
		this.smartApp = smartApp;
	}

	public void resetCache() throws Exception {
		cacheManager.reset();
	}

	public List executionTimes() throws Exception {
		return smartApp.getExecutionTimes();
	}

	public List lastErrors() throws Exception {
		return smartApp.getLastErrors();
	}

	public void clearErrors() throws Exception {
		smartApp.clearErrors();
	}

	public String getVersion() throws Exception {
		return version;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy