com.clickntap.api.Console Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Stripecube Show documentation
Show all versions of Stripecube Show documentation
Stripecube is an open source Java framework for Web Applications
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;
}
}