Package com.google.code.or.binlog.impl.event

Examples of com.google.code.or.binlog.impl.event.RotateEvent


        return;
      }
    }
    else if (event instanceof RotateEvent)
    {
      RotateEvent re = (RotateEvent)event;
      String fileName = re.getBinlogFileName().toString();
      _log.info("File Rotated : FileName :" + fileName + ", _binlogFilePrefix :" + _binlogFilePrefix);
      String fileNumStr = fileName.substring(fileName.lastIndexOf(_binlogFilePrefix) + _binlogFilePrefix.length() + 1);
      _currFileNum = Integer.parseInt(fileNumStr);
    }
    else if (event instanceof XidEvent)
View Full Code Here


  /**
   *
   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    final RotateEvent event = new RotateEvent(header);
    event.setBinlogPosition(is.readLong(8));
    event.setBinlogFileName(is.readFixedLengthString(is.available()));
    context.getEventListener().onEvents(event);
  }
View Full Code Here

      //
      if(event instanceof TableMapEvent) {
        final TableMapEvent tme = (TableMapEvent)event;
        this.tableMapEvents.put(tme.getTableId(), tme);
      } else if(event instanceof RotateEvent) {
        final RotateEvent re = (RotateEvent)event;
        this.binlogFileName = re.getBinlogFileName().toString();
        if(isClearTableMapEventsOnRotate()) this.tableMapEvents.clear();
      }
     
      //
      try {
View Full Code Here

TOP

Related Classes of com.google.code.or.binlog.impl.event.RotateEvent

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.