我正在尝试在osgi环境中实现wso2 siddhi库独立解决方案。到目前为止,除了使用Windows之外,它都可以使用。当我定义一个流或一个聚合窗口时,我收到错误消息“:timeBatch不存在扩展名”。但是timeBatch随Siddhi一起提供,因此此消息没有任何意义。库siddhi-core,siddhi-annotations,siddhi-query-api,siddhi-query-compiler都是必需的插件,并且没有Windows的查询都没有问题。
还有什么我可能会忘记的东西吗?
String espEventStream =
"define Stream EspStream (temperature float, humidity float, brightness float); " +
"define window EspStreamWindow (temperature float, humidity float, brightness float) timeBatch(5sec); " +
" " +
"@info(name = 'query0') " +
"from EspStream " +
"insert into EspStreamWindow; "+
"@info(name = 'query1') " +
"from EspStreamWindow "+
"select avg(brightness) as avgBrightness, min(brightness) as minBrightness, max(brightness) as maxBrightness " +
"insert into EspStreamOut ;";
SiddhiManager siddhiManager = new SiddhiManager();
SiddhiAppRuntime siddhiAppRuntime = siddhiManager.createSiddhiAppRuntime(espEventStream);
编辑:如果我将所有依赖项打包到一个捆绑包中并使用它,而不是将每个依赖项都作为一个单独的捆绑包使用,它将起作用。