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

eu.limetri.ygg.eventengine.Subscriber Maven / Gradle / Ivy

There is a newer version: 0.28
Show newest version
package eu.limetri.ygg.eventengine;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import eu.limetri.ygg.api.ValuesInfo;

public class Subscriber implements StatementSubscriber> {
	private static final Logger log = LoggerFactory.getLogger(Subscriber.class);

	@Override
	public void update(Map eventMap) {
		log.info("---------> EventPatternDetected:{}", (ValuesInfo) eventMap.get("event"));
	}

	@Override
	public String getStatement(String conditions) {
		String statement = "select * from ValuesEvent match_recognize (measures A as event pattern (A) define %s)";
		return String.format(statement, conditions);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy