Examples of stop()


Examples of com.alibaba.otter.canal.parse.ha.CanalHAController.stop()

        if (eventParser instanceof MysqlEventParser) {
            MysqlEventParser mysqlEventParser = (MysqlEventParser) eventParser;
            CanalHAController haController = mysqlEventParser.getHaController();
            if (haController.isStart()) {
                haController.stop();
            }
        }
    }

}
View Full Code Here

Examples of com.alibaba.otter.canal.parse.helper.TimeoutChecker.stop()

                    entryPosition.setTimestamp(executeTime);
                    break;
                }

                controller.stop();
                timeoutChecker.stop();
                timeoutChecker.touch();
                return true;
            }

        });
View Full Code Here

Examples of com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.stop()

        } catch (InterruptedException e) {
        }

        mysqlEventPaser1.stop();
        mysqlEventPaser2.stop();
        mysqlEventPaser3.stop();
    }

    private MysqlEventParser buildEventParser(int slaveId) {
        MysqlEventParser mysqlEventPaser = new MysqlEventParser();
        EntryPosition defaultPosition = buildPosition("mysql-bin.000001", 6163L, 1322803601000L);
View Full Code Here

Examples of com.alibaba.otter.canal.parse.index.CanalLogPositionManager.stop()

        if (eventParser instanceof AbstractEventParser) {
            AbstractEventParser abstractEventParser = (AbstractEventParser) eventParser;
            // 首先启动log position管理器
            CanalLogPositionManager logPositionManager = abstractEventParser.getLogPositionManager();
            if (logPositionManager.isStart()) {
                logPositionManager.stop();
            }
        }

        if (eventParser instanceof MysqlEventParser) {
            MysqlEventParser mysqlEventParser = (MysqlEventParser) eventParser;
View Full Code Here

Examples of com.alibaba.otter.canal.sink.entry.group.GroupEventSink.stop()

            latch.await();
            Thread.sleep(200L);
        } catch (InterruptedException e) {
        }

        eventSink.stop();
        executor.shutdownNow();
    }

    private static Entry buildEntry(String binlogFile, long offset, long timestamp) {
        Header.Builder headerBuilder = Header.newBuilder();
View Full Code Here

Examples of com.alibaba.otter.canal.store.memory.MemoryEventStoreWithBuffer.stop()

        }
        // 尝试
        result = eventStore.tryPut(buildEvent("1", 1L, 1L));
        Assert.assertTrue(result);

        eventStore.stop();
    }

    @Test
    public void testFullPut() {
        int bufferSize = 16;
View Full Code Here

Examples of com.alibaba.otter.node.etl.OtterController.stop()

            Runtime.getRuntime().addShutdownHook(new Thread() {

                public void run() {
                    try {
                        logger.info("INFO ## stop the otter server");
                        controller.stop();
                    } catch (Throwable e) {
                        logger.warn("WARN ##something goes wrong when stopping Otter Server:\n{}",
                                    ExceptionUtils.getFullStackTrace(e));
                    } finally {
                        logger.info("INFO ## otter server is down.");
View Full Code Here

Examples of com.alibaba.taobao.worker.ConfigurableWorker.stop()

        // stop all
        mapWorker_1.stop();
        mapWorker_2.stop();
        mapWorker_3.stop();
        mapWorker_4.stop();
        reduceWorker_1.stop();

        synchronized (foundURLs) {
            for (String string : foundURLs) {
                System.out.println(string);
            }
View Full Code Here

Examples of com.alphacsp.cit.swing.SwingInterface.stop()

            swingInterface.addCompletion(new FileCompletion(interperter));
            interperter.interpret();
        } catch (ValidationException e) {
            ErrorDialog errorDialog = new ErrorDialog(swingInterface.getFrame(), e);
            errorDialog.setVisible(true);
            swingInterface.stop();
        }

    }
}
View Full Code Here

Examples of com.anotherbigidea.flash.interfaces.SWFActionBlock.stop()

      }

      // Prevent the movie from looping
      SWFActions actions = tagDoAction();
      SWFActionBlock block = actions.start(0);
      block.stop();
      block.end();
      actions.done();
      tagShowFrame();

      // End the SWF file
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.