0
쿼리 및 실행 계획을 가지고 있으므로 스냅 샷을 찍어서 수신 측에서 복원하고 다시 실행하기를 원합니다.siddhi 스냅 샷 개념의 이해
- 수신자에게 어떤 형식으로 보내야합니까?
- 수신자 측에서 복원하는 방법은 무엇입니까?
다음은 Siddhi 저장소에서 가져온 일부 코드입니다.
SiddhiManager siddhiManager = new SiddhiManager();
String query =
"define stream inStream(meta_roomNumber int,meta_temperature double);" +
"from inStream#window(10)[meta_temperature > 50]\n" +
"select *" +
"insert into outStream;";
ExecutionPlanRuntime executionPlanRuntime = siddhiManager.createExecutionPlanRuntime(query);
executionPlanRuntime.start();
SiddhiContext siddhicontext = new SiddhiContext();
context.setSiddhiContext(siddhicontext);
context.setSnapshotService(new SnapshotService(context));
executionPlanRuntime.snapshot();
위에서 언급 한 방식으로 로컬 컴퓨터에서 올바르게 작동합니다. 소켓을 사용하여 네트워크를 통해 스냅 샷을 보내고 분산 환경에서 작동하도록해야합니다. –