Package com.google.code.or.binlog

Examples of com.google.code.or.binlog.BinlogEventListener


    or.setHost("192.168.1.216");
    or.setPort(3306);
    or.setServerId(6789);
    or.setBinlogPosition(4);
    or.setBinlogFileName("mysql-bin.000001");
    or.setBinlogEventListener(new BinlogEventListener() {
        public void onEvents(BinlogEventV4 event) {
          LOGGER.info("{}", event);
        }
    });
    or.start();
View Full Code Here


    //
    final OpenParser op = new OpenParser();
    op.setStartPosition(4);
    op.setBinlogFileName("mysql_bin.000031");
    op.setBinlogFilePath("C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.5/data");
    op.setBinlogEventListener(new BinlogEventListener() {
        public void onEvents(BinlogEventV4 event) {
          if(event instanceof XidEvent) {
            LOGGER.info("{}", event);
          }
        }
View Full Code Here

    or.setHost("192.168.1.216");
    or.setPort(3306);
    or.setServerId(6789);
    or.setBinlogPosition(120);
    or.setBinlogFileName("mysql-bin.000003");
    or.setBinlogEventListener(new BinlogEventListener() {
        public void onEvents(BinlogEventV4 event) {
          LOGGER.info("{}", event);
        }
    });
    or.start();
View Full Code Here

TOP

Related Classes of com.google.code.or.binlog.BinlogEventListener

Copyright © 2018 www.massapicom. 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.