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

xworker.statistics.flow.KeyManager Maven / Gradle / Ivy

The newest version!
package xworker.statistics.flow;

import java.util.List;

import org.xmeta.ActionContext;
import org.xmeta.Thing;

import xworker.dataObject.DataObject;

public class KeyManager {
	public Thing thing;
	public ActionContext actionContext;
	public FlowStatistics flowStatistics;
	
	public KeyManager(FlowStatistics flowStatistics, Thing thing, ActionContext actionContext){
		this.flowStatistics = flowStatistics;
		this.thing = thing;
		this.actionContext = actionContext;
	}
	
	@SuppressWarnings("unchecked")
	public List generateKey(Object data){
		return (List) thing.doAction("generateKey", actionContext, "data", data);
	}
	
	public DataObject getDataObject(String key, long count){
		return (DataObject) thing.doAction("getDataObject", actionContext, "key", key, "count", count);
	}
	
	public boolean isCompleted(String key){
		return (Boolean) thing.doAction("isCompleted", actionContext, "key", key);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy