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

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


  /**
   *
   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    final FormatDescriptionEvent event = new FormatDescriptionEvent(header);
    event.setBinlogVersion(is.readInt(2));
    event.setServerVersion(is.readFixedLengthString(50));
    event.setCreateTimestamp(is.readLong(4) * 1000L);
    event.setHeaderLength(is.readInt(1));
    event.setEventTypes(is.readBytes(is.available()));
    context.getEventListener().onEvents(event);
  }
 
View Full Code Here

TOP

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

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.